summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/in2out.c
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-06-22 12:52:29 +0000
committerKlement Sekera <ksekera@cisco.com>2020-06-22 12:58:00 +0000
commit1523c347d8f9e2a628d733e97f76d39b879861f0 (patch)
tree24bd9381526b71e29cbc35965dee575b8ef6ebc9 /src/plugins/nat/in2out.c
parent4128c7b463d44b589a3443e3058d40cad037e11b (diff)
nat: set buf error if can't create user
Type: fix Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: I747d78966a7296dcbae54d54b0c165d407c8863d
Diffstat (limited to 'src/plugins/nat/in2out.c')
-rw-r--r--src/plugins/nat/in2out.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/nat/in2out.c b/src/plugins/nat/in2out.c
index b8febc17c99..f904d02b344 100644
--- a/src/plugins/nat/in2out.c
+++ b/src/plugins/nat/in2out.c
@@ -94,8 +94,7 @@ _(UDP_PACKETS, "UDP packets") \
_(ICMP_PACKETS, "ICMP packets") \
_(OTHER_PACKETS, "other protocol packets") \
_(FRAGMENTS, "fragments") \
-_(CACHED_FRAGMENTS, "cached fragments") \
-_(PROCESSED_FRAGMENTS, "processed fragments")
+_(CANNOT_CREATE_USER, "cannot create NAT user")
typedef enum
{
@@ -312,7 +311,7 @@ slow_path (snat_main_t * sm, vlib_buffer_t * b0,
thread_index);
if (!u)
{
- nat_elog_warn ("create NAT user failed");
+ b0->error = node->errors[SNAT_IN2OUT_ERROR_CANNOT_CREATE_USER];
return SNAT_IN2OUT_NEXT_DROP;
}