From 3f88a74d14722d4027fe80daa2d0c79559e0f1b8 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Wed, 10 Jul 2019 17:09:13 +0200 Subject: nat: fix net44 lb static API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tag should be added at the end of the reply message instead of overwriting the original data. Type: fix Fixed: dd1e3e780c Change-Id: I4b31cf3a4a41b49ea9039a9398114dbf49a53e57 Signed-off-by: Benoît Ganne --- src/plugins/nat/nat_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/nat/nat_api.c b/src/plugins/nat/nat_api.c index 9cb27448fdf..63e1e756515 100644 --- a/src/plugins/nat/nat_api.c +++ b/src/plugins/nat/nat_api.c @@ -2036,7 +2036,7 @@ send_nat44_lb_static_mapping_details (snat_static_mapping_t * m, rmp = vl_msg_api_alloc (len); clib_memset (rmp, 0, len); - sp = (void *) &m->locals + + sp = (void *) &rmp->locals + sizeof (vl_api_nat44_lb_addr_port_t) * pool_elts (m->locals); vl_api_to_api_string (vec_len (m->tag), (char *) m->tag, sp); } -- cgit 1.2.3-korg