Fix Solaris DeviceType = tap in router Mode.
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 19 Apr 2017 08:26:18 +0000 (10:26 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 19 Apr 2017 08:26:18 +0000 (10:26 +0200)
src/solaris/device.c

index 3ff2f54..deb96c4 100644 (file)
@@ -87,6 +87,9 @@ static bool setup_device(void) {
        else
                device_info = "Solaris tap device";
 
+       if(device_type == DEVICE_TYPE_TAP && routing_mode == RMODE_ROUTER)
+               overwrite_mac = true;
+
        /* The following is black magic copied from OpenVPN. */
 
        if((ip_fd = open(IP_DEVICE, O_RDWR, 0)) < 0) {