diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2014-05-15 19:38:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-16 16:50:30 -0400 |
commit | 2e47b291953c35afa4e20a65475954c1a1b9afe1 (patch) | |
tree | e17484d3f6f9825862acf16bbddae1a1f511f716 | |
parent | 2f67cc87d662e935d2cfaea5a3fb7138ac35c5de (diff) |
net: ipv6: make "ip -6 route get mark xyz" work.
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/route.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 58c449ad7f6e..6ebdb7b6744c 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2730,6 +2730,9 @@ static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh) | |||
2730 | if (tb[RTA_OIF]) | 2730 | if (tb[RTA_OIF]) |
2731 | oif = nla_get_u32(tb[RTA_OIF]); | 2731 | oif = nla_get_u32(tb[RTA_OIF]); |
2732 | 2732 | ||
2733 | if (tb[RTA_MARK]) | ||
2734 | fl6.flowi6_mark = nla_get_u32(tb[RTA_MARK]); | ||
2735 | |||
2733 | if (iif) { | 2736 | if (iif) { |
2734 | struct net_device *dev; | 2737 | struct net_device *dev; |
2735 | int flags = 0; | 2738 | int flags = 0; |