summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2011-12-23 17:00:30 +0400
committerPablo Neira Ayuso <pablo@netfilter.org>2011-12-23 17:36:44 +0400
commit329fb58a93b25f0f5ee9d80c0e0e6a6c1a0192b4 (patch)
tree76cfcb6411f8837b16e831a7d290fb159d898716 /net/ipv4
parent4d4e61c6ca683cdc0ea07d39c80cc8d6d478b31e (diff)
downloadlinux-329fb58a93b25f0f5ee9d80c0e0e6a6c1a0192b4.tar.xz
netfilter: nf_nat: add missing nla_policy entry for CTA_NAT_PROTO attribute
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/nf_nat_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c
index 76600f8d434b..610eb4499a1a 100644
--- a/net/ipv4/netfilter/nf_nat_core.c
+++ b/net/ipv4/netfilter/nf_nat_core.c
@@ -622,6 +622,7 @@ static int nfnetlink_parse_nat_proto(struct nlattr *attr,
static const struct nla_policy nat_nla_policy[CTA_NAT_MAX+1] = {
[CTA_NAT_MINIP] = { .type = NLA_U32 },
[CTA_NAT_MAXIP] = { .type = NLA_U32 },
+ [CTA_NAT_PROTO] = { .type = NLA_NESTED },
};
static int