diff options
author | Patrick McHardy | 2011-12-23 14:00:30 +0100 |
---|---|---|
committer | Pablo Neira Ayuso | 2011-12-23 14:36:44 +0100 |
commit | 329fb58a93b25f0f5ee9d80c0e0e6a6c1a0192b4 (patch) | |
tree | 76cfcb6411f8837b16e831a7d290fb159d898716 /net | |
parent | 4d4e61c6ca683cdc0ea07d39c80cc8d6d478b31e (diff) |
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')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_core.c | 1 |
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 |