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

                 NetClientState *peer, Error **errp)

{

    /* FIXME error_setg(errp, ...) on failure */

    const NetdevVdeOptions *vde;



    assert(opts->type == NET_CLIENT_OPTIONS_KIND_VDE);

    vde = opts->u.vde;



    /* missing optional values have been initialized to "all bits zero" */

    if (net_vde_init(peer, "vde", name, vde->sock, vde->port, vde->group,

                     vde->has_mode ? vde->mode : 0700) == -1) {

        return -1;

    }



    return 0;

}

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

                 NetClientState *peer, Error **errp)

{

    

    const NetdevVdeOptions *vde;



    assert(opts->type == NET_CLIENT_OPTIONS_KIND_VDE);

    vde = opts->u.vde;



    

    if (net_vde_init(peer, "vde", name, vde->sock, vde->port, vde->group,

                     vde->has_mode ? vde->mode : 0700) == -1) {

        return -1;

    }



    return 0;

}

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

                 NetClientState *VAR_2, Error **VAR_3)

{

    

    const NetdevVdeOptions *VAR_4;



    assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_VDE);

    VAR_4 = VAR_0->u.VAR_4;



    

    if (net_vde_init(VAR_2, "VAR_4", VAR_1, VAR_4->sock, VAR_4->port, VAR_4->group,

                     VAR_4->has_mode ? VAR_4->mode : 0700) == -1) {

        return -1;

    }



    return 0;

}

int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,
NetClientState *VAR_2, Error **VAR_3)
{ const NetdevVdeOptions *VAR_4; assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_VDE); VAR_4 = VAR_0->u.VAR_4; if (net_vde_init(VAR_2, "VAR_4", VAR_1, VAR_4->sock, VAR_4->port, VAR_4->group,
VAR_4->has_mode ? VAR_4->mode : 0700) == -1) { return -1; } return 0; }