Treat virtual network device as tap if Mode = switch or hub.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 21 Dec 2008 16:19:31 +0000 (16:19 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 21 Dec 2008 16:19:31 +0000 (16:19 +0000)
On OpenBSD, the link0 flag should still be set in tinc-up or by other means.

src/bsd/device.c

index 5bd253c..3e61431 100644 (file)
@@ -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;
        }