NetBSD/src G6mQSjw — sys/net if_tun.c
Resequence the stuff in tundetach() to ensure that no new device units can be created by either 'ifconfig create' or 'open("/dev/tun0")' paths. Note: previous efforts at fixing 'modunload if_tun' are abandoned, since there is no bug. Just need to ensure that the cloned interface is both close(1)d _and_ 'ifconfig tunx destroy' before trying to unload.
Version | Delta | File | |
---|---|---|---|
1.154 | +18 | -11 | sys/net/if_tun.c |
+18 | -11 | 1 files |