Harald Welte | 9d810fd | 2005-08-13 13:56:26 -0700 | [diff] [blame^] | 1 | #ifndef _IPT_CONNBYTES_H |
| 2 | #define _IPT_CONNBYTES_H |
| 3 | |
| 4 | enum ipt_connbytes_what { |
| 5 | IPT_CONNBYTES_WHAT_PKTS, |
| 6 | IPT_CONNBYTES_WHAT_BYTES, |
| 7 | IPT_CONNBYTES_WHAT_AVGPKT, |
| 8 | }; |
| 9 | |
| 10 | enum ipt_connbytes_direction { |
| 11 | IPT_CONNBYTES_DIR_ORIGINAL, |
| 12 | IPT_CONNBYTES_DIR_REPLY, |
| 13 | IPT_CONNBYTES_DIR_BOTH, |
| 14 | }; |
| 15 | |
| 16 | struct ipt_connbytes_info |
| 17 | { |
| 18 | struct { |
| 19 | aligned_u64 from; /* count to be matched */ |
| 20 | aligned_u64 to; /* count to be matched */ |
| 21 | } count; |
| 22 | u_int8_t what; /* ipt_connbytes_what */ |
| 23 | u_int8_t direction; /* ipt_connbytes_direction */ |
| 24 | }; |
| 25 | #endif |