Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2015 16:39:13 -0700
From:      Yuri <yuri@rawbw.com>
To:        net@freebsd.org
Subject:   tap(4): will it be more reasonable if it preserved UP/DOWN state, when closed?
Message-ID:  <551B3021.4050206@rawbw.com>

next in thread | raw e-mail | index | archive | help
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?

Yuri



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?551B3021.4050206>