static int net_host_check_device(const char *device)

{

    int i;

    const char *valid_param_list[] = { "tap", "socket", "dump"

#ifdef CONFIG_NET_BRIDGE

                                       , "bridge"

#endif

#ifdef CONFIG_SLIRP

                                       ,"user"

#endif

#ifdef CONFIG_VDE

                                       ,"vde"

#endif

    };

    for (i = 0; i < ARRAY_SIZE(valid_param_list); i++) {

        if (!strncmp(valid_param_list[i], device,

                     strlen(valid_param_list[i])))

            return 1;

    }



    return 0;

}

static int net_host_check_device(const char *device)

{

    int i;

    const char *valid_param_list[] = { "tap", "socket", "dump"

#ifdef CONFIG_NET_BRIDGE

                                       , "bridge"

#endif

#ifdef CONFIG_SLIRP

                                       ,"user"

#endif

#ifdef CONFIG_VDE

                                       ,"vde"

#endif

    };

    for (i = 0; i < ARRAY_SIZE(valid_param_list); i++) {

        if (!strncmp(valid_param_list[i], device,

                     strlen(valid_param_list[i])))

            return 1;

    }



    return 0;

}

static int FUNC_0(const char *VAR_0)

{

    int VAR_1;

    const char *VAR_2[] = { "tap", "socket", "dump"

#ifdef CONFIG_NET_BRIDGE

                                       , "bridge"

#endif

#ifdef CONFIG_SLIRP

                                       ,"user"

#endif

#ifdef CONFIG_VDE

                                       ,"vde"

#endif

    };

    for (VAR_1 = 0; VAR_1 < ARRAY_SIZE(VAR_2); VAR_1++) {

        if (!strncmp(VAR_2[VAR_1], VAR_0,

                     strlen(VAR_2[VAR_1])))

            return 1;

    }



    return 0;

}

static int FUNC_0(const char *VAR_0)
{ int VAR_1; const char *VAR_2[] = { "tap", "socket", "dump" #ifdef CONFIG_NET_BRIDGE
, "bridge"
#endif
#ifdef CONFIG_SLIRP
,"user"
#endif
#ifdef CONFIG_VDE
,"vde"
#endif
}; for (VAR_1 = 0; VAR_1 < ARRAY_SIZE(VAR_2); VAR_1++) { if (!strncmp(VAR_2[VAR_1], VAR_0,
strlen(VAR_2[VAR_1])))
return 1; } return 0; }