From f9441c5e03e4b0d4e52d30ff56102cdd807807fa Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 27 Feb 2022 23:05:34 +0000 Subject: [PATCH] bugfix - return in host order --- lcpng_if_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lcpng_if_api.c b/lcpng_if_api.c index 3b34d99..b7b67ae 100644 --- a/lcpng_if_api.c +++ b/lcpng_if_api.c @@ -144,9 +144,9 @@ send_lcp_itf_pair_details (index_t lipi, vl_api_registration_t *rp, REPLY_MACRO_DETAILS4 ( VL_API_LCP_ITF_PAIR_DETAILS, rp, context, ({ - rmp->phy_sw_if_index = lcp_pair->lip_phy_sw_if_index; - rmp->host_sw_if_index = lcp_pair->lip_host_sw_if_index; - rmp->vif_index = lcp_pair->lip_vif_index; + rmp->phy_sw_if_index = ntohl(lcp_pair->lip_phy_sw_if_index); + rmp->host_sw_if_index = ntohl(lcp_pair->lip_host_sw_if_index); + rmp->vif_index = ntohl(lcp_pair->lip_vif_index); rmp->host_if_type = api_encode_host_type (lcp_pair->lip_host_type); memcpy_s (rmp->host_if_name, sizeof (rmp->host_if_name),