summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/virtio-net.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/virtio-net.c b/hw/virtio-net.c
index ac8e03068..87626c65a 100644
--- a/hw/virtio-net.c
+++ b/hw/virtio-net.c
@@ -616,6 +616,8 @@ static void virtio_net_save(QEMUFile *f, void *opaque)
#ifdef TAP_VNET_HDR
qemu_put_be32(f, tap_has_vnet_hdr(n->vc->vlan->first_client));
+#else
+ qemu_put_be32(f, 0);
#endif
}
@@ -660,6 +662,9 @@ static int virtio_net_load(QEMUFile *f, void *opaque, int version_id)
if (version_id == 7 && qemu_get_be32(f)) {
tap_using_vnet_hdr(n->vc->vlan->first_client, 1);
}
+#else
+ /* FIXME: error out if nonzero? */
+ qemu_get_be32(f);
#endif
if (n->tx_timer_active) {