]> The Tcpdump Group git mirrors - tcpdump/commitdiff
PTP: Print un-allocated values for the message field as "Reserved"
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 2 Jan 2023 18:14:16 +0000 (19:14 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 2 Jan 2023 18:17:45 +0000 (19:17 +0100)
instead of "none".

(cherry picked from commit 6cdcda284868079abd970fd2ccde2df89b89b7c1)

print-ptp.c

index 2019b32380557f4e601bbbafbf96ca604b86c649..a1c09c03cceff567ef7e10d439f073edcace392d 100644 (file)
@@ -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);