Fix Solaris DeviceType = tap in router Mode.
[oweals/tinc.git] / src / solaris / device.c
index 3ff2f547c6c23c5316c8dd95ceda5a7812732924..deb96c4597bdb9c10daaebb8a89bdcc7face75a9 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) {