summaryrefslogtreecommitdiff
path: root/nest/rt.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-09-05 12:55:36 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-05 12:55:36 +0200
commit28accd4f05e9c153d702736f3e08fa66e81a5536 (patch)
tree64d27e2290aaed8ac5d0195ec7489e48b4d2c4b2 /nest/rt.h
parent636bc44e61b5361b675ddd1ad7edb0b5ff2c2f2f (diff)
Next hop update triggered at the very end of hostcache update
Diffstat (limited to 'nest/rt.h')
-rw-r--r--nest/rt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/rt.h b/nest/rt.h
index a14c23e7..b94024fd 100644
--- a/nest/rt.h
+++ b/nest/rt.h
@@ -91,6 +91,8 @@ struct rt_table_exporter {
u64 next_seq; /* The next export will have this ID */
};
+extern uint rtable_max_id;
+
typedef struct rtable {
resource r;
node n; /* Node in list of all tables */
@@ -100,6 +102,7 @@ typedef struct rtable {
struct f_trie *trie; /* Trie of prefixes defined in fib */
char *name; /* Name of this table */
uint addr_type; /* Type of address data stored in table (NET_*) */
+ uint id; /* Integer table ID for fast lookup */
int use_count; /* Number of protocols using this table */
u32 rt_count; /* Number of routes in the table */