Exemple #1
0
static void
in6_mtutimo_funneled(void *rock)
{
#ifdef __APPLE__
    	boolean_t   funnel_state;
    	funnel_state = thread_funnel_set(network_flock, TRUE);
	in6_mtutimo(rock);
#endif
#ifdef __APPLE__
        (void) thread_funnel_set(network_flock, FALSE);
#endif
}
Exemple #2
0
/*
 * Initialize our routing tree.
 */
int
in6_inithead(void **head, int off)
{
	struct radix_node_head *rnh;

	if (!rn_inithead(head, off))
		return 0;

	if (head != (void **)&rt_tables[AF_INET6]) /* BOGUS! */
		return 1;	/* only do this for the real routing table */

	rnh = *head;
	rnh->rnh_addaddr = in6_addroute;
	rnh->rnh_matchaddr = in6_matroute;
	rnh->rnh_close = in6_clsroute;
	in6_rtqtimo(rnh);	/* kick off timeout first time */
	in6_mtutimo(rnh);	/* kick off timeout first time */
	return 1;
}
Exemple #3
0
int
in6_inithead(void **head, int off)
{
	struct rib_head *rh;

	rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3);
	if (rh == NULL)
		return (0);

	rh->rnh_addaddr = in6_addroute;
	*head = (void *)rh;

	if (V__in6_rt_was_here == 0) {
		callout_init(&V_rtq_mtutimer, 1);
		in6_mtutimo(curvnet);	/* kick off timeout first time */
		V__in6_rt_was_here = 1;
	}

	return (1);
}