Blame SOURCES/dhcp-vlanfilter.patch

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