Home | History | Annotate | Download | only in netfilter
      1 #ifndef _XT_CT_H
      2 #define _XT_CT_H
      3 
      4 #include <linux/types.h>
      5 
      6 enum {
      7 	XT_CT_NOTRACK		= 1 << 0,
      8 	XT_CT_NOTRACK_ALIAS	= 1 << 1,
      9 	XT_CT_ZONE_DIR_ORIG	= 1 << 2,
     10 	XT_CT_ZONE_DIR_REPL	= 1 << 3,
     11 	XT_CT_ZONE_MARK		= 1 << 4,
     12 
     13 	XT_CT_MASK		= XT_CT_NOTRACK | XT_CT_NOTRACK_ALIAS |
     14 				  XT_CT_ZONE_DIR_ORIG | XT_CT_ZONE_DIR_REPL |
     15 				  XT_CT_ZONE_MARK,
     16 };
     17 
     18 struct xt_ct_target_info {
     19 	__u16 flags;
     20 	__u16 zone;
     21 	__u32 ct_events;
     22 	__u32 exp_events;
     23 	char helper[16];
     24 
     25 	/* Used internally by the kernel */
     26 	struct nf_conn	*ct __attribute__((aligned(8)));
     27 };
     28 
     29 struct xt_ct_target_info_v1 {
     30 	__u16 flags;
     31 	__u16 zone;
     32 	__u32 ct_events;
     33 	__u32 exp_events;
     34 	char helper[16];
     35 	char timeout[32];
     36 
     37 	/* Used internally by the kernel */
     38 	struct nf_conn	*ct __attribute__((aligned(8)));
     39 };
     40 
     41 #endif /* _XT_CT_H */
     42