Page MenuHomeFreeBSD

D60225.id188366.diff
No OneTemporary

D60225.id188366.diff

diff --git a/usr.sbin/bhyve/pci_e82545.c b/usr.sbin/bhyve/pci_e82545.c
--- a/usr.sbin/bhyve/pci_e82545.c
+++ b/usr.sbin/bhyve/pci_e82545.c
@@ -881,6 +881,16 @@
goto done;
}
+ /*
+ * Drop a frame longer than the guest allows, as the hardware
+ * does, even if the buffers have room for it.
+ */
+ if (len > maxpktsz - ETHER_CRC_LEN) {
+ DPRINTF("oversize packet (%zd bytes) dropped", len);
+ n = 0;
+ continue;
+ }
+
/*
* Adjust the packet length based on whether the CRC needs
* to be stripped or if the packet is less than the minimum

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 12, 11:22 AM (11 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40116537
Default Alt Text
D60225.id188366.diff (572 B)

Event Timeline