summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDaniel Béreš <daniel.beres@pantheon.tech>2021-10-04 07:51:59 +0000
committerOle Tr�an <otroan@employees.org>2021-11-17 09:21:46 +0000
commit79ce5142284084caee420ee18d47df145503c4db (patch)
tree1d5dca70447f7cb75f1c29eeb3d1808681a68341 /src/plugins
parent9a70cfc0b75dc93423a5f40d14ecbfe373146482 (diff)
nat: VPP crashes when route is not reachable
The problem was reproducible only with icmp packet type when det44 in, out interfaces were swapped. Dst addr was unknown but packet has been forwarded. Type: fix Ticket: VPP-1958 Signed-off-by: Daniel Béreš <daniel.beres@pantheon.tech> Change-Id: Ie446cf2ac866955cc668fe2848f954a2ef92e3fa
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/nat/det44/det44_out2in.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/nat/det44/det44_out2in.c b/src/plugins/nat/det44/det44_out2in.c
index 111bc61c476..4871e752db0 100644
--- a/src/plugins/nat/det44/det44_out2in.c
+++ b/src/plugins/nat/det44/det44_out2in.c
@@ -173,6 +173,9 @@ icmp_match_out2in_det (vlib_node_runtime_t * node,
}
det44_log_info ("unknown dst address: %U",
format_ip4_address, &ip0->dst_address);
+ b0->error = node->errors[DET44_OUT2IN_ERROR_NO_TRANSLATION];
+ next0 = DET44_OUT2IN_NEXT_DROP;
+
goto out;
}