Skip to content

Commit

Permalink
zebra: Modify the status flag to 32 bits, add more flags
Browse files Browse the repository at this point in the history
Modify the status flag from 8 bits to 32 bits and to add
a few new flags that will be used in future commits.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
  • Loading branch information
donaldsharp committed Jan 11, 2019
1 parent f52ed67 commit 88f7ea3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion zebra/rib.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,20 @@ struct route_entry {
uint32_t flags;

/* RIB internal status */
uint8_t status;
uint32_t status;
#define ROUTE_ENTRY_REMOVED 0x1
/* to simplify NHT logic when NHs change, instead of doing a NH by NH cmp */
#define ROUTE_ENTRY_NEXTHOPS_CHANGED 0x2
/* The Route Entry has changed */
#define ROUTE_ENTRY_CHANGED 0x4
/* The Label has changed on the Route entry */
#define ROUTE_ENTRY_LABELS_CHANGED 0x8
/* Route is queued for Installation into the Data Plane */
#define ROUTE_ENTRY_QUEUED 0x10
/* Route is installed into the Data Plane */
#define ROUTE_ENTRY_INSTALLED 0x20
/* Route has Failed installation into the Data Plane in some manner */
#define ROUTE_ENTRY_FAILED 0x40

/* Nexthop information. */
uint8_t nexthop_num;
Expand Down

0 comments on commit 88f7ea3

Please sign in to comment.