int net_init_vde(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan)

{

    const char *sock;

    const char *group;

    int port, mode;



    sock  = qemu_opt_get(opts, "sock");

    group = qemu_opt_get(opts, "group");



    port = qemu_opt_get_number(opts, "port", 0);

    mode = qemu_opt_get_number(opts, "mode", 0700);



    if (net_vde_init(vlan, "vde", name, sock, port, group, mode) == -1) {

        return -1;

    }



    if (vlan) {

        vlan->nb_host_devs++;

    }



    return 0;

}

int net_init_vde(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan)

{

    const char *sock;

    const char *group;

    int port, mode;



    sock  = qemu_opt_get(opts, "sock");

    group = qemu_opt_get(opts, "group");



    port = qemu_opt_get_number(opts, "port", 0);

    mode = qemu_opt_get_number(opts, "mode", 0700);



    if (net_vde_init(vlan, "vde", name, sock, port, group, mode) == -1) {

        return -1;

    }



    if (vlan) {

        vlan->nb_host_devs++;

    }



    return 0;

}

int FUNC_0(QemuOpts *VAR_0, Monitor *VAR_1, const char *VAR_2, VLANState *VAR_3)

{

    const char *VAR_4;

    const char *VAR_5;

    int VAR_6, VAR_7;



    VAR_4  = qemu_opt_get(VAR_0, "VAR_4");

    VAR_5 = qemu_opt_get(VAR_0, "VAR_5");



    VAR_6 = qemu_opt_get_number(VAR_0, "VAR_6", 0);

    VAR_7 = qemu_opt_get_number(VAR_0, "VAR_7", 0700);



    if (net_vde_init(VAR_3, "vde", VAR_2, VAR_4, VAR_6, VAR_5, VAR_7) == -1) {

        return -1;

    }



    if (VAR_3) {

        VAR_3->nb_host_devs++;

    }



    return 0;

}

int FUNC_0(QemuOpts *VAR_0, Monitor *VAR_1, const char *VAR_2, VLANState *VAR_3)
{ const char *VAR_4; const char *VAR_5; int VAR_6, VAR_7; VAR_4  = qemu_opt_get(VAR_0, "VAR_4"); VAR_5 = qemu_opt_get(VAR_0, "VAR_5"); VAR_6 = qemu_opt_get_number(VAR_0, "VAR_6", 0); VAR_7 = qemu_opt_get_number(VAR_0, "VAR_7", 0700); if (net_vde_init(VAR_3, "vde", VAR_2, VAR_4, VAR_6, VAR_5, VAR_7) == -1) { return -1; } if (VAR_3) { VAR_3->nb_host_devs++; } return 0; }