kernel - Do not auto-destroy tap interfaces which are manually created
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 13 Feb 2013 00:11:08 +0000 (16:11 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 13 Feb 2013 00:11:08 +0000 (16:11 -0800)
commit74dd5e663f5503b86f45a58a9c0a6cb36c5503ba
tree3d48aee733a0046ccc762dc9e9a0c1b00f641e12
parenta1e54bb0a28247d2379f82c7370dd8827030c586
kernel - Do not auto-destroy tap interfaces which are manually created

* When a tap interface is created via 'ifconfig tapN create' it
  will no longer be automatically destroyed on the last close.

* Previously could occur for tap units 4 or larger.

* Fixes unexpected ripouts of manually created interfaces, which
  can be particularly bad when the interface is used in a PF rule.
sys/net/tap/if_tap.c