fib: add invalid source type and fix debug log 66/20766/3
authorBenoît Ganne <bganne@cisco.com>
Wed, 17 Jul 2019 12:47:23 +0000 (14:47 +0200)
committerNeale Ranns <nranns@cisco.com>
Sun, 28 Jul 2019 14:24:29 +0000 (14:24 +0000)
commit99c358d62ab5106c710da23c563cd1b529a68f5a
treea5e6caca1de068ddbff136d5a7bf3b01cb790601
parent3cf9e67f5963e5f317e849892a6ec55be70a782d
fib: add invalid source type and fix debug log

Add the FIB_SOURCE_INVALID fib source type. This allows to spot
uninitialized fib source more easily (0 no longer means special) and we
can use it as placeholder when no source is present.
Use it to fix FIB_ENTRY_DBG() which was accessing the 1st source, even
when no sources were present.

Type: fix
Fixes: 710071bf0e

Change-Id: I980b6a6a07616d4a8d6f2db166a1dd335721c74d
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/fib/fib_entry.h
src/vnet/fib/fib_entry_src.c
src/vnet/fib/fib_entry_src.h