tap(4): Add ifclone support
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 18 May 2009 13:17:08 +0000 (21:17 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 25 May 2009 11:08:14 +0000 (19:08 +0800)
commit3cde3b9da2784bbadc44d2b06dabf392088c4c52
tree8a605fb115fa1c9db35d31e9ade6e7694b268ef7
parentccab178b0e0c5b1cedeec0e6e0a8c7517df51809
tap(4): Add ifclone support

Submitted-by: Naoya Sugioka <naoya.sugioka@gmail.com> w/ following changes:
- Moniro style changes
- Comment out destroy upon closing, mainly to keep old tap(4) behaviour
- Poll interface should return 0 instead of nevent
- Use SLITS_FOREACH_MUTABLE() when destroying tap interfaces
- Pass tap_softc to tapdestroy()
- tap_entries -> tap_link
- Cloners handle their own attach/detach events
- Correct tapuponopen support
sys/net/tap/if_tap.c
sys/net/tap/if_tapvar.h