From: Steven Luong Date: Tue, 20 Aug 2019 18:39:00 +0000 (-0700) Subject: misc: missing ntohl for bond_slave's custom dump X-Git-Tag: v20.05-rc0~959 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=58caa37dcac3cef95279f8b2c82082b1a2af6a62;p=vpp.git misc: missing ntohl for bond_slave's custom dump sw_if_index argument is u32 and it needs to be converted to host order for format in custom dump, a very highly sophisticated stuff. Type: fix Signed-off-by: Steven Luong Change-Id: Ie6d49a17e4411df5d567dbb2a7c95993dceda31b --- diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index 428e2883af2..c19acc37dcc 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -690,8 +690,8 @@ static void *vl_api_bond_enslave_t_print u8 *s; s = format (0, "SCRIPT: bond_enslave "); - s = format (s, "bond_sw_if_index %u ", mp->bond_sw_if_index); - s = format (s, "sw_if_index %u ", mp->sw_if_index); + s = format (s, "bond_sw_if_index %u ", ntohl (mp->bond_sw_if_index)); + s = format (s, "sw_if_index %u ", ntohl (mp->sw_if_index)); if (mp->is_passive) s = format (s, "passive "); if (mp->is_long_timeout)