Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nat: fix ICMP error translation
[vpp.git]
/
src
/
plugins
/
nat
/
nat44-ed
/
nat44_ed.c
diff --git
a/src/plugins/nat/nat44-ed/nat44_ed.c
b/src/plugins/nat/nat44-ed/nat44_ed.c
index
b67a247
..
8f35643
100644
(file)
--- a/
src/plugins/nat/nat44-ed/nat44_ed.c
+++ b/
src/plugins/nat/nat44-ed/nat44_ed.c
@@
-3801,6
+3801,9
@@
nat_6t_flow_icmp_translate (vlib_main_t *vm, snat_main_t *sm, vlib_buffer_t *b,
icmp->checksum = new_icmp_sum;
break;
case IP_PROTOCOL_ICMP:
icmp->checksum = new_icmp_sum;
break;
case IP_PROTOCOL_ICMP:
+ nat_6t_flow_ip4_translate (sm, b, inner_ip, f, inner_proto,
+ 1 /* is_icmp_inner_ip4 */,
+ 0 /* skip_saddr_rewrite */);
if (f->ops & NAT_FLOW_OP_ICMP_ID_REWRITE)
{
icmp46_header_t *inner_icmp = ip4_next_header (inner_ip);
if (f->ops & NAT_FLOW_OP_ICMP_ID_REWRITE)
{
icmp46_header_t *inner_icmp = ip4_next_header (inner_ip);