| 1447 | } |
| 1448 | |
| 1449 | static void |
| 1450 | print_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 | |
| 1466 | static int |
| 1467 | print_instruction(struct buf_pr *bp, const struct format_opts *fo, |
no test coverage detected