forked from Mirror/frr
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_MAX = 4
|
||||||
} afi_t;
|
} afi_t;
|
||||||
|
|
||||||
|
#define IS_VALID_AFI(a) ((a) > AFI_UNSPEC && (a) < AFI_MAX)
|
||||||
|
|
||||||
/* Subsequent Address Family Identifier. */
|
/* Subsequent Address Family Identifier. */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SAFI_UNSPEC = 0,
|
SAFI_UNSPEC = 0,
|
||||||
|
|
Loading…
Reference in a new issue