diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-01-02 19:14:16 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-01-02 19:17:45 +0100 |
commit | d3f815cef719f7e315e3049cab29f0b0b87f302d (patch) | |
tree | 39db245a40d013b5c08a91a134943e83d0f7604e | |
parent | 6fd455048f34f6ccbf98e87470b99c29d830ba85 (diff) | |
download | tcpdump-d3f815cef719f7e315e3049cab29f0b0b87f302d.tar.gz |
PTP: Print un-allocated values for the message field as "Reserved"
instead of "none".
(cherry picked from commit 6cdcda284868079abd970fd2ccde2df89b89b7c1)
-rw-r--r-- | print-ptp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-ptp.c b/print-ptp.c index 2019b323..a1c09c03 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); |