diff options
author | Andrey "Zed" Zaikin <zed.0xff@gmail.com> | 2018-06-01 15:39:54 +0300 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-06-05 17:32:13 +0000 |
commit | 439a122f3acd745dcb70e9b32bb518e43967afe4 (patch) | |
tree | 21513e390a0ebb3de650582014c2c80d86939149 /src/plugins/lb | |
parent | 73710c7da2f8deaea83dbbbfce8737c9c6cd2949 (diff) |
lb api: correct byte order of new_flows_table_length argument
Change-Id: I3ac348a8cb1a515dfe1839eaa084c87719d282e1
Signed-off-by: Andrey "Zed" Zaikin <zed.0xff@gmail.com>
Diffstat (limited to 'src/plugins/lb')
-rw-r--r-- | src/plugins/lb/api.c | 2 |
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); |