diff options
Diffstat (limited to 'net/tap.c')
-rw-r--r-- | net/tap.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -488,3 +488,10 @@ int net_init_tap(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan return 0; } + +VHostNetState *tap_get_vhost_net(VLANClientState *nc) +{ + TAPState *s = DO_UPCAST(TAPState, nc, nc); + assert(nc->info->type == NET_CLIENT_TYPE_TAP); + return s->vhost_net; +} |