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

Special table hooks rectified.

* internal tables are now more standalone, having their own import and
  export hooks
* route refresh/reload uses stale counter instead of stale flag,
  allowing to drop walking the table at the beginning
* route modify (by BGP LLGR) is now done by a special refeed hook,
  reimporting the modified routes directly without filters
This commit is contained in:
Maria Matejka
2021-10-06 15:10:33 +02:00
parent f81702b7e4
commit 44f26c49f9
16 changed files with 682 additions and 846 deletions

View File

@@ -109,6 +109,15 @@ add_head(list *l, node *n)
l->head = n;
}
LIST_INLINE void
self_link(node *n)
{
ASSUME(n->prev == NULL);
ASSUME(n->next == NULL);
n->prev = n->next = n;
}
/**
* insert_node - insert a node to a list
* @n: a new list node