FreeBSD/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c
static void
bridge_new_root(struct bridge_if *bif)
{
	struct snmp_value bif_idx;

	if (bridge_get_default() == bif)
		snmp_send_trap(&oid_newRoot, (struct snmp_value *) NULL);

	if (bridge_basename_var(bif, &bif_idx) == NULL)
		return;

	snmp_send_trap(&oid_begemotTopologyChange,
	    &bif_idx, (struct snmp_value *) NULL);
}
/*
 * Compare the values of the old and the new root port and
 * send a new root notification, if they are not matching.
 */
Compare the values of the old and the new root port and
send a new root notification, if they are not matching.
Compare the values of the old and the new root port and send a new root notification if they are not matching .
static void
bridge_new_root(struct bridge_if *bif)
{
	struct snmp_value bif_idx;
	if (bridge_get_default() == bif)
		snmp_send_trap(&oid_newRoot, (struct snmp_value *) NULL);
	if (bridge_basename_var(bif, &bif_idx) == NULL)
		return;
	snmp_send_trap(&oid_begemotTopologyChange,
	    &bif_idx, (struct snmp_value *) NULL);
}
static void bridge_new_root ( struct bridge_if * bif ) { struct snmp_value bif_idx ; if ( bridge_get_default ( ) == bif ) snmp_send_trap ( & oid_newRoot , ( struct snmp_value * ) NULL ) ; if ( bridge_basename_var ( bif , & bif_idx ) == NULL ) return ; snmp_send_trap ( & oid_begemotTopologyChange , & bif_idx , ( struct snmp_value * ) NULL ) ; }
Compare the values of the old and the new root port and
 send a new root notification, if they are not matching.
Compare the values of the old and the new root port and send a new root notification if they are not matching .