summaryrefslogtreecommitdiffstats
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-05-22 11:15:53 +0300
committerTimo Teräs <timo.teras@iki.fi>2015-06-04 11:30:34 +0300
commit9c8af69f84623aad95b5e9be1402a9f92e0b26e9 (patch)
tree72f52100526648d4a46c9d7ce0635ae0d95e6730 /zebra/rib.h
parentf15d207f22922ca8b194152315459565f15ad161 (diff)
downloadquagga-tteras.tar.bz2
quagga-tteras.tar.xz
zebra: support FIB override routestteras
FIB override routes are for routing protocols that establish shortcut routes, or establish point-to-point routes that should not be redistributed. Namely this is useful NHRP daemon to come. Zebra is extended to select two entries from RIB the "best" entry from routing protocols, and the FIB entry to install to kernel. FIB override routes are never selected as best entry, and thus are never adverticed to other routing daemons. The best FIB override, or if it does not exist the otherwise best RIB is selected as FIB entry to be installed. Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index 229747df..05572ea7 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -67,6 +67,7 @@ struct rib
u_char status;
#define RIB_ENTRY_REMOVED (1 << 0)
#define RIB_ENTRY_CHANGED (1 << 1)
+#define RIB_ENTRY_SELECTED_FIB (1 << 2)
/* Nexthop information. */
u_char nexthop_num;