]> git.ipfire.org Git - people/ms/linux.git/commit
ipv4: return valid RTA_IIF on ip route get
authorJulian Anastasov <ja@ssi.bg>
Sun, 13 Apr 2014 15:08:02 +0000 (18:08 +0300)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 May 2014 09:38:33 +0000 (11:38 +0200)
commitd3fe9147a60663d3329e557df9edbfdb2fdedde3
tree145eab763193f58e2130256afa6fc00ba9210cd3
parent8e41d3a008374022b116ed4434dec644fef3e676
ipv4: return valid RTA_IIF on ip route get

[ Upstream commit 91146153da2feab18efab2e13b0945b6bb704ded ]

Extend commit 13378cad02afc2adc6c0e07fca03903c7ada0b37
("ipv4: Change rt->rt_iif encoding.") from 3.6 to return valid
RTA_IIF on 'ip route get ... iif DEVICE' instead of rt_iif 0
which is displayed as 'iif *'.

inet_iif is not appropriate to use because skb_iif is not set.
Use the skb->dev->ifindex instead.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/ipv4/route.c