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

Function match_value

tools/ipfw/ipfw2.c:734–741  ·  view source on GitHub ↗

* match_value takes a table and a value, returns the string associated * with the value (NULL in case of failure). */

Source from the content-addressed store, hash-verified

732 * with the value (NULL in case of failure).
733 */
734char const *
735match_value(struct _s_x *p, int value)
736{
737 for (; p->s != NULL; p++)
738 if (p->x == value)
739 return p->s;
740 return NULL;
741}
742
743size_t
744concat_tokens(char *buf, size_t bufsize, struct _s_x *table,

Callers 11

table_print_typeFunction · 0.85
table_show_infoFunction · 0.85
ipfw_list_taFunction · 0.85
print_unreach6_codeFunction · 0.85
print_portFunction · 0.85
print_newportsFunction · 0.85
print_reject_codeFunction · 0.85
print_ipFunction · 0.85
print_dscpFunction · 0.85
print_action_instructionFunction · 0.85
ipfw_list_objectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected