]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a21cbccf8bcc13e30eac7234f98587973c56dc1
tree254a9840e9ca6cbe13815443b9b8bd1c2ae54b47
parent7e67007739c99a6ec6de215d77705b79540f3a51
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