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

Function lookup_eaction_name

tools/ipfw/ipfw2.c:5519–5535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5517};
5518
5519static const char*
5520lookup_eaction_name(ipfw_obj_ntlv *ntlv, int cnt, uint16_t type)
5521{
5522 const char *name;
5523 int i;
5524
5525 name = NULL;
5526 for (i = 0; i < cnt; i++) {
5527 if (ntlv[i].head.type != IPFW_TLV_EACTION)
5528 continue;
5529 if (IPFW_TLV_EACTION_NAME(ntlv[i].idx) != type)
5530 continue;
5531 name = ntlv[i].name;
5532 break;
5533 }
5534 return (name);
5535}
5536
5537static void
5538ipfw_list_objects(int ac __unused, char *av[] __unused)

Callers 1

ipfw_list_objectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected