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

Function print_unreach6_code

tools/ipfw/ipv6.c:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void
78print_unreach6_code(struct buf_pr *bp, uint16_t code)
79{
80 char const *s = match_value(icmp6codes, code);
81
82 if (s != NULL)
83 bprintf(bp, "unreach6 %s", s);
84 else
85 bprintf(bp, "unreach6 %u", code);
86}
87
88/*
89 * Print the ip address contained in a command.

Callers 1

print_action_instructionFunction · 0.85

Calls 2

match_valueFunction · 0.85
bprintfFunction · 0.85

Tested by

no test coverage detected