summaryrefslogtreecommitdiff
path: root/nest/route.h
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2017-02-22 14:02:03 +0100
committerJan Moskyto Matejka <mq@ucw.cz>2017-02-22 14:11:01 +0100
commit93f50ca31757fc8e416093e0c73681e070294a3d (patch)
tree5265962f65be6a85d8743b75572344b6e35390bc /nest/route.h
parentb2b84359abd382c1ec5a266b211276fbae7da0fc (diff)
Nest: names for nhu_state values
It took too much time to analyze what's the meaning of nhu_state values so I spent less than the same amount of time documenting it.
Diffstat (limited to 'nest/route.h')
-rw-r--r--nest/route.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nest/route.h b/nest/route.h
index c16b2643..928a022d 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -168,6 +168,11 @@ typedef struct rtable {
struct fib_iterator nhu_fit; /* Next Hop Update FIB iterator */
} rtable;
+#define NHU_CLEAN 0
+#define NHU_SCHEDULED 1
+#define NHU_RUNNING 2
+#define NHU_DIRTY 3
+
typedef struct network {
struct rte *routes; /* Available routes for this network */
struct fib_node n; /* FIB flags reserved for kernel syncer */