В Сбт, 07.08.2004, в 01:07, Maksim Yevmenkin пишет: > > 2) Is there a way to set this interface flag without assigning an IPv4 > > address (or any address for that matter) first? > > > > Mainly for number two, I would like to be able to run interfaces > > bridged together without having to also give all of them addresses. > > please try the attached (untested!) patch. it should set iff_running > flag on the interface as soon as the control device is opened. > > max > > bcopy(tp->arpcom.ac_enaddr, tp->ether_addr, sizeof(tp->ether_addr)); > tp->tap_pid = td->td_proc->p_pid; > tp->tap_flags |= TAP_OPEN; + tp->tap_if.if_flags |= IFF_RUNNING; + tp->tap_if.if_flags &= ~IFF_OACTIVE; > > mtx_unlock(&tp->tap_mtx); not better move this under tp->tap_mtx mutex without using splX functions?
-- Alex Lyashkov <[EMAIL PROTECTED]> PSoft _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

