summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_const.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-04-06 01:24:56 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-04-06 01:24:56 +0200
commit9f56205cc5b15653444ec3bdafc2c8daecf9b3cc (patch)
treeca59f9467628802f7fd3516e67d838c207ba1632 /eigrpd/eigrp_const.h
parentcumulus, tools: Fix up startup (diff)
downloadfrr-9f56205cc5b15653444ec3bdafc2c8daecf9b3cc.tar.xz
frr-9f56205cc5b15653444ec3bdafc2c8daecf9b3cc.zip
eigrpd: Cleanup Bit Field handling
Cleanup the Bit field handling for whether or not entries are installed or not. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_const.h')
-rw-r--r--eigrpd/eigrp_const.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/eigrpd/eigrp_const.h b/eigrpd/eigrp_const.h
index a1d09e684..b77932965 100644
--- a/eigrpd/eigrp_const.h
+++ b/eigrpd/eigrp_const.h
@@ -127,10 +127,10 @@
#define EIGRP_TOPOLOGY_TYPE_REMOTE_EXTERNAL 2 // Remote external network
/*EIGRP TT entry flags*/
-#define EIGRP_NEIGHBOR_ENTRY_SUCCESSOR_FLAG 1
-#define EIGRP_NEIGHBOR_ENTRY_FSUCCESSOR_FLAG 2
-#define EIGRP_NEIGHBOR_ENTRY_INTABLE_FLAG 4
-#define EIGRP_NEIGHBOR_ENTRY_EXTERNAL_FLAG 8
+#define EIGRP_NEIGHBOR_ENTRY_SUCCESSOR_FLAG (1 << 0)
+#define EIGRP_NEIGHBOR_ENTRY_FSUCCESSOR_FLAG (1 << 1)
+#define EIGRP_NEIGHBOR_ENTRY_INTABLE_FLAG (1 << 2)
+#define EIGRP_NEIGHBOR_ENTRY_EXTERNAL_FLAG (1 << 3)
/*EIGRP FSM state count, event count*/
#define EIGRP_FSM_STATE_MAX 5