net: fix vnet_hdr bustage with slirp
commit716c1cdb56342e4bb66bc3163e0bb149961bc9d5
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:47:16 +0000 (9 12:47 +0300)
treecc7753168f04eedbe2b032f8245df228f4ae500a
parent5150a1cdfd92e377fb73aac9e6eecb3d5bea4c85
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>
(cherry picked from commit 8494e711d600ccac0d6ffaae54d41b0ce5fd28ba)
net.c