FreeBSD/sys/netinet6/nd6_rtr.c
/*
 * Delete all the routing table entries that use the specified gateway.
 * XXX: this function causes search through all entries of routing table, so
 * it shouldn't be called when acting as a router.
 */
Delete all the routing table entries that use the specified gateway.
XXX: this function causes search through all entries of routing table, so
it shouldn't be called when acting as a router.
Delete all the routing table entries that use the specified gateway . XXX : this function causes search through all entries of routing table so it shouldn ' t be called when acting as a router .
void
rt6_flush(struct in6_addr *gateway, struct ifnet *ifp)
{
	if (!IN6_IS_ADDR_LINKLOCAL(gateway))
		return;
	rt_foreach_fib_walk_del(AF_INET6, rt6_deleteroute, (void *)gateway);
}
void rt6_flush ( struct in6_addr * gateway , struct ifnet * ifp ) { if ( ! IN6_IS_ADDR_LINKLOCAL ( gateway ) ) return ; rt_foreach_fib_walk_del ( AF_INET6 , rt6_deleteroute , ( void * ) gateway ) ; }
Delete all the routing table entries that use the specified gateway.
Delete all the routing table entries that use the specified gateway .
/* We'll care only link-local addresses */ /* XXX Do we really need to walk any but the default FIB? */