summaryrefslogtreecommitdiffstats
path: root/src/vnet/error.h
diff options
context:
space:
mode:
authorGavril Florian <gflorian@3nets.io>2023-06-15 18:39:57 +0000
committerDamjan Marion <dmarion@0xa5.net>2023-10-01 20:59:58 +0000
commite7f34c93b1c928855f88896c5bdd2bc539ee77ae (patch)
treeded9269a70adbc6dde267312243c281a53b4134c /src/vnet/error.h
parent35f8ee6921f3995c12502c352d25487c6a6fc290 (diff)
fib: Crash when specify a big prefix length from CLI.
The VPP is crashing when specify a very big prefix length, like ip route add 1.1.1.1/55 via 2.2.2.2 Type: fix Signed-off-by: Gavril Florian <gflorian@3nets.io> Change-Id: Ic491c0b24e07be897ff35ae1e835280f04ab3ea5
Diffstat (limited to 'src/vnet/error.h')
-rw-r--r--src/vnet/error.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/error.h b/src/vnet/error.h
index 3feb8ff04a1..fa1337538c4 100644
--- a/src/vnet/error.h
+++ b/src/vnet/error.h
@@ -158,7 +158,8 @@
_ (BUSY, -167, "Busy") \
_ (BUG, -168, "Bug") \
_ (FEATURE_ALREADY_DISABLED, -169, "Feature already disabled") \
- _ (FEATURE_ALREADY_ENABLED, -170, "Feature already enabled")
+ _ (FEATURE_ALREADY_ENABLED, -170, "Feature already enabled") \
+ _ (INVALID_PREFIX_LENGTH, -171, "Invalid prefix length")
typedef enum
{