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

                     NetClientState *peer)

{

    const NetdevHubPortOptions *hubport;



    assert(opts->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT);

    hubport = opts->hubport;



    if (peer) {

        return -EINVAL;

    }



    net_hub_add_port(hubport->hubid, name);

    return 0;

}

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

                     NetClientState *peer)

{

    const NetdevHubPortOptions *hubport;



    assert(opts->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT);

    hubport = opts->hubport;



    if (peer) {

        return -EINVAL;

    }



    net_hub_add_port(hubport->hubid, name);

    return 0;

}

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

                     NetClientState *VAR_2)

{

    const NetdevHubPortOptions *VAR_3;



    assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT);

    VAR_3 = VAR_0->VAR_3;



    if (VAR_2) {

        return -EINVAL;

    }



    net_hub_add_port(VAR_3->hubid, VAR_1);

    return 0;

}

int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,
NetClientState *VAR_2)
{ const NetdevHubPortOptions *VAR_3; assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT); VAR_3 = VAR_0->VAR_3; if (VAR_2) { return -EINVAL; } net_hub_add_port(VAR_3->hubid, VAR_1); return 0; }