aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/bier/bier_api.c
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-01-09 04:11:28 -0800
committerNeale Ranns <nranns@cisco.com>2018-01-09 13:49:50 +0000
commiteea537a288721b867d65b736363ab3f71ba6116c (patch)
treea9eb23c91b9f1f8f7c6e6ab723748c2317c7e848 /src/vnet/bier/bier_api.c
parent52fae862646e25bac6d1cd11b9fc7ac77299bc25 (diff)
BIER: missing endian swap for imposition object in API return
Change-Id: Iddd754d00ace3d042336e5c2c40431566275051a Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/bier/bier_api.c')
-rw-r--r--src/vnet/bier/bier_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/bier/bier_api.c b/src/vnet/bier/bier_api.c
index 92712580f14..3da6c192f1f 100644
--- a/src/vnet/bier/bier_api.c
+++ b/src/vnet/bier/bier_api.c
@@ -350,7 +350,7 @@ vl_api_bier_imp_add_t_handler (vl_api_bier_imp_add_t * mp)
/* *INDENT-OFF* */
REPLY_MACRO2 (VL_API_BIER_IMP_ADD_REPLY,
({
- rmp->bi_index = bii;
+ rmp->bi_index = ntohl (bii);
}));
/* *INDENT-OM* */
}