FreeBSD/sys/net/if_llatbl.c
/*
 * Dump lle state for a specific address family.
 */
Dump lle state for a specific address family.
Dump lle state for a specific address family .
static int
lltable_dump_af(struct lltable *llt, struct sysctl_req *wr)
{
	int error;
	LLTABLE_LOCK_ASSERT();
	if (llt->llt_ifp->if_flags & IFF_LOOPBACK)
		return (0);
	error = 0;
	IF_AFDATA_RLOCK(llt->llt_ifp);
	error = lltable_foreach_lle(llt,
	    (llt_foreach_cb_t *)llt->llt_dump_entry, wr);
	IF_AFDATA_RUNLOCK(llt->llt_ifp);
	return (error);
}
static int lltable_dump_af ( struct lltable * llt , struct sysctl_req * wr ) { int error ; LLTABLE_LOCK_ASSERT ( ) ; if ( llt -> llt_ifp -> if_flags & IFF_LOOPBACK ) return ( 0 ) ; error = 0 ; IF_AFDATA_RLOCK ( llt -> llt_ifp ) ; error = lltable_foreach_lle ( llt , ( llt_foreach_cb_t * ) llt -> llt_dump_entry , wr ) ; IF_AFDATA_RUNLOCK ( llt -> llt_ifp ) ; return ( error ) ; }
Dump lle state for a specific address family.
Dump lle state for a specific address family .