From a269ec4193900feee01ac83f0e18a6e2b98e751f Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 21 Dec 2008 16:19:31 +0000 Subject: [PATCH] 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. --- src/bsd/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5