int net_init_hubport(const NetClientOptions *opts, const char *name,

                     NetClientState *peer, Error **errp)

{

    const NetdevHubPortOptions *hubport;



    assert(opts->type == NET_CLIENT_OPTIONS_KIND_HUBPORT);

    assert(!peer);

    hubport = opts->u.hubport;



    net_hub_add_port(hubport->hubid, name);

    return 0;

}

int net_init_hubport(const NetClientOptions *opts, const char *name,

                     NetClientState *peer, Error **errp)

{

    const NetdevHubPortOptions *hubport;



    assert(opts->type == NET_CLIENT_OPTIONS_KIND_HUBPORT);

    assert(!peer);

    hubport = opts->u.hubport;



    net_hub_add_port(hubport->hubid, name);

    return 0;

}

int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,

                     NetClientState *VAR_2, Error **VAR_3)

{

    const NetdevHubPortOptions *VAR_4;



    assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_HUBPORT);

    assert(!VAR_2);

    VAR_4 = VAR_0->u.VAR_4;



    net_hub_add_port(VAR_4->hubid, VAR_1);

    return 0;

}

int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,
NetClientState *VAR_2, Error **VAR_3)
{ const NetdevHubPortOptions *VAR_4; assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_HUBPORT); assert(!VAR_2); VAR_4 = VAR_0->u.VAR_4; net_hub_add_port(VAR_4->hubid, VAR_1); return 0; }