only tweak ifp if_flags while holding NET_LOCK.
authordlg <dlg@openbsd.org>
Tue, 15 Feb 2022 04:19:52 +0000 (04:19 +0000)
committerdlg <dlg@openbsd.org>
Tue, 15 Feb 2022 04:19:52 +0000 (04:19 +0000)
commit4ad9c8ac9e90db45d2d7e99a6166020402d5d123
treeaa477718b7e43a270213ba86930d312338f71228
parent0e8c468fbbaf5f75e94add8e20a42311e5ac937c
only tweak ifp if_flags while holding NET_LOCK.

tun_dev_open and tun_dev_close were being optmistic.
sys/net/if_tun.c