summaryrefslogtreecommitdiff
path: root/nest/rt.h
diff options
context:
space:
mode:
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 */