fib: Crash when specify a big prefix length from CLI. 76/39076/4
authorGavril Florian <gflorian@3nets.io>
Thu, 15 Jun 2023 18:39:57 +0000 (18:39 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Sun, 1 Oct 2023 20:59:58 +0000 (20:59 +0000)
commite7f34c93b1c928855f88896c5bdd2bc539ee77ae
treeded9269a70adbc6dde267312243c281a53b4134c
parent35f8ee6921f3995c12502c352d25487c6a6fc290
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
src/vnet/error.h
src/vnet/fib/fib_api.c
src/vnet/ip/lookup.c
src/vnet/ip/lookup.h