* [PATCH] net: ipv6: make "ip -6 route get mark xyz" work.
@ 2014-05-15 23:38 Lorenzo Colitti
2014-05-16 20:50 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Lorenzo Colitti @ 2014-05-15 23:38 UTC (permalink / raw)
To: davem; +Cc: netdev, Lorenzo Colitti
Currently, "ip -6 route get mark xyz" ignores the mark passed in
by userspace. Make it honour the mark, just like IPv4 does.
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
---
net/ipv6/route.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index f0a8ff9..8784d3a 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2709,6 +2709,9 @@ static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh)
if (tb[RTA_OIF])
oif = nla_get_u32(tb[RTA_OIF]);
+ if (tb[RTA_MARK])
+ fl6.flowi6_mark = nla_get_u32(tb[RTA_MARK]);
+
if (iif) {
struct net_device *dev;
int flags = 0;
--
1.9.1.423.g4596e3a
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: ipv6: make "ip -6 route get mark xyz" work.
2014-05-15 23:38 [PATCH] net: ipv6: make "ip -6 route get mark xyz" work Lorenzo Colitti
@ 2014-05-16 20:50 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-05-16 20:50 UTC (permalink / raw)
To: lorenzo; +Cc: netdev
From: Lorenzo Colitti <lorenzo@google.com>
Date: Thu, 15 May 2014 16:38:41 -0700
> Currently, "ip -6 route get mark xyz" ignores the mark passed in
> by userspace. Make it honour the mark, just like IPv4 does.
>
> Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Applied, thanks for fixing this.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-16 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-15 23:38 [PATCH] net: ipv6: make "ip -6 route get mark xyz" work Lorenzo Colitti
2014-05-16 20:50 ` 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).