From 9a244b0a29b3ed517fc3442c9358d79907f67a24 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Wed, 6 May 2020 16:58:02 -0700 Subject: lacp: missing endian conversions for trace packet format Fix a couple endian conversions for displaying Marker Protocol packet in the trace Type: fix Signed-off-by: Steven Luong Change-Id: I746a67fb6143b5ad52bc4af9604ff8760dbdec9b --- src/plugins/lacp/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lacp/input.c b/src/plugins/lacp/input.c index a75c3b2aa4c..fd1296afe3e 100644 --- a/src/plugins/lacp/input.c +++ b/src/plugins/lacp/input.c @@ -283,11 +283,11 @@ lacp_input_format_trace (u8 * s, va_list * args) s = format (s, " Marker Information TLV: length %u\n", marker->marker_info.tlv_length); s = format (s, " Requester port: %u\n", - marker->marker_info.requester_port); + ntohs (marker->marker_info.requester_port)); s = format (s, " Requester system: %U\n", format_ethernet_address, marker->marker_info.requester_system); s = format (s, " Requester transaction ID: %u\n", - marker->marker_info.requester_transaction_id); + ntohl (marker->marker_info.requester_transaction_id)); break; case LACP_SUBTYPE: -- cgit 1.2.3-korg