Displaying 1 result from an estimated 1 matches for "maximum_ethernet_vlan_size".
2013 Jan 17
0
[PATCH] qemu-xen-traditional: fix up security patches
...others in this
function.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
diff --git a/hw/e1000.c b/hw/e1000.c
index 67d2651..c75bc5e 100644
--- a/hw/e1000.c
+++ b/hw/e1000.c
@@ -638,7 +638,8 @@ e1000_receive(void *opaque, const uint8_t *buf, int size)
(size > MAXIMUM_ETHERNET_VLAN_SIZE
&& !(s->mac_reg[RCTL] & E1000_RCTL_LPE)))
&& !(s->mac_reg[RCTL] & E1000_RCTL_SBP)) {
- return size;
+ DBGOUT(RX, "packet too large for applicable LPE/VLAN size\n");
+ return;
}
if (!receive_filter(s, buf, siz...