aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2020-05-06 16:58:02 -0700
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-18 09:54:56 +0000
commitf812f51873f7b7ae458ae6af6eb23616a4013121 (patch)
tree44a14cb3d3e2af6fe2f14422f08cde6ac498bfea
parent55e4f87b79738703f3c4f4875c9f7eca80fcc8bd (diff)
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 <sluong@cisco.com> Change-Id: I746a67fb6143b5ad52bc4af9604ff8760dbdec9b (cherry picked from commit 9a244b0a29b3ed517fc3442c9358d79907f67a24)
-rw-r--r--src/plugins/lacp/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lacp/input.c b/src/plugins/lacp/input.c
index befb2ed408b..57e30b43662 100644
--- a/src/plugins/lacp/input.c
+++ b/src/plugins/lacp/input.c
@@ -276,11 +276,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: