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

Function print_reject_code

tools/ipfw/ipfw2.c:1131–1140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1129}
1130
1131static void
1132print_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,

Callers 1

print_action_instructionFunction · 0.85

Calls 2

match_valueFunction · 0.85
bprintfFunction · 0.85

Tested by

no test coverage detected