diff --git a/usr.sbin/bhyve/pci_virtio_net.c b/usr.sbin/bhyve/pci_virtio_net.c index b1444ce5e5f..0e6f808b7e3 100644 --- a/usr.sbin/bhyve/pci_virtio_net.c +++ b/usr.sbin/bhyve/pci_virtio_net.c @@ -268,7 +268,14 @@ pci_vtnet_rx(struct pci_vtnet_softc *sc) struct virtio_net_rxhdr *hdr = iov[0].iov_base; uint32_t iolen; int i = 0; + int j; + if (iov[0].iov_len < sizeof(*hdr)) { + for (j = 0; j < n_chains; j++) { + printf("frag #%d: len %lu\n\r", + j, (long unsigned int)iov[j].iov_len); + } + } assert(iov[0].iov_len >= sizeof(*hdr)); do {