aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cnat/cnat_src_policy.h
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2020-10-23 17:03:14 +0200
committerDamjan Marion <dmarion@me.com>2020-10-24 09:12:51 +0000
commitac948ce17fb3207d7f45578ec016089cb6860340 (patch)
tree77b63d68bf012104388713f0f93421b66e977bb3 /src/plugins/cnat/cnat_src_policy.h
parentfa4d4c635b82e31ecf7a52b8c794714f47b298cd (diff)
cnat: coverity fix
Type: fix Change-Id: Ie1153a0e0f1e9770bf3e0de9291131db91724b2e Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/cnat/cnat_src_policy.h')
-rw-r--r--src/plugins/cnat/cnat_src_policy.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/cnat/cnat_src_policy.h b/src/plugins/cnat/cnat_src_policy.h
index d76de8bd2cd..3057f641464 100644
--- a/src/plugins/cnat/cnat_src_policy.h
+++ b/src/plugins/cnat/cnat_src_policy.h
@@ -32,9 +32,8 @@ typedef enum
typedef enum cnat_source_policy_errors_
{
- CNAT_SOURCE_ERROR_EXHAUSTED_PORTS,
- CNAT_SOURCE_ERROR_USE_DEFAULT,
- CNAT_SOURCE_N_ERRORS,
+ CNAT_SOURCE_ERROR_EXHAUSTED_PORTS = 1,
+ CNAT_SOURCE_ERROR_USE_DEFAULT = 2,
} cnat_source_policy_errors_t;
typedef struct cnat_src_port_allocator_