45d60a
diff -up dhcp-4.2.5/common/lpf.c.vlan dhcp-4.2.5/common/lpf.c
45d60a
--- dhcp-4.2.5/common/lpf.c.vlan	2015-10-13 18:48:35.180447618 +0200
45d60a
+++ dhcp-4.2.5/common/lpf.c	2015-10-13 18:51:29.797079032 +0200
45d60a
@@ -521,6 +521,10 @@ ssize_t receive_packet (interface, buf,
45d60a
 		if (cmsg->cmsg_level == SOL_PACKET &&
45d60a
 		    cmsg->cmsg_type == PACKET_AUXDATA) {
45d60a
 			struct tpacket_auxdata *aux = (void *)CMSG_DATA(cmsg);
45d60a
+			/* Discard packets with stripped vlan id */
45d60a
+			/* VLAN ID is only bottom 12-bits of TCI */
45d60a
+			if (aux->tp_vlan_tci & 0x0fff)
45d60a
+				return 0;
45d60a
 			nocsum = aux->tp_status & TP_STATUS_CSUMNOTREADY;
45d60a
 		}
45d60a
 	}