summaryrefslogtreecommitdiff
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-01-23 10:59:19 -0500
committerGitHub <noreply@github.com>2020-01-23 10:59:19 -0500
commitbe3a8fa8f8ee34a2b15eac517f7eb7bad7978d1f (patch)
treeb6091e2574c9b5f59fce1042701d45d3a45a1197 /lib/zebra.h
parent80ad113f822f6961bc1dcaad2f4ae94a5ca11e0f (diff)
parent663d3a9115b55e4fd9c8d3b0ce3adb25248c40dd (diff)
Merge pull request #5620 from qlyoung/fix-zebra-vrf-label-afi-check
Fix zebra vrf label afi check
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index 00d422cdd1..b2f0202c53 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -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,