Shmulik Ladkani 72331bc0cd ipv6: Fix RTM_GETROUTE's interpretation of RTA_IIF to be consistent with ipv4
In IPv4, if an RTA_IIF attribute is specified within an RTM_GETROUTE
message, then a route is searched as if a packet was received on the
specified 'iif' interface.

However in IPv6, RTA_IIF is not interpreted in the same way:
'inet6_rtm_getroute()' always calls 'ip6_route_output()', regardless the
RTA_IIF attribute.

As a result, in IPv6 there's no way to use RTM_GETROUTE in order to look
for a route as if a packet was received on a specific interface.

Fix 'inet6_rtm_getroute()' so that RTA_IIF is interpreted as "lookup a
route as if a packet was received on the specified interface", similar
to IPv4's 'inet_rtm_getroute()' interpretation.

Reported-by: Ami Koren <amikoren@yahoo.com>
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-04-01 17:29:40 -04:00
..
2012-03-11 15:57:11 -07:00
2011-11-22 16:43:32 -05:00
2012-02-13 00:45:38 -05:00
2011-11-22 16:43:32 -05:00
2011-11-22 16:43:32 -05:00
2011-11-22 16:43:32 -05:00
2010-05-11 14:40:55 +02:00
2011-11-22 16:43:32 -05:00
2012-01-17 23:56:18 -05:00
2012-01-30 12:58:51 -05:00
2012-01-26 15:23:21 -05:00
2011-11-22 16:43:32 -05:00
2010-10-25 13:09:45 -07:00
2011-11-22 16:43:32 -05:00
2011-11-22 16:43:32 -05:00