FreeBSD/sys/netinet6/nd6_rtr.c
/*
 * Remove a router from the global list and optionally stash it in a
 * caller-supplied queue.
 *
 * The ND lock must be held.
 */
Remove a router from the global list and optionally stash it in a
caller-supplied queue.

The ND lock must be held.
Remove a router from the global list and optionally stash it in a caller - supplied queue . The ND lock must be held .
void
defrouter_unlink(struct nd_defrouter *dr, struct nd_drhead *drq)
{
	ND6_WLOCK_ASSERT();
	TAILQ_REMOVE(&V_nd_defrouter, dr, dr_entry);
	if (drq != NULL)
		TAILQ_INSERT_TAIL(drq, dr, dr_entry);
}
void defrouter_unlink ( struct nd_defrouter * dr , struct nd_drhead * drq ) { ND6_WLOCK_ASSERT ( ) ; TAILQ_REMOVE ( & V_nd_defrouter , dr , dr_entry ) ; if ( drq != NULL ) TAILQ_INSERT_TAIL ( drq , dr , dr_entry ) ; }
Remove a router from the global list and optionally stash it in a
 caller-supplied queue.
Remove a router from the global list and optionally stash it in a caller - supplied queue .