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

Function get_token

tools/ipfw/ipfw2.c:718–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718int
719get_token(struct _s_x *table, const char *string, const char *errbase)
720{
721 int tcmd;
722
723 if ((tcmd = match_token_relaxed(table, string)) < 0)
724 errx(EX_USAGE, "%s %s %s",
725 (tcmd == 0) ? "invalid" : "ambiguous", errbase, string);
726
727 return (tcmd);
728}
729
730/**
731 * match_value takes a table and a value, returns the string associated

Callers 15

ipfw_nat64clat_handlerFunction · 0.70
nat64clat_createFunction · 0.70
nat64clat_configFunction · 0.70
ipfw_table_handlerFunction · 0.70
table_createFunction · 0.70
table_modifyFunction · 0.70
ipfw_nat64lsn_handlerFunction · 0.70
nat64lsn_createFunction · 0.70
nat64lsn_configFunction · 0.70
ipfw_nptv6_handlerFunction · 0.70

Calls 1

match_token_relaxedFunction · 0.85

Tested by

no test coverage detected