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 MAX_PATH_LEN 255
22 #define SCHED SCHED_FIFO
23 #define EMIT_TIMEOUT 5
24 #define UNPENDING_TIMEOUT 5
25 #define CAPTURE_SIZE 131072
38 /* output interface */
48 /* tcp/udp src port or icmp message type */
50 /* tcp/udp dst port or icmp type sub-code */
56 /* number of packets */
58 /* sum of packets sizes */
60 /* fragment data size (for fragmented packets) */
62 /* whole packet data size (for fragmented packets) */
64 /* time of creation/flushing this flow */
66 /* time of last modification this flow */
68 #define FLOW_FRAG 0x0001
69 #define FLOW_FRAGMASK 0x0003
70 #define FLOW_TL 0x0004
71 #define FLOW_LASTFRAG 0x0008
72 #define FLOW_PENDING 0x8000
80 /* output interface */
95 /* output interface */
105 /* tcp/udp src port or icmp message type */
107 /* tcp/udp dst port or icmp type sub-code */
111 #define SIGALRM_MASK 1
112 #define SIGTERM_MASK 2
113 #define SIGUSR1_MASK 4
118 struct sockaddr_in addr;
119 struct sockaddr_in laddr;
126 char basename[IFNAMSIZ];
131 #define PEER_MIRROR 0
132 #define PEER_ROTATE 1