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 */
55 /* user credentials */
59 /* number of packets */
61 /* sum of packets sizes */
63 /* fragment data size (for fragmented packets) */
65 /* whole packet data size (for fragmented packets) */
67 /* time of creation/flushing this flow */
69 /* time of last modification this flow */
71 #define FLOW_FRAG 0x0001
72 #define FLOW_FRAGMASK 0x0003
73 #define FLOW_TL 0x0004
74 #define FLOW_LASTFRAG 0x0008
75 #define FLOW_PENDING 0x8000
83 /* output interface */
98 /* output interface */
108 /* tcp/udp src port or icmp message type */
110 /* tcp/udp dst port or icmp type sub-code */
114 #define SIGALRM_MASK 1
115 #define SIGTERM_MASK 2
116 #define SIGUSR1_MASK 4
121 struct sockaddr_in addr;
122 struct sockaddr_in laddr;
129 char basename[IFNAMSIZ];
134 #define PEER_MIRROR 0
135 #define PEER_ROTATE 1