sys/net/if_vlan.c
/* Debugging code to view the hashtables. */
Debugging code to view the hashtables.
Debugging code to view the hashtables .
static void
vlan_dumphash(struct ifvlantrunk *trunk)
{
	int i;
	struct ifvlan *ifv;
	for (i = 0; i < (1 << trunk->hwidth); i++) {
		printf("%d: ", i);
		LIST_FOREACH(ifv, &trunk->hash[i], ifv_list)
			printf("%s ", ifv->ifv_ifp->if_xname);
		printf("\n");
	}
}
static void vlan_dumphash ( struct ifvlantrunk * trunk ) { int i ; struct ifvlan * ifv ; for ( i = 0 ; i < ( 1 << trunk -> hwidth ) ; i ++ ) { printf ( " " , i ) ; LIST_FOREACH ( ifv , & trunk -> hash [ i ] , ifv_list ) printf ( " " , ifv -> ifv_ifp -> if_xname ) ; printf ( " \n " ) ; } }
Debugging code to view the hashtables.
Debugging code to view the hashtables .