]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Introduce rt6_nexthop() to select nexthop address.
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Thu, 17 Jan 2013 12:53:48 +0000 (12:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2013 23:38:19 +0000 (18:38 -0500)
commit65d498325dda70f572146a66d7e30b70781fe802
treead847b21e5891498947b270a483c78693779d4e1
parent073c3f5e85f1585f38a9df4098b5cc7bde1b624f
ipv6: Introduce rt6_nexthop() to select nexthop address.

For RTF_GATEWAY route, return rt->rt6i_gateway.
Otherwise, return 2nd argument (destination address).

This will be used by following patches which remove rt->n
dependency patches in ip6_dst_lookup_tail() and ip6_finish_output2().

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h