ipv6: fill rt6i_gateway with nexthop address
authorJulian Anastasov <ja@ssi.bg>
Sun, 20 Oct 2013 12:43:04 +0000 (15:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2013 12:31:05 +0000 (04:31 -0800)
commit044d6efb797bfa1131bfb510102505ba41bfec52
treec184240bec3b579c6e7cdad661dc8b83e8b88149
parent208a6152b633a33722cc53bca47c46b79e88a2ad
ipv6: fill rt6i_gateway with nexthop address

[ Upstream commit 550bab42f83308c9d6ab04a980cc4333cef1c8fa ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/ip6_route.h
net/ipv6/ip6_output.c
net/ipv6/route.c