Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
79a32a4
)
nat: fix net44 lb static API
91/20591/2
author
Benoît Ganne
<bganne@cisco.com>
Wed, 10 Jul 2019 15:09:13 +0000
(17:09 +0200)
committer
Paul Vinciguerra
<pvinci@vinciconsulting.com>
Fri, 12 Jul 2019 10:39:04 +0000
(10:39 +0000)
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 <bganne@cisco.com>
src/plugins/nat/nat_api.c
patch
|
blob
|
history
diff --git
a/src/plugins/nat/nat_api.c
b/src/plugins/nat/nat_api.c
index
9cb2744
..
63e1e75
100644
(file)
--- 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);
}