summaryrefslogtreecommitdiffstats
path: root/src/vnet/error.h
diff options
context:
space:
mode:
authorFilip Varga <filipvarga89@gmail.com>2022-11-23 10:47:56 -0800
committerMatthew Smith <mgsmith@netgate.com>2022-12-09 18:24:08 +0000
commit36c7e7cb34ba611e020be9f7ad4a93f9e6a8496d (patch)
treec372c8bef2ebef51d952802becf5ef2f5c14f2bc /src/vnet/error.h
parentc62ddb61a5963102bc9fed2f3cfc567d38caf741 (diff)
nat: fixed return values of enable/disable call
NAT44 enable/disable return status was used instead of appropriate VNET_API_ERROR_ code. Type: fix Signed-off-by: Filip Varga <filipvarga89@gmail.com> Change-Id: If944866bf3061afdc91284c0ad475135e529bdc4
Diffstat (limited to 'src/vnet/error.h')
-rw-r--r--src/vnet/error.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/error.h b/src/vnet/error.h
index 39a609bdb49..3feb8ff04a1 100644
--- a/src/vnet/error.h
+++ b/src/vnet/error.h
@@ -156,7 +156,9 @@
_ (EAGAIN, -165, "Retry stream call with cursor") \
_ (INVALID_VALUE_4, -166, "Invalid value #4") \
_ (BUSY, -167, "Busy") \
- _ (BUG, -168, "Bug")
+ _ (BUG, -168, "Bug") \
+ _ (FEATURE_ALREADY_DISABLED, -169, "Feature already disabled") \
+ _ (FEATURE_ALREADY_ENABLED, -170, "Feature already enabled")
typedef enum
{