Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


ebt_ulog.h
01: #ifndef _EBT_ULOG_H
02: #define _EBT_ULOG_H
03: 
04: #include <linux/types.h>
05: 
06: #define EBT_ULOG_DEFAULT_NLGROUP 0
07: #define EBT_ULOG_DEFAULT_QTHRESHOLD 1
08: #define EBT_ULOG_MAXNLGROUPS 32 /* hardcoded netlink max */
09: #define EBT_ULOG_PREFIX_LEN 32
10: #define EBT_ULOG_MAX_QLEN 50
11: #define EBT_ULOG_WATCHER "ulog"
12: #define EBT_ULOG_VERSION 1
13: 
14: struct ebt_ulog_info {
15:         __u32 nlgroup;
16:         unsigned int cprange;
17:         unsigned int qthreshold;
18:         char prefix[EBT_ULOG_PREFIX_LEN];
19: };
20: 
21: typedef struct ebt_ulog_packet_msg {
22:         int version;
23:         char indev[IFNAMSIZ];
24:         char outdev[IFNAMSIZ];
25:         char physindev[IFNAMSIZ];
26:         char physoutdev[IFNAMSIZ];
27:         char prefix[EBT_ULOG_PREFIX_LEN];
28:         struct timeval stamp;
29:         unsigned long mark;
30:         unsigned int hook;
31:         size_t data_len;
32:         /* The complete packet, including Ethernet header and perhaps
33:          * the VLAN header is appended */
34:         unsigned char data[0] __attribute__
35:                               ((aligned (__alignof__(struct ebt_ulog_info))));
36: } ebt_ulog_packet_msg_t;
37: 
38: #endif /* _EBT_ULOG_H */
39: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/