X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=qemu%2Fnet%2Fhub.c;fp=qemu%2Fnet%2Fhub.c;h=6d90c6ee67dfe64d65746554bd5b4a1a8e069207;hb=437fd90c0250dee670290f9b714253671a990160;hp=3047f12766886d7a50a8acab26800e05c82803bc;hpb=5bbd6fe9b8bab2a93e548c5a53b032d1939eec05;p=kvmfornfv.git diff --git a/qemu/net/hub.c b/qemu/net/hub.c index 3047f1276..6d90c6ee6 100644 --- a/qemu/net/hub.c +++ b/qemu/net/hub.c @@ -12,6 +12,7 @@ * */ +#include "qemu/osdep.h" #include "monitor/monitor.h" #include "net/net.h" #include "clients.h" @@ -285,9 +286,9 @@ int net_init_hubport(const NetClientOptions *opts, const char *name, { const NetdevHubPortOptions *hubport; - assert(opts->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT); + assert(opts->type == NET_CLIENT_OPTIONS_KIND_HUBPORT); assert(!peer); - hubport = opts->hubport; + hubport = opts->u.hubport.data; net_hub_add_port(hubport->hubid, name); return 0;