From: Francois-Xavier Le Bail Date: Mon, 2 Jan 2023 18:14:16 +0000 (+0100) Subject: PTP: Print un-allocated values for the message field as "Reserved" X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/6cdcda284868079abd970fd2ccde2df89b89b7c1 PTP: Print un-allocated values for the message field as "Reserved" instead of "none". --- diff --git a/print-ptp.c b/print-ptp.c index 7539b56a..dc2ff47d 100644 --- a/print-ptp.c +++ b/print-ptp.c @@ -368,7 +368,7 @@ ptp_print_2(netdissect_options *ndo, const u_char *bp, u_int length) v1_compat = foct & PTP_V1_COMPAT; ND_PRINT(", v1 compat : %s", v1_compat?"yes":"no"); msg_type = foct & PTP_MSG_TYPE_MASK; - ND_PRINT(", msg type : %s", tok2str(ptp_msg_type, "none", msg_type)); + ND_PRINT(", msg type : %s", tok2str(ptp_msg_type, "Reserved", msg_type)); /* msg length */ len -= 2; bp += 2; msg_len = GET_BE_U_2(bp); ND_PRINT(", length : %u", msg_len);