| 1129 | } |
| 1130 | |
| 1131 | static void |
| 1132 | print_reject_code(struct buf_pr *bp, uint16_t code) |
| 1133 | { |
| 1134 | char const *s; |
| 1135 | |
| 1136 | if ((s = match_value(icmpcodes, code)) != NULL) |
| 1137 | bprintf(bp, "unreach %s", s); |
| 1138 | else |
| 1139 | bprintf(bp, "unreach %u", code); |
| 1140 | } |
| 1141 | |
| 1142 | /* |
| 1143 | * Returns the number of bits set (from left) in a contiguous bitmask, |
no test coverage detected