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>
Showing
- include/net/ip6_route.h 14 additions, 5 deletionsinclude/net/ip6_route.h
- net/bluetooth/6lowpan.c 1 addition, 1 deletionnet/bluetooth/6lowpan.c
- net/ipv6/icmp.c 2 additions, 2 deletionsnet/ipv6/icmp.c
- net/ipv6/ip6_output.c 3 additions, 2 deletionsnet/ipv6/ip6_output.c
- net/ipv6/route.c 1 addition, 5 deletionsnet/ipv6/route.c
- net/netfilter/nf_conntrack_h323_main.c 2 additions, 2 deletionsnet/netfilter/nf_conntrack_h323_main.c
- net/netfilter/xt_addrtype.c 1 addition, 1 deletionnet/netfilter/xt_addrtype.c
Loading
Please register or sign in to comment