summaryrefslogtreecommitdiff
path: root/nest/rt.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-09-07 20:26:20 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-08 15:13:38 +0200
commita42877b9bf09c4c042bced3910ade9b71ce3724c (patch)
tree47fa532f53efa1cc7adc73525c94131538dcf07c /nest/rt.h
parent5103de4e8ed7f4744326129a4296cf3511b1e1f9 (diff)
Table feed refactoring to allow for locking and unlocking
Diffstat (limited to 'nest/rt.h')
-rw-r--r--nest/rt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nest/rt.h b/nest/rt.h
index 82d74296..7cf8a91f 100644
--- a/nest/rt.h
+++ b/nest/rt.h
@@ -300,6 +300,11 @@ struct rt_table_export_hook {
struct {
struct f_trie_walk_state *walk_state; /* Iterator over networks in trie */
struct f_trie *walk_lock; /* Locked trie for walking */
+ union { /* Last net visited but not processed */
+ net_addr walk_last;
+ net_addr_ip4 walk_last_ip4;
+ net_addr_ip6 walk_last_ip6;
+ };
};
};