FreeBSD/contrib/bsnmp/snmp_mibII/mibII.c
/*
 * Restore a deleted interface address. Don't wait for the routing socket
 * to update us.
 */
Restore a deleted interface address. Don't wait for the routing socket
to update us.
Restore a deleted interface address . Don ' t wait for the routing socket to update us .
void
mib_undestroy_ifa(struct mibifa *ifa)
{
	struct mibif *ifp;
	if ((ifp = mib_find_if(ifa->ifindex)) == NULL)
		return;
	if (siocaifaddr(ifp->name, ifa->inaddr, ifa->inmask, ifa->inbcast))
		return;
	ifa->flags &= ~MIBIFA_DESTROYED;
}
void mib_undestroy_ifa ( struct mibifa * ifa ) { struct mibif * ifp ; if ( ( ifp = mib_find_if ( ifa -> ifindex ) ) == NULL ) return ; if ( siocaifaddr ( ifp -> name , ifa -> inaddr , ifa -> inmask , ifa -> inbcast ) ) return ; ifa -> flags &= ~ MIBIFA_DESTROYED ; }
Restore a deleted interface address.
Restore a deleted interface address .
/* keep it destroyed */ /* keep it destroyed */