aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2005-08-09 23:04:07 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 18:40:09 -0400
commit1444fc559b01aa5d4fedf4ee4f306a9e9cd56f95 (patch)
tree03ce8666d82f7c41e2a7410b889fd6b5a4a60c5a /include
parenta42827b71b87fc9816d2f58626e825b0eb500efe (diff)
[NETFILTER]: don't use nested attributes for conntrack_expect
We used to use nested nfattr structures for ip_conntrack_expect. This is bogus, since ip_conntrack and ip_conntrack_expect are communicated in different netlink message types. both should be encoded at the top level attributes, no extra nesting required. This patch addresses the issue. Signed-off-by: Harald Welte <laforge@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter/nfnetlink_conntrack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/netfilter/nfnetlink_conntrack.h b/include/linux/netfilter/nfnetlink_conntrack.h
index fb528e0e3bd9..5c55751c78e4 100644
--- a/include/linux/netfilter/nfnetlink_conntrack.h
+++ b/include/linux/netfilter/nfnetlink_conntrack.h
@@ -33,7 +33,6 @@ enum ctattr_type {
33 CTA_COUNTERS_ORIG, 33 CTA_COUNTERS_ORIG,
34 CTA_COUNTERS_REPLY, 34 CTA_COUNTERS_REPLY,
35 CTA_USE, 35 CTA_USE,
36 CTA_EXPECT,
37 CTA_ID, 36 CTA_ID,
38 __CTA_MAX 37 __CTA_MAX
39}; 38};
@@ -103,10 +102,12 @@ enum ctattr_protonat {
103 102
104enum ctattr_expect { 103enum ctattr_expect {
105 CTA_EXPECT_UNSPEC, 104 CTA_EXPECT_UNSPEC,
105 CTA_EXPECT_MASTER,
106 CTA_EXPECT_TUPLE, 106 CTA_EXPECT_TUPLE,
107 CTA_EXPECT_MASK, 107 CTA_EXPECT_MASK,
108 CTA_EXPECT_TIMEOUT, 108 CTA_EXPECT_TIMEOUT,
109 CTA_EXPECT_ID, 109 CTA_EXPECT_ID,
110 CTA_EXPECT_HELP_NAME,
110 __CTA_EXPECT_MAX 111 __CTA_EXPECT_MAX
111}; 112};
112#define CTA_EXPECT_MAX (__CTA_EXPECT_MAX - 1) 113#define CTA_EXPECT_MAX (__CTA_EXPECT_MAX - 1)