diff options
author | Patrick McHardy <kaber@trash.net> | 2007-09-28 17:39:55 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:53:35 -0400 |
commit | f73e924cdd166360e8cc9a1b193008fdc9b3e3e2 (patch) | |
tree | 48fbf4b0f9101359e05fb53eabe194495f8214d1 /include/net | |
parent | 5bf758539388fa9383afd539d052ae93229544b9 (diff) |
[NETFILTER]: ctnetlink: use netlink policy
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/nf_conntrack_l3proto.h | 2 | ||||
-rw-r--r-- | include/net/netfilter/nf_conntrack_l4proto.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_conntrack_l3proto.h b/include/net/netfilter/nf_conntrack_l3proto.h index f6c372d4ec1f..15888fc7b72d 100644 --- a/include/net/netfilter/nf_conntrack_l3proto.h +++ b/include/net/netfilter/nf_conntrack_l3proto.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #ifndef _NF_CONNTRACK_L3PROTO_H | 12 | #ifndef _NF_CONNTRACK_L3PROTO_H |
13 | #define _NF_CONNTRACK_L3PROTO_H | 13 | #define _NF_CONNTRACK_L3PROTO_H |
14 | #include <linux/netlink.h> | 14 | #include <linux/netlink.h> |
15 | #include <net/netlink.h> | ||
15 | #include <linux/seq_file.h> | 16 | #include <linux/seq_file.h> |
16 | #include <net/netfilter/nf_conntrack.h> | 17 | #include <net/netfilter/nf_conntrack.h> |
17 | 18 | ||
@@ -68,6 +69,7 @@ struct nf_conntrack_l3proto | |||
68 | 69 | ||
69 | int (*nlattr_to_tuple)(struct nlattr *tb[], | 70 | int (*nlattr_to_tuple)(struct nlattr *tb[], |
70 | struct nf_conntrack_tuple *t); | 71 | struct nf_conntrack_tuple *t); |
72 | const struct nla_policy *nla_policy; | ||
71 | 73 | ||
72 | #ifdef CONFIG_SYSCTL | 74 | #ifdef CONFIG_SYSCTL |
73 | struct ctl_table_header *ctl_table_header; | 75 | struct ctl_table_header *ctl_table_header; |
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h index 658daccc6b56..fb50c217ba0a 100644 --- a/include/net/netfilter/nf_conntrack_l4proto.h +++ b/include/net/netfilter/nf_conntrack_l4proto.h | |||
@@ -10,6 +10,7 @@ | |||
10 | #ifndef _NF_CONNTRACK_L4PROTO_H | 10 | #ifndef _NF_CONNTRACK_L4PROTO_H |
11 | #define _NF_CONNTRACK_L4PROTO_H | 11 | #define _NF_CONNTRACK_L4PROTO_H |
12 | #include <linux/netlink.h> | 12 | #include <linux/netlink.h> |
13 | #include <net/netlink.h> | ||
13 | #include <net/netfilter/nf_conntrack.h> | 14 | #include <net/netfilter/nf_conntrack.h> |
14 | 15 | ||
15 | struct seq_file; | 16 | struct seq_file; |
@@ -75,6 +76,7 @@ struct nf_conntrack_l4proto | |||
75 | const struct nf_conntrack_tuple *t); | 76 | const struct nf_conntrack_tuple *t); |
76 | int (*nlattr_to_tuple)(struct nlattr *tb[], | 77 | int (*nlattr_to_tuple)(struct nlattr *tb[], |
77 | struct nf_conntrack_tuple *t); | 78 | struct nf_conntrack_tuple *t); |
79 | const struct nla_policy *nla_policy; | ||
78 | 80 | ||
79 | #ifdef CONFIG_SYSCTL | 81 | #ifdef CONFIG_SYSCTL |
80 | struct ctl_table_header **ctl_table_header; | 82 | struct ctl_table_header **ctl_table_header; |
@@ -115,6 +117,7 @@ extern int nf_ct_port_tuple_to_nlattr(struct sk_buff *skb, | |||
115 | const struct nf_conntrack_tuple *tuple); | 117 | const struct nf_conntrack_tuple *tuple); |
116 | extern int nf_ct_port_nlattr_to_tuple(struct nlattr *tb[], | 118 | extern int nf_ct_port_nlattr_to_tuple(struct nlattr *tb[], |
117 | struct nf_conntrack_tuple *t); | 119 | struct nf_conntrack_tuple *t); |
120 | extern const struct nla_policy nf_ct_port_nla_policy[]; | ||
118 | 121 | ||
119 | /* Log invalid packets */ | 122 | /* Log invalid packets */ |
120 | extern unsigned int nf_ct_log_invalid; | 123 | extern unsigned int nf_ct_log_invalid; |