FreeBSD/contrib/bsnmp/snmp_mibII/mibII.c
/*
 * Destroy a freshly created interface address. Don't bother to wait for
 * the routing socket.
 */
Destroy a freshly created interface address. Don't bother to wait for
the routing socket.
Destroy a freshly created interface address . Don ' t bother to wait for the routing socket .
void
mib_uncreate_ifa(struct mibifa *ifa)
{
	struct mibif *ifp;
	if ((ifp = mib_find_if(ifa->ifindex)) == NULL) {
		mib_iflist_bad = 1;
		return;
	}
	if (siocdifaddr(ifp->name, ifa->inaddr)) {
		mib_iflist_bad = 1;
		return;
	}
	destroy_ifa(ifa);
}
void mib_uncreate_ifa ( struct mibifa * ifa ) { struct mibif * ifp ; if ( ( ifp = mib_find_if ( ifa -> ifindex ) ) == NULL ) { mib_iflist_bad = 1 ; return ; } if ( siocdifaddr ( ifp -> name , ifa -> inaddr ) ) { mib_iflist_bad = 1 ; return ; } destroy_ifa ( ifa ) ; }
Destroy a freshly created interface address.
Destroy a freshly created interface address .
/* ups. */ /* ups. */