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

Fixes a bug in duplicit configured stubnets.

If there was the same configured stubnet on local and remote
router, the remote route always won regardless of its cost.
This commit is contained in:
Ondrej Zajicek
2010-05-26 12:32:30 +02:00
parent 52572e94ec
commit e0a62ad0f8
2 changed files with 15 additions and 7 deletions

View File

@@ -72,7 +72,9 @@ ort;
* - nodes may be invalid (fn.type == 0), in that case other invariants don't hold
* - n.metric1 may be at most a small multiple of LSINFINITY,
* therefore sums do not overflow
* - n.oa and n.ifa are always non-NULL
* - n.oa is always non-NULL
* - n.ifa is always non-NULL with one exception - configured stubnet
nodes (in po->rtf). In that case, n.nh is IFA_NONE.
* - oa->rtr does not contain calculating router itself
*/