ipv6: Remove external dependency on rt6i_gateway and RTF_ANYCAST
authorMartin KaFai Lau <kafai@fb.com>
Sat, 23 May 2015 03:55:58 +0000 (20:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 17:25:33 +0000 (13:25 -0400)
commit2647a9b07032c5a95ddee1fcb65d95bddbc6b7f9
tree7274770a847506b7adb64501deac2f90123befa0
parentfd0273d7939f2ce3247f6aac5f6b9a0135d4cd39
ipv6: Remove external dependency on rt6i_gateway and RTF_ANYCAST

When creating a RTF_CACHE route, RTF_ANYCAST is set based on rt6i_dst.
Also, rt6i_gateway is always set to the nexthop while the nexthop
could be a gateway or the rt6i_dst.addr.

After removing the rt6i_dst and rt6i_src dependency in the last patch,
we also need to stop the caller from depending on rt6i_gateway and
RTF_ANYCAST.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/bluetooth/6lowpan.c
net/ipv6/icmp.c
net/ipv6/ip6_output.c
net/ipv6/route.c
net/netfilter/nf_conntrack_h323_main.c
net/netfilter/xt_addrtype.c