diff options
author | 2019-08-20 11:39:00 -0700 | |
---|---|---|
committer | 2019-09-24 20:55:52 +0000 | |
commit | 9db3dee1a022f7e0175d795262c291180ff781d3 (patch) | |
tree | 828ee5f0d8dc619d1309d6767a33b305759e74a7 | |
parent | 6aba16230ca8065cf3fc2b608a31b349b5667be5 (diff) |
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 <sluong@cisco.com>
Change-Id: Ie6d49a17e4411df5d567dbb2a7c95993dceda31b
(cherry picked from commit 58caa37dcac3cef95279f8b2c82082b1a2af6a62)
-rw-r--r-- | src/vpp/api/custom_dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index 70071aaae61..16145a9287d 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -689,8 +689,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) |