fib: changing parsing order to avoid corner case 55/32755/2
authorArthur de Kerhor <arthurdekerhor@gmail.com>
Thu, 17 Jun 2021 07:34:12 +0000 (09:34 +0200)
committerNeale Ranns <neale@graphiant.com>
Thu, 17 Jun 2021 10:32:56 +0000 (10:32 +0000)
commit55d46df4be5945a5294f6909d151936648895db7
tree8b6fc244f7f6113ecbd018993ca566f3220869f5
parent91adf2449f23b9362fa6a07315e83548fe7c1c4b
fib: changing parsing order to avoid corner case

mfib interface flags are parsed before the interface name. For some
specific names, this creates a bug when adding routes.

ex: ip route add 10.0.2.0/24 via FortyGigabitEthernetd8/0/0
The 'F' at the beginnig of the interface name is parsed as the
"Forward" flag. Because of that, the interface name parsed is
"ortyGigabitEthernetd8/0/0" which results in a parsing error.

Type: fix

Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
Change-Id: Ib76c2f86416455841f910f7b466b467001072b70
src/vnet/fib/fib_types.c