]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2014 03:23:41 +0000 (23:23 -0400)
commit608cdaef563b572938b9bd47d952042e97394e20
tree5305412f9427f50f69822e5fa16bb6db5f7e2ea0
parent63aea59f63b18f7aa0a2385a3f41163288b73870
ipv4: return valid RTA_IIF on ip route get

Extend commit cd9cd9c0b6b09a7599cce907452e25fe5f6f1b85
("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>
net/ipv4/route.c