2 Copyright (C) Slava Astashonok <sla@0n.ru>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License.
7 $Id: fprobe-ulog.h,v 1.1.2.3 2005/01/29 19:30:41 sla Exp $
10 #ifndef _FPROBE_ULOG_H_
11 #define _FPROBE_ULOG_H_
13 #include <my_inttypes.h>
16 #define IP_OFFMASK 0x1fff
19 #define SCHED SCHED_FIFO
20 #define EMIT_TIMEOUT 5
21 #define UNPENDING_TIMEOUT 5
22 #define CAPTURE_SIZE 131072
35 /* output interface */
45 /* tcp/udp src port or icmp message type */
47 /* tcp/udp dst port or icmp type sub-code */
53 /* number of packets */
55 /* sum of packets sizes */
57 /* fragment data size (for fragmented packets) */
59 /* whole packet data size (for fragmented packets) */
61 /* time of creation/flushing this flow */
63 /* time of last modification this flow */
65 #define FLOW_FRAG 0x0001
66 #define FLOW_FRAGMASK 0x0003
67 #define FLOW_TL 0x0004
68 #define FLOW_LASTFRAG 0x0008
69 #define FLOW_PENDING 0x8000
77 /* output interface */
92 /* output interface */
102 /* tcp/udp src port or icmp message type */
104 /* tcp/udp dst port or icmp type sub-code */
108 #define SIGALRM_MASK 1
109 #define SIGTERM_MASK 2
110 #define SIGUSR1_MASK 4
114 struct sockaddr_in addr;
115 struct sockaddr_in laddr;
122 char basename[IFNAMSIZ];
127 #define PEER_MIRROR 0
128 #define PEER_ROTATE 1