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

Function init_show_state

tools/ipfw/ipfw2.c:1413–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1411};
1412
1413static int
1414init_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
1428static void
1429free_show_state(struct show_state *state)

Callers 1

show_static_ruleFunction · 0.85

Calls 1

callocFunction · 0.85

Tested by

no test coverage detected