tap(4): will it be more reasonable if it preserved UP/DOWN state, when closed?

Miroslav Lachman 000.fbsd at quip.cz
Wed Apr 1 10:13:51 UTC 2015


Yuri wrote on 04/01/2015 01:39:
> Currently tap(4) device gets to 'down' state when the last process
> closes it, regardless of the original 'up/down' state.
> Will it be reasonable to modify this behavior and keep this bit
> 'was_up_before_open', and leave it 'up' if it was 'up' when it was first
> opened?
>
> Practically speaking, I set it up in rc.conf to be 'up' with the
> particular IP, but it goes to 'down' state  when VirtualBox closes it.
>
> If tap(4) can be 'up' without users, there shouldn't be any problem in
> leaving it 'up' after use as well?

Doesn't sysctl net.link.tap.up_on_open=1 fix your problem?

Miroslav Lachman



More information about the freebsd-net mailing list