1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Table feed refactoring to allow for locking and unlocking

This commit is contained in:
Maria Matejka
2022-09-07 20:26:20 +02:00
parent 5103de4e8e
commit a42877b9bf
2 changed files with 113 additions and 45 deletions

View File

@@ -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;
};
};
};