net: fix vnet_hdr bustage with slirp
commit8494e711d600ccac0d6ffaae54d41b0ce5fd28ba
authorMark McLoughlin <markmc@redhat.com>
Fri, 7 Aug 2009 08:47:31 +0000 (7 09:47 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 9 Aug 2009 09:46:58 +0000 (9 12:46 +0300)
treef7b15513a27df4c92fcbec590e4576adf25b4136
parent3764fbdc6f1014b001e770e410bd79322af68e47
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>
Signed-off-by: Avi Kivity <avi@redhat.com>
net.c