| 5517 | }; |
| 5518 | |
| 5519 | static const char* |
| 5520 | lookup_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 | |
| 5537 | static void |
| 5538 | ipfw_list_objects(int ac __unused, char *av[] __unused) |