diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-01-07 18:35:03 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-01-07 18:35:03 +0100 |
commit | 7d767c5a3d001a6a1a5c3e800553202fd492190c (patch) | |
tree | 6a0758ae4bdd2b4cbecefec9ed329b43d038a270 /nest/rt-table.c | |
parent | ef8c45749c82e246d477ea4d7f749668a9c7e9ee (diff) |
KRT: Improve syncer code to avoid using temporary data in rtable
The old code stored route verdicts and temporary routes directly in
rtable. The new code do not store received routes (it immediately
compares them with exported routes and resolves conflicts) and uses
internal bitmap to keep track of which routes were received and which
needs to be reinstalled.
By not putting 'invalid' temporary routes to rtable, we keep rtable
in consistent state, therefore scan no longer needs to be atomic
operation and could be splitted to multiple events.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 4adc278e..f95afccd 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1687,7 +1687,7 @@ rte_dump(rte *e) { net *n = e->net; debug("%-1N ", n->n.addr); - debug("KF=%02x PF=%02x pref=%d ", n->n.flags, e->pflags, e->pref); + debug("PF=%02x pref=%d ", e->pflags, e->pref); rta_dump(e->attrs); if (e->attrs->src->proto->proto->dump_attrs) e->attrs->src->proto->proto->dump_attrs(e); |