mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 14:02:02 +00:00
lib: add macro to check if value is valid afi
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
8015874dcd
commit
d35e556c84
@ -360,6 +360,8 @@ typedef enum {
|
||||
AFI_MAX = 4
|
||||
} afi_t;
|
||||
|
||||
#define IS_VALID_AFI(a) ((a) > AFI_UNSPEC && (a) < AFI_MAX)
|
||||
|
||||
/* Subsequent Address Family Identifier. */
|
||||
typedef enum {
|
||||
SAFI_UNSPEC = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user