* [PATCH net] net: route: add missing nla_policy entry for RTA_MARK attribute
@ 2017-02-27 12:59 Liping Zhang
2017-03-01 18:26 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Liping Zhang @ 2017-02-27 12:59 UTC (permalink / raw)
To: davem; +Cc: netdev, Liping Zhang
From: Liping Zhang <zlpnobody@gmail.com>
This will add stricter validating for RTA_MARK attribute.
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
---
net/ipv4/fib_frontend.c | 1 +
net/ipv6/route.c | 1 +
2 files changed, 2 insertions(+)
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,
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index f54f426..d94f1df 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2891,6 +2891,7 @@ static const struct nla_policy rtm_ipv6_policy[RTA_MAX+1] = {
[RTA_ENCAP] = { .type = NLA_NESTED },
[RTA_EXPIRES] = { .type = NLA_U32 },
[RTA_UID] = { .type = NLA_U32 },
+ [RTA_MARK] = { .type = NLA_U32 },
};
static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh,
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] net: route: add missing nla_policy entry for RTA_MARK attribute
2017-02-27 12:59 [PATCH net] net: route: add missing nla_policy entry for RTA_MARK attribute Liping Zhang
@ 2017-03-01 18:26 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-03-01 18:26 UTC (permalink / raw)
To: zlpnobody; +Cc: netdev, zlpnobody
From: Liping Zhang <zlpnobody@163.com>
Date: Mon, 27 Feb 2017 20:59:39 +0800
> From: Liping Zhang <zlpnobody@gmail.com>
>
> This will add stricter validating for RTA_MARK attribute.
>
> Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Looks good, applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-01 18:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-27 12:59 [PATCH net] net: route: add missing nla_policy entry for RTA_MARK attribute Liping Zhang
2017-03-01 18:26 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).