Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/nd6_rtr.c
Show First 20 Lines • Show All 2,454 Lines • ▼ Show 20 Lines | |||||
rt6_flush(struct in6_addr *gateway, struct ifnet *ifp) | rt6_flush(struct in6_addr *gateway, struct ifnet *ifp) | ||||
{ | { | ||||
/* We'll care only link-local addresses */ | /* We'll care only link-local addresses */ | ||||
if (!IN6_IS_ADDR_LINKLOCAL(gateway)) | if (!IN6_IS_ADDR_LINKLOCAL(gateway)) | ||||
return; | return; | ||||
/* XXX Do we really need to walk any but the default FIB? */ | /* XXX Do we really need to walk any but the default FIB? */ | ||||
rt_foreach_fib_walk_del(AF_INET6, rt6_deleteroute, (void *)gateway); | rib_foreach_table_walk_del(AF_INET6, rt6_deleteroute, (void *)gateway); | ||||
} | } | ||||
int | int | ||||
nd6_setdefaultiface(int ifindex) | nd6_setdefaultiface(int ifindex) | ||||
{ | { | ||||
int error = 0; | int error = 0; | ||||
if (ifindex < 0 || V_if_index < ifindex) | if (ifindex < 0 || V_if_index < ifindex) | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |