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

Function table_check_name

tools/ipfw/tables.c:2072–2082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2070}
2071
2072int
2073table_check_name(const char *tablename)
2074{
2075
2076 if (ipfw_check_object_name(tablename) != 0)
2077 return (EINVAL);
2078 /* Restrict some 'special' names */
2079 if (strcmp(tablename, "all") == 0)
2080 return (EINVAL);
2081 return (0);
2082}
2083

Callers 3

ipfw_table_handlerFunction · 0.85
table_swapFunction · 0.85
pack_tableFunction · 0.85

Calls 2

ipfw_check_object_nameFunction · 0.85
strcmpFunction · 0.85

Tested by

no test coverage detected