FreeBSD/sys/net/if_llatbl.c
/*
 * Dump arp state for a specific address family.
 */
Dump arp state for a specific address family.
Dump arp state for a specific address family .
int
lltable_sysctl_dumparp(int af, struct sysctl_req *wr)
{
	struct lltable *llt;
	int error = 0;
	LLTABLE_RLOCK();
	SLIST_FOREACH(llt, &V_lltables, llt_link) {
		if (llt->llt_af == af) {
			error = lltable_dump_af(llt, wr);
			if (error != 0)
				goto done;
		}
	}
done:
	LLTABLE_RUNLOCK();
	return (error);
}
int lltable_sysctl_dumparp ( int af , struct sysctl_req * wr ) { struct lltable * llt ; int error = 0 ; LLTABLE_RLOCK ( ) ; SLIST_FOREACH ( llt , & V_lltables , llt_link ) { if ( llt -> llt_af == af ) { error = lltable_dump_af ( llt , wr ) ; if ( error != 0 ) goto done ; } } done : LLTABLE_RUNLOCK ( ) ; return ( error ) ; }
Dump arp state for a specific address family.
Dump arp state for a specific address family .