diff options
author | Gavril Florian <gflorian@3nets.io> | 2023-06-15 18:39:57 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2023-10-01 20:59:58 +0000 |
commit | e7f34c93b1c928855f88896c5bdd2bc539ee77ae (patch) | |
tree | ded9269a70adbc6dde267312243c281a53b4134c /src/vnet/ip/lookup.h | |
parent | 35f8ee6921f3995c12502c352d25487c6a6fc290 (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/ip/lookup.h')
-rw-r--r-- | src/vnet/ip/lookup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ip/lookup.h b/src/vnet/ip/lookup.h index aa998273213..4489df1aed8 100644 --- a/src/vnet/ip/lookup.h +++ b/src/vnet/ip/lookup.h @@ -179,6 +179,7 @@ ip_lookup_set_buffer_fib_index (u32 * fib_index_by_sw_if_index, } void ip_lookup_init (ip_lookup_main_t * lm, u32 ip_lookup_node_index); +bool fib_prefix_validate (const fib_prefix_t *prefix); #endif /* included_ip_lookup_h */ /* |