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

                 NetClientState *peer, Error **errp)

{

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

    const NetdevTapOptions *tap;



    assert(opts->kind == NET_CLIENT_OPTIONS_KIND_TAP);

    tap = opts->tap;



    if (!tap->has_ifname) {

        error_report("tap: no interface name");

        return -1;

    }



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

        return -1;

    }



    return 0;

}

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

                 NetClientState *peer, Error **errp)

{

    

    const NetdevTapOptions *tap;



    assert(opts->kind == NET_CLIENT_OPTIONS_KIND_TAP);

    tap = opts->tap;



    if (!tap->has_ifname) {

        error_report("tap: no interface name");

        return -1;

    }



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

        return -1;

    }



    return 0;

}

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

                 NetClientState *VAR_2, Error **VAR_3)

{

    

    const NetdevTapOptions *VAR_4;



    assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_TAP);

    VAR_4 = VAR_0->VAR_4;



    if (!VAR_4->has_ifname) {

        error_report("VAR_4: no interface VAR_1");

        return -1;

    }



    if (tap_win32_init(VAR_2, "VAR_4", VAR_1, VAR_4->ifname) == -1) {

        return -1;

    }



    return 0;

}

int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,
NetClientState *VAR_2, Error **VAR_3)
{ const NetdevTapOptions *VAR_4; assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_TAP); VAR_4 = VAR_0->VAR_4; if (!VAR_4->has_ifname) { error_report("VAR_4: no interface VAR_1"); return -1; } if (tap_win32_init(VAR_2, "VAR_4", VAR_1, VAR_4->ifname) == -1) { return -1; } return 0; }