From: Francois-Xavier Le Bail Date: Sun, 6 Feb 2022 19:54:50 +0000 (+0100) Subject: ICMPv6: Add a comment about "don't use GET_IP6ADDR_STRING()" X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b34f18bdffd263ae544e370c048238a90179e877 ICMPv6: Add a comment about "don't use GET_IP6ADDR_STRING()" [skip ci] --- diff --git a/print-icmp6.c b/print-icmp6.c index 021d2146..015d503a 100644 --- a/print-icmp6.c +++ b/print-icmp6.c @@ -1502,7 +1502,7 @@ icmp6_opt_print(netdissect_options *ndo, const u_char *bp, int resid) default: goto trunc; } - ND_PRINT(" %s/%u", ip6addr_string(ndo, (const u_char *)&in6), + ND_PRINT(" %s/%u", ip6addr_string(ndo, (const u_char *)&in6), /* local buffer, not packet data; don't use GET_IP6ADDR_STRING() */ GET_U_1(opri->nd_opt_rti_prefixlen)); ND_PRINT(", pref=%s", get_rtpref(GET_U_1(opri->nd_opt_rti_flags)));