diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-01-15 02:40:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:23 -0500 |
commit | 64eb12f9972d45f3b9b0f0a33a966e311c3d5275 (patch) | |
tree | 0a598500b8ec1bb62dd71909f1c907e121e4a4bf /include | |
parent | 2e3075a2c4364c0e8726ac2a0f3b1708da781bac (diff) |
[NETFILTER]: xt_conntrack match, revision 1
Introduces the xt_conntrack match revision 1. It uses fixed types, the
new nf_inet_addr and comes with IPv6 support, thereby completely
superseding xt_state.
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter/xt_conntrack.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/linux/netfilter/xt_conntrack.h b/include/linux/netfilter/xt_conntrack.h index 70b6f718cf4c..d2492a3329be 100644 --- a/include/linux/netfilter/xt_conntrack.h +++ b/include/linux/netfilter/xt_conntrack.h | |||
@@ -6,7 +6,9 @@ | |||
6 | #define _XT_CONNTRACK_H | 6 | #define _XT_CONNTRACK_H |
7 | 7 | ||
8 | #include <linux/netfilter/nf_conntrack_tuple_common.h> | 8 | #include <linux/netfilter/nf_conntrack_tuple_common.h> |
9 | #include <linux/in.h> | 9 | #ifdef __KERNEL__ |
10 | # include <linux/in.h> | ||
11 | #endif | ||
10 | 12 | ||
11 | #define XT_CONNTRACK_STATE_BIT(ctinfo) (1 << ((ctinfo)%IP_CT_IS_REPLY+1)) | 13 | #define XT_CONNTRACK_STATE_BIT(ctinfo) (1 << ((ctinfo)%IP_CT_IS_REPLY+1)) |
12 | #define XT_CONNTRACK_STATE_INVALID (1 << 0) | 14 | #define XT_CONNTRACK_STATE_INVALID (1 << 0) |
@@ -60,4 +62,16 @@ struct xt_conntrack_info | |||
60 | /* Inverse flags */ | 62 | /* Inverse flags */ |
61 | u_int8_t invflags; | 63 | u_int8_t invflags; |
62 | }; | 64 | }; |
65 | |||
66 | struct xt_conntrack_mtinfo1 { | ||
67 | union nf_inet_addr origsrc_addr, origsrc_mask; | ||
68 | union nf_inet_addr origdst_addr, origdst_mask; | ||
69 | union nf_inet_addr replsrc_addr, replsrc_mask; | ||
70 | union nf_inet_addr repldst_addr, repldst_mask; | ||
71 | u_int32_t expires_min, expires_max; | ||
72 | u_int16_t l4proto; | ||
73 | u_int8_t state_mask, status_mask; | ||
74 | u_int8_t match_flags, invert_flags; | ||
75 | }; | ||
76 | |||
63 | #endif /*_XT_CONNTRACK_H*/ | 77 | #endif /*_XT_CONNTRACK_H*/ |