static FFServerIPAddressACL* parse_dynamic_acl(FFServerStream *stream, HTTPContext *c)

{

    FILE* f;

    char line[1024];

    char  cmd[1024];

    FFServerIPAddressACL *acl = NULL;

    int line_num = 0;

    const char *p;



    f = fopen(stream->dynamic_acl, "r");

    if (!f) {

        perror(stream->dynamic_acl);

        return NULL;

    }



    acl = av_mallocz(sizeof(FFServerIPAddressACL));



    /* Build ACL */

    for(;;) {

        if (fgets(line, sizeof(line), f) == NULL)

            break;

        line_num++;

        p = line;

        while (av_isspace(*p))

            p++;

        if (*p == '\0' || *p == '#')

            continue;

        ffserver_get_arg(cmd, sizeof(cmd), &p);



        if (!av_strcasecmp(cmd, "ACL"))

            ffserver_parse_acl_row(NULL, NULL, acl, p, stream->dynamic_acl, line_num);

    }

    fclose(f);

    return acl;

}

static FFServerIPAddressACL* parse_dynamic_acl(FFServerStream *stream, HTTPContext *c)

{

    FILE* f;

    char line[1024];

    char  cmd[1024];

    FFServerIPAddressACL *acl = NULL;

    int line_num = 0;

    const char *p;



    f = fopen(stream->dynamic_acl, "r");

    if (!f) {

        perror(stream->dynamic_acl);

        return NULL;

    }



    acl = av_mallocz(sizeof(FFServerIPAddressACL));



    

    for(;;) {

        if (fgets(line, sizeof(line), f) == NULL)

            break;

        line_num++;

        p = line;

        while (av_isspace(*p))

            p++;

        if (*p == '\0' || *p == '#')

            continue;

        ffserver_get_arg(cmd, sizeof(cmd), &p);



        if (!av_strcasecmp(cmd, "ACL"))

            ffserver_parse_acl_row(NULL, NULL, acl, p, stream->dynamic_acl, line_num);

    }

    fclose(f);

    return acl;

}

static FFServerIPAddressACL* FUNC_0(FFServerStream *stream, HTTPContext *c)

{

    FILE* f;

    char VAR_0[1024];

    char  VAR_1[1024];

    FFServerIPAddressACL *acl = NULL;

    int VAR_2 = 0;

    const char *VAR_3;



    f = fopen(stream->dynamic_acl, "r");

    if (!f) {

        perror(stream->dynamic_acl);

        return NULL;

    }



    acl = av_mallocz(sizeof(FFServerIPAddressACL));



    

    for(;;) {

        if (fgets(VAR_0, sizeof(VAR_0), f) == NULL)

            break;

        VAR_2++;

        VAR_3 = VAR_0;

        while (av_isspace(*VAR_3))

            VAR_3++;

        if (*VAR_3 == '\0' || *VAR_3 == '#')

            continue;

        ffserver_get_arg(VAR_1, sizeof(VAR_1), &VAR_3);



        if (!av_strcasecmp(VAR_1, "ACL"))

            ffserver_parse_acl_row(NULL, NULL, acl, VAR_3, stream->dynamic_acl, VAR_2);

    }

    fclose(f);

    return acl;

}

static FFServerIPAddressACL* FUNC_0(FFServerStream *stream, HTTPContext *c)
{ FILE* f; char VAR_0[1024]; char  VAR_1[1024]; FFServerIPAddressACL *acl = NULL; int VAR_2 = 0; const char *VAR_3; f = fopen(stream->dynamic_acl, "r"); if (!f) { perror(stream->dynamic_acl); return NULL; } acl = av_mallocz(sizeof(FFServerIPAddressACL)); for(;;) { if (fgets(VAR_0, sizeof(VAR_0), f) == NULL)
break; VAR_2++; VAR_3 = VAR_0; while (av_isspace(*VAR_3))
VAR_3++; if (*VAR_3 == '\0' || *VAR_3 == '#')
continue; ffserver_get_arg(VAR_1, sizeof(VAR_1), &VAR_3); if (!av_strcasecmp(VAR_1, "ACL"))
ffserver_parse_acl_row(NULL, NULL, acl, VAR_3, stream->dynamic_acl, VAR_2); } fclose(f); return acl; }