int net_slirp_redir(const char *redir_str)

{

    struct slirp_config_str *config;



    if (QTAILQ_EMPTY(&slirp_stacks)) {

        config = g_malloc(sizeof(*config));

        pstrcpy(config->str, sizeof(config->str), redir_str);

        config->flags = SLIRP_CFG_HOSTFWD | SLIRP_CFG_LEGACY;

        config->next = slirp_configs;

        slirp_configs = config;

        return 0;

    }



    return slirp_hostfwd(QTAILQ_FIRST(&slirp_stacks), redir_str, 1);

}

int net_slirp_redir(const char *redir_str)

{

    struct slirp_config_str *config;



    if (QTAILQ_EMPTY(&slirp_stacks)) {

        config = g_malloc(sizeof(*config));

        pstrcpy(config->str, sizeof(config->str), redir_str);

        config->flags = SLIRP_CFG_HOSTFWD | SLIRP_CFG_LEGACY;

        config->next = slirp_configs;

        slirp_configs = config;

        return 0;

    }



    return slirp_hostfwd(QTAILQ_FIRST(&slirp_stacks), redir_str, 1);

}

    return slirp_hostfwd(QTAILQ_FIRST(&slirp_stacks), redir_str, 1);
int FUNC_0(const char *VAR_0)

{

    struct slirp_config_str *VAR_1;



    if (QTAILQ_EMPTY(&slirp_stacks)) {

        VAR_1 = g_malloc(sizeof(*VAR_1));

        pstrcpy(VAR_1->str, sizeof(VAR_1->str), VAR_0);

        VAR_1->flags = SLIRP_CFG_HOSTFWD | SLIRP_CFG_LEGACY;

        VAR_1->next = slirp_configs;

        slirp_configs = VAR_1;

        return 0;

    }



    return slirp_hostfwd(QTAILQ_FIRST(&slirp_stacks), VAR_0, 1);

}

int FUNC_0(const char *VAR_0)
{ struct slirp_config_str *VAR_1; if (QTAILQ_EMPTY(&slirp_stacks)) { VAR_1 = g_malloc(sizeof(*VAR_1)); pstrcpy(VAR_1->str, sizeof(VAR_1->str), VAR_0); VAR_1->flags = SLIRP_CFG_HOSTFWD | SLIRP_CFG_LEGACY; VAR_1->next = slirp_configs; slirp_configs = VAR_1; return 0; } return slirp_hostfwd(QTAILQ_FIRST(&slirp_stacks), VAR_0, 1); }