From: Guus Sliepen Date: Sun, 21 Dec 2008 16:19:31 +0000 (+0000) Subject: Treat virtual network device as tap if Mode = switch or hub. X-Git-Tag: import-tinc-1.1~596^2~29 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=a269ec4193900feee01ac83f0e18a6e2b98e751f;p=meshlink Treat virtual network device as tap if Mode = switch or hub. On OpenBSD, the link0 flag should still be set in tinc-up or by other means. --- diff --git a/src/bsd/device.c b/src/bsd/device.c index 5bd253cf..3e61431d 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -78,7 +78,7 @@ bool setup_device(void) { return false; } } else { - if(strstr(device, "tap")) + if(strstr(device, "tap") || routing_mode != RMODE_ROUTER) device_type = DEVICE_TYPE_TAP; }