diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2019-11-26 19:36:17 +0800 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-02-06 12:22:30 +0000 |
commit | 5ec78926b6ba97e3808abe54b2aef981ab26d038 (patch) | |
tree | 15531782ba48fae46038778b0246670610795fd8 /src/plugins/lb/lb_test.c | |
parent | f540ca8016ee030b24af57a6a91fa27dc0944b04 (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>
(cherry picked from commit e69f4714323e1f7e7754fef58a2d75949e146317)
Diffstat (limited to 'src/plugins/lb/lb_test.c')
-rw-r--r-- | src/plugins/lb/lb_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lb/lb_test.c b/src/plugins/lb/lb_test.c index 1edabb51f86..f38a3f93844 100644 --- a/src/plugins/lb/lb_test.c +++ b/src/plugins/lb/lb_test.c @@ -326,7 +326,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; |