MCPcopy Create free account
hub / github.com/F-Stack/f-stack / state_check_name

Function state_check_name

tools/ipfw/ipfw2.c:3012–3021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3010static const char *default_state_name = "default";
3011
3012static int
3013state_check_name(const char *name)
3014{
3015
3016 if (ipfw_check_object_name(name) != 0)
3017 return (EINVAL);
3018 if (strcmp(name, "any") == 0)
3019 return (EINVAL);
3020 return (0);
3021}
3022
3023static int
3024eaction_check_name(const char *name)

Callers 1

compile_ruleFunction · 0.85

Calls 2

ipfw_check_object_nameFunction · 0.85
strcmpFunction · 0.85

Tested by

no test coverage detected