FreeBSD/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c
/*
 * Update all bridge interfaces' ports only - 
 * make sure each bridge interface exists first.
 */
Update all bridge interfaces' ports only
make sure each bridge interface exists first.
Update all bridge interfaces ' ports only make sure each bridge interface exists first .
void
bridge_update_all_ports(void)
{
	struct mibif *ifp;
	struct bridge_if *bif, *t_bif;
	for (bif = bridge_first_bif(); bif != NULL; bif = t_bif) {
		t_bif = bridge_next_bif(bif);
		for (ifp = mib_first_if(); ifp != NULL;
		    ifp = mib_next_if(ifp))
			if (strcmp(ifp->name, bif->bif_name) == 0)
				break;
		if (ifp != NULL)
			bif->num_ports = bridge_update_memif(bif);
		else  
			bridge_remove_bif(bif);
	}
	bridge_ports_update_listage();
}
void bridge_update_all_ports ( void ) { struct mibif * ifp ; struct bridge_if * bif , * t_bif ; for ( bif = bridge_first_bif ( ) ; bif != NULL ; bif = t_bif ) { t_bif = bridge_next_bif ( bif ) ; for ( ifp = mib_first_if ( ) ; ifp != NULL ; ifp = mib_next_if ( ifp ) ) if ( strcmp ( ifp -> name , bif -> bif_name ) == 0 ) break ; if ( ifp != NULL ) bif -> num_ports = bridge_update_memif ( bif ) ; else bridge_remove_bif ( bif ) ; } bridge_ports_update_listage ( ) ; }
Update all bridge interfaces' ports only 
 make sure each bridge interface exists first.
Update all bridge interfaces ' ports only make sure each bridge interface exists first .
/* Ops, we do not exist anymore. */