net: ipv6: make "ip -6 route get mark xyz" work.
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- net/ipv6/route.c | 3 +++ 1 file changed, 3 insertions(+)
net/ipv6/route.c +3 -0
@@ -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 ;
Signature · 1 line
1.9.1.423.g4596e3a
From: Lorenzo Colitti <[email protected]>
Date: Thu, 15 May 2014 16:38:41 -0700
Quoted 4 lines
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 <[email protected]>
Applied, thanks for fixing this.