X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/9169e4e1949c3fa879f0a2f98cfbd8c444743c27..c518a9aab149da1a6b83c0cbeddaff5265d05dcb:/print-dhcp6.c diff --git a/print-dhcp6.c b/print-dhcp6.c index 76a52f0a..dba13e9e 100644 --- a/print-dhcp6.c +++ b/print-dhcp6.c @@ -49,8 +49,6 @@ #include "netdissect-stdinc.h" -#include - #include "netdissect.h" #include "addrtoname.h" #include "extract.h" @@ -747,7 +745,7 @@ dhcp6opt_print(netdissect_options *ndo, label_len = GET_U_1(tp); tp++; if (label_len < remain_len - 1) { - (void)nd_printn(ndo, tp, label_len, NULL); + nd_printjnp(ndo, tp, label_len); tp += label_len; remain_len -= (label_len + 1); if(GET_U_1(tp)) ND_PRINT("."); @@ -766,8 +764,8 @@ dhcp6opt_print(netdissect_options *ndo, break; } tp = (const u_char *)(dh6o + 1); - ND_PRINT("="); - (void)nd_printn(ndo, tp, (u_int)optlen, NULL); + ND_PRINT(" "); + nd_printjnp(ndo, tp, optlen); ND_PRINT(")"); break;