Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1 | #ifndef _XT_CONNBYTES_H |
| 2 | #define _XT_CONNBYTES_H |
| 3 | |
Arnd Bergmann | 60c195c | 2009-02-26 00:51:43 +0100 | [diff] [blame] | 4 | #include <linux/types.h> |
| 5 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 6 | enum xt_connbytes_what { |
| 7 | XT_CONNBYTES_PKTS, |
| 8 | XT_CONNBYTES_BYTES, |
| 9 | XT_CONNBYTES_AVGPKT, |
| 10 | }; |
| 11 | |
| 12 | enum xt_connbytes_direction { |
| 13 | XT_CONNBYTES_DIR_ORIGINAL, |
| 14 | XT_CONNBYTES_DIR_REPLY, |
| 15 | XT_CONNBYTES_DIR_BOTH, |
| 16 | }; |
| 17 | |
Eric Dumazet | d94d9fe | 2009-11-04 09:50:58 -0800 | [diff] [blame] | 18 | struct xt_connbytes_info { |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 19 | struct { |
Mike Frysinger | b51bdad | 2011-03-18 08:50:37 +0000 | [diff] [blame] | 20 | __aligned_u64 from; /* count to be matched */ |
| 21 | __aligned_u64 to; /* count to be matched */ |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 22 | } count; |
Arnd Bergmann | 60c195c | 2009-02-26 00:51:43 +0100 | [diff] [blame] | 23 | __u8 what; /* ipt_connbytes_what */ |
| 24 | __u8 direction; /* ipt_connbytes_direction */ |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 25 | }; |
| 26 | #endif |