Merge pull request #305 from skunkwerks/fix/handle-tuntap

handle unified tuntap(4) after r347241
This commit is contained in:
Matt Churchyard
2019-06-13 09:51:59 +01:00
committed by GitHub

View File

@@ -29,7 +29,13 @@
util::setup(){
util::load_module "nmdm"
util::load_module "if_bridge"
util::load_module "if_tap"
# tap(4) & tun(4) were unified in r347241, this is closest ABI bump
if [ `uname -U` -ge 1300029 ]; then
if_tap="if_tuntap"
else
if_tap="if_tap"
fi
util::load_module "${if_tap}"
sysctl net.link.tap.up_on_open=1 >/dev/null 2>&1