int net_init_tap(QemuOpts *opts, const char *name, VLANState *vlan)

{

    const char *ifname;



    ifname = qemu_opt_get(opts, "ifname");



    if (!ifname) {

        error_report("tap: no interface name");

        return -1;

    }



    if (tap_win32_init(vlan, "tap", name, ifname) == -1) {

        return -1;

    }



    return 0;

}

int net_init_tap(QemuOpts *opts, const char *name, VLANState *vlan)

{

    const char *ifname;



    ifname = qemu_opt_get(opts, "ifname");



    if (!ifname) {

        error_report("tap: no interface name");

        return -1;

    }



    if (tap_win32_init(vlan, "tap", name, ifname) == -1) {

        return -1;

    }



    return 0;

}

        return -1; int net_init_tap(QemuOpts *opts, const char *name, VLANState *vlan) int net_init_tap(QemuOpts *opts, const char *name, VLANState *vlan)
int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)

{

    const char *VAR_3;



    VAR_3 = qemu_opt_get(VAR_0, "VAR_3");



    if (!VAR_3) {

        error_report("tap: no interface VAR_1");

        return -1;

    }



    if (tap_win32_init(VAR_2, "tap", VAR_1, VAR_3) == -1) {

        return -1;

    }



    return 0;

}

int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)
{ const char *VAR_3; VAR_3 = qemu_opt_get(VAR_0, "VAR_3"); if (!VAR_3) { error_report("tap: no interface VAR_1"); return -1; } if (tap_win32_init(VAR_2, "tap", VAR_1, VAR_3) == -1) { return -1; } return 0; }