summaryrefslogtreecommitdiffstats
path: root/src/plugins/lb/lb_test.c
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2019-11-26 19:36:17 +0800
committerDamjan Marion <dmarion@me.com>2019-11-26 09:49:23 +0000
commite69f4714323e1f7e7754fef58a2d75949e146317 (patch)
treed3d4f6f495102600220fc1fb15f87e085d21c1d8 /src/plugins/lb/lb_test.c
parent30cca512ce3818a9b2c56140f7859bd544bc825d (diff)
lb: lb_add_del_vip and lb_add_del_as doesn't work.
Ticket: FDIO-753 Type: fix Change-Id: I4a8cf06970b658dfa15768459a3ff76571d6dfff Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'src/plugins/lb/lb_test.c')
-rw-r--r--src/plugins/lb/lb_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lb/lb_test.c b/src/plugins/lb/lb_test.c
index 7176be8c8d8..007303f82c8 100644
--- a/src/plugins/lb/lb_test.c
+++ b/src/plugins/lb/lb_test.c
@@ -268,7 +268,7 @@ static int api_lb_add_del_as (vat_main_t * vam)
mp->pfx.len = vip_plen;
mp->protocol = (u8)protocol;
mp->port = htons((u16)port);
- clib_memcpy (&mp->as_address, &as_addr, sizeof (as_addr));
+ clib_memcpy (&mp->as_address.un.ip6, &as_addr.ip6, sizeof (as_addr.ip6));
mp->is_del = is_del;
mp->is_flush = is_flush;