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

Move ID allocator to a separate file and use it also in OSPF

This commit is contained in:
Ondrej Zajicek (work)
2015-12-29 15:34:48 +01:00
parent 9a70c8d6c3
commit 74c838a870
11 changed files with 126 additions and 71 deletions

View File

@@ -2005,6 +2005,9 @@ again1:
/* Remove unused rt entry, some special entries are persistent */
if (!nf->n.type && !nf->external_rte && !nf->area_net)
{
if (nf->lsa_id)
idm_free(&p->idm, nf->lsa_id);
FIB_ITERATE_PUT(&fit);
fib_delete(fib, nf);
goto again1;