summaryrefslogtreecommitdiff
path: root/print-ptp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-02-28 18:21:59 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-02-28 21:23:02 +0100
commit2ff501f5499085b6c89879ab4522beff3a8f92b5 (patch)
tree770baa5b7c03b385aa32960a4c2cae58bd2376f8 /print-ptp.c
parentfbaf18d80ac98a58a3b5067648d2eea63fb1c320 (diff)
downloadtcpdump-2ff501f5499085b6c89879ab4522beff3a8f92b5.tar.gz
PTP: Fix header field 'Port Identity' variable size
'Port Identity' size is 16 bits, thus use uint16_t type.
Diffstat (limited to 'print-ptp.c')
-rw-r--r--print-ptp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ptp.c b/print-ptp.c
index 01ce53fd..27a96438 100644
--- a/print-ptp.c
+++ b/print-ptp.c
@@ -343,8 +343,8 @@ ptp_print_1(netdissect_options *ndo)
static void ptp_print_2(netdissect_options *ndo, const u_char *bp, u_int length)
{
u_int len = length;
- uint16_t msg_len, flags, seq_id;
- uint8_t foct, domain_no, msg_type, v1_compat, rsvd1, port_id, lm_int, control;
+ uint16_t msg_len, flags, port_id, seq_id;
+ uint8_t foct, domain_no, msg_type, v1_compat, rsvd1, lm_int, control;
uint32_t ns_corr, sns_corr, rsvd2;
uint64_t clk_id;