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 600
24 #define UNPENDING_TIMEOUT 5
25 #define CAPTURE_SIZE 131072
29 #define NETFLOW_PDU_SIZE 1464
39 /* output interface */
49 /* tcp/udp src port or icmp message type */
51 /* tcp/udp dst port or icmp type sub-code */
57 /* number of packets */
59 /* sum of packets sizes */
61 /* fragment data size (for fragmented packets) */
63 /* whole packet data size (for fragmented packets) */
65 /* time of creation/flushing this flow */
67 /* time of last modification this flow */
69 #define FLOW_FRAG 0x0001
70 #define FLOW_FRAGMASK 0x0003
71 #define FLOW_TL 0x0004
72 #define FLOW_LASTFRAG 0x0008
73 #define FLOW_PENDING 0x8000
81 /* output interface */
96 /* output interface */
106 /* tcp/udp src port or icmp message type */
108 /* tcp/udp dst port or icmp type sub-code */
112 #define SIGALRM_MASK 1
113 #define SIGTERM_MASK 2
114 #define SIGUSR1_MASK 4
119 struct sockaddr_in addr;
120 struct sockaddr_in laddr;
127 char basename[IFNAMSIZ];
132 #define PEER_MIRROR 0
133 #define PEER_ROTATE 1