ipv6: fill rt6i_gateway with nexthop address
authorJulian Anastasov <ja@ssi.bg>
Sun, 20 Oct 2013 12:43:04 +0000 (15:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Oct 2013 22:37:01 +0000 (18:37 -0400)
commit550bab42f83308c9d6ab04a980cc4333cef1c8fa
tree254a9840e9ca6cbe13815443b9b8bd1c2ae54b47
parent96dc809514fb2328605198a0602b67554d8cce7b
ipv6: fill rt6i_gateway with nexthop address

Make sure rt6i_gateway contains nexthop information in
all routes returned from lookup or when routes are directly
attached to skb for generated ICMP packets.

The effect of this patch should be a faster version of
rt6_nexthop() and the consideration of local addresses as
nexthop.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/ip6_output.c
net/ipv6/route.c