summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-10-18 10:54:12 -0400
committerDave Barach <dave@barachs.net>2017-10-18 10:54:56 -0400
commit0091611c3cc9e7d7291beec7932468f1e1b551eb (patch)
tree95da8514e5db342e562475bc7a4cda3f12267f71 /src
parentec46b7c60ee22fdb836a4b2bcf97153c632173d2 (diff)
VPP-930: add missing ntohl to send_ip6_fib_details(...)
Change-Id: I0c1671f3eaf2dad084e3ac9fb124c9ed78273f50 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ip/ip_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ip/ip_api.c b/src/vnet/ip/ip_api.c
index a64c5b7b55b..4b7af3bc62d 100644
--- a/src/vnet/ip/ip_api.c
+++ b/src/vnet/ip/ip_api.c
@@ -364,7 +364,7 @@ send_ip6_fib_details (vpe_api_main_t * am,
}
fp->weight = api_rpath->rpath.frp_weight;
fp->preference = api_rpath->rpath.frp_preference;
- fp->sw_if_index = api_rpath->rpath.frp_sw_if_index;
+ fp->sw_if_index = htonl (api_rpath->rpath.frp_sw_if_index);
copy_fib_next_hop (api_rpath, fp);
fp++;
}