diff options
author | ae <ae@FreeBSD.org> | 2016-04-14 18:22:08 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2016-04-14 18:22:08 +0000 |
commit | c3dfe54d824933b6bf801646313bf6eb06e0888f (patch) | |
tree | 80566e4d1f6faa02fe2f247774c57ad21fe40b40 /sbin/ipfw/ipv6.c | |
parent | 571a4c134cd3e424ba2d442800cd25853df16ae2 (diff) | |
download | FreeBSD-src-c3dfe54d824933b6bf801646313bf6eb06e0888f.zip FreeBSD-src-c3dfe54d824933b6bf801646313bf6eb06e0888f.tar.gz |
Fix output formatting of O_UNREACH6 opcode.
Obtained from: Yandex LLC
Diffstat (limited to 'sbin/ipfw/ipv6.c')
-rw-r--r-- | sbin/ipfw/ipv6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipfw/ipv6.c b/sbin/ipfw/ipv6.c index 36ee675..c04dd70 100644 --- a/sbin/ipfw/ipv6.c +++ b/sbin/ipfw/ipv6.c @@ -71,14 +71,14 @@ fill_unreach6_code(u_short *codep, char *str) } void -print_unreach6_code(uint16_t code) +print_unreach6_code(struct buf_pr *bp, uint16_t code) { char const *s = match_value(icmp6codes, code); if (s != NULL) - printf("unreach6 %s", s); + bprintf(bp, "unreach6 %s", s); else - printf("unreach6 %u", code); + bprintf(bp, "unreach6 %u", code); } /* |