OGAWA Hirofumi 1b86a58f9d ipv4: Fix "Set rt->rt_iif more sanely on output routes."
Commit 1018b5c01636c7c6bda31a719bda34fc631db29a ("Set rt->rt_iif more
sanely on output routes.")  breaks rt_is_{output,input}_route.

This became the cause to return "IP_PKTINFO's ->ipi_ifindex == 0".

To fix it, this does:

1) Add "int rt_route_iif;" to struct rtable

2) For input routes, always set rt_route_iif to same value as rt_iif

3) For output routes, always set rt_route_iif to zero.  Set rt_iif
   as it is done currently.

4) Change rt_is_{output,input}_route() to test rt_route_iif

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-04-07 14:04:08 -07:00
..
2010-10-25 13:09:44 -07:00
2011-03-27 23:34:59 -07:00
2011-03-14 17:02:42 -07:00
2011-01-12 19:00:40 -08:00
2011-03-21 18:16:39 -07:00
2011-03-01 22:51:52 -08:00
2011-03-23 19:46:16 -07:00
2011-03-05 10:55:45 +01:00
2010-10-15 15:53:27 +02:00