diff options
author | Liping Zhang <zlpnobody@gmail.com> | 2017-02-27 20:59:39 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-01 10:25:56 -0800 |
commit | 3b45a4106f146c336cbcaccb9d8d0fa0e5c3dc1d (patch) | |
tree | 6cc6357c067cae23b7dfc81d8fc755bdf33a4b3c /net/ipv4/fib_frontend.c | |
parent | 8c171d6ca56c6891372a97af26b58b2cfad7fd9a (diff) | |
download | op-kernel-dev-3b45a4106f146c336cbcaccb9d8d0fa0e5c3dc1d.zip op-kernel-dev-3b45a4106f146c336cbcaccb9d8d0fa0e5c3dc1d.tar.gz |
net: route: add missing nla_policy entry for RTA_MARK attribute
This will add stricter validating for RTA_MARK attribute.
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index b39a791..42bfd08 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -622,6 +622,7 @@ const struct nla_policy rtm_ipv4_policy[RTA_MAX + 1] = { [RTA_ENCAP_TYPE] = { .type = NLA_U16 }, [RTA_ENCAP] = { .type = NLA_NESTED }, [RTA_UID] = { .type = NLA_U32 }, + [RTA_MARK] = { .type = NLA_U32 }, }; static int rtm_to_fib_config(struct net *net, struct sk_buff *skb, |