]> git.proxmox.com Git - qemu.git/commit
virtio-net: correct packet length math
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 22 Jun 2010 13:22:49 +0000 (16:22 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 11 Jul 2010 20:31:52 +0000 (23:31 +0300)
commit279a42535dc977c495bdbda8c8831016e05a0a5d
tree56e5d698398028e804cc20c6263c679f197ba225
parenta213ff63ead450c3bf3b47497681a1498570fcdd
virtio-net: correct packet length math

We were requesting too much when checking buffer
length: size already includes host header length.

Further, we should not exit if we get a packet that
is too long, since this might not be under control
of the guest. Just drop the packet.

Red Hat bz 591494

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-net.c