summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-10-18 10:54:12 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-10-18 22:22:51 +0000
commit7513c8c7d2ed702f346fd707eb2b76fce8657c1d (patch)
tree604e3513b640f206512dd64945ab8a6cee3940dd /src
parentc64ef37c82949cf8d630e9db0066be6724ddc16b (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 c42649f66d0..e13e6e64e4d 100644
--- a/src/vnet/ip/ip_api.c
+++ b/src/vnet/ip/ip_api.c
@@ -362,7 +362,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++;
}