net: fix vnet_hdr bustage with slirpqemu-0.10.91-0.5.rc1.fc12qemu-0.10.91-0.6.rc1.fc12qemu-0.10.91-0.7.rc1.fc12
commit97064ad88123744056d141e96247348dd2d9621c
authorMark McLoughlin <markmc@redhat.com>
Fri, 7 Aug 2009 08:39:51 +0000 (7 09:39 +0100)
committerMark McLoughlin <markmc@redhat.com>
Fri, 7 Aug 2009 08:47:52 +0000 (7 09:47 +0100)
tree80db07cb7fb7b65d5841674e562aaf1e1724a39d
parentee595f99ba7ff80b46a736a06f7e53998d926563
net: fix vnet_hdr bustage with slirp

slirp has started using VLANClientState::opaque and this has caused the
kvm specific tap_has_vnet_hdr() hack to break because we blindly use
this opaque pointer even if it is not a tap client.

Add yet another hack to check that we're actually getting called with a
tap client.

[Needed on stable-0.11 too]

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Fedora-patch: qemu-fix-vnet-hdr-slirp-bustage.patch
net.c