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

Function print_limit_mask

tools/ipfw/ipfw2.c:1449–1464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1447}
1448
1449static void
1450print_limit_mask(struct buf_pr *bp, const ipfw_insn_limit *limit)
1451{
1452 struct _s_x *p = limit_masks;
1453 char const *comma = " ";
1454 uint8_t x;
1455
1456 for (x = limit->limit_mask; p->x != 0; p++) {
1457 if ((x & p->x) == p->x) {
1458 x &= ~p->x;
1459 bprintf(bp, "%s%s", comma, p->s);
1460 comma = ",";
1461 }
1462 }
1463 bprint_uint_arg(bp, " ", limit->conn_limit);
1464}
1465
1466static int
1467print_instruction(struct buf_pr *bp, const struct format_opts *fo,

Callers 1

print_instructionFunction · 0.85

Calls 2

bprintfFunction · 0.85
bprint_uint_argFunction · 0.85

Tested by

no test coverage detected