Clear Ethernet header when reading packets from a tun device.
[tinc] / src / linux / device.c
index 61785ad..37a057d 100644 (file)
@@ -131,6 +131,7 @@ static bool read_packet(vpn_packet_t *packet) {
                                return false;
                        }
 
+                       memset(packet->data, 0, 12);
                        packet->len = inlen + 10;
                        break;
                case DEVICE_TYPE_TAP: