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

Function eaction_check_name

tools/ipfw/ipfw2.c:3023–3034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3021}
3022
3023static int
3024eaction_check_name(const char *name)
3025{
3026
3027 if (ipfw_check_object_name(name) != 0)
3028 return (EINVAL);
3029 /* Restrict some 'special' names */
3030 if (match_token(rule_actions, name) != -1 &&
3031 match_token(rule_action_params, name) != -1)
3032 return (EINVAL);
3033 return (0);
3034}
3035
3036static uint16_t
3037pack_object(struct tidx *tstate, const char *name, int otype)

Callers 1

compile_ruleFunction · 0.85

Calls 2

ipfw_check_object_nameFunction · 0.85
match_tokenFunction · 0.85

Tested by

no test coverage detected