From 28accd4f05e9c153d702736f3e08fa66e81a5536 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 5 Sep 2022 12:55:36 +0200 Subject: Next hop update triggered at the very end of hostcache update --- nest/rt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nest/rt.h') 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 */ -- cgit v1.2.3