blob: f1d6c15bd9e37edce2efa073424dee386984367e [file] [log] [blame]
Harald Welte2e4e6a12006-01-12 13:30:04 -08001#ifndef _XT_CONNBYTES_H
2#define _XT_CONNBYTES_H
3
Arnd Bergmann60c195c2009-02-26 00:51:43 +01004#include <linux/types.h>
5
Harald Welte2e4e6a12006-01-12 13:30:04 -08006enum xt_connbytes_what {
7 XT_CONNBYTES_PKTS,
8 XT_CONNBYTES_BYTES,
9 XT_CONNBYTES_AVGPKT,
10};
11
12enum xt_connbytes_direction {
13 XT_CONNBYTES_DIR_ORIGINAL,
14 XT_CONNBYTES_DIR_REPLY,
15 XT_CONNBYTES_DIR_BOTH,
16};
17
Eric Dumazetd94d9fe2009-11-04 09:50:58 -080018struct xt_connbytes_info {
Harald Welte2e4e6a12006-01-12 13:30:04 -080019 struct {
Mike Frysingerb51bdad2011-03-18 08:50:37 +000020 __aligned_u64 from; /* count to be matched */
21 __aligned_u64 to; /* count to be matched */
Harald Welte2e4e6a12006-01-12 13:30:04 -080022 } count;
Arnd Bergmann60c195c2009-02-26 00:51:43 +010023 __u8 what; /* ipt_connbytes_what */
24 __u8 direction; /* ipt_connbytes_direction */
Harald Welte2e4e6a12006-01-12 13:30:04 -080025};
26#endif