summaryrefslogtreecommitdiffstats
path: root/src/plugins/lb/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lb/api.c')
-rw-r--r--src/plugins/lb/api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lb/api.c b/src/plugins/lb/api.c
index beec4ae5876..157bf318eae 100644
--- a/src/plugins/lb/api.c
+++ b/src/plugins/lb/api.c
@@ -139,7 +139,7 @@ vl_api_lb_add_del_vip_t_handler
args.plen = mp->prefix_length;
args.type = type;
- args.new_length = mp->new_flows_table_length;
+ args.new_length = ntohl(mp->new_flows_table_length);
if (mp->encap == LB_ENCAP_TYPE_L3DSR) {
args.encap_args.dscp = (u8)(mp->dscp & 0x3F);