| 1411 | }; |
| 1412 | |
| 1413 | static int |
| 1414 | init_show_state(struct show_state *state, struct ip_fw_rule *rule) |
| 1415 | { |
| 1416 | |
| 1417 | state->printed = calloc(rule->cmd_len, sizeof(uint8_t)); |
| 1418 | if (state->printed == NULL) |
| 1419 | return (ENOMEM); |
| 1420 | state->rule = rule; |
| 1421 | state->eaction = NULL; |
| 1422 | state->flags = 0; |
| 1423 | state->proto = 0; |
| 1424 | state->or_block = 0; |
| 1425 | return (0); |
| 1426 | } |
| 1427 | |
| 1428 | static void |
| 1429 | free_show_state(struct show_state *state) |
no test coverage detected