summaryrefslogtreecommitdiffstats
path: root/proto/ospf/rt.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-05-26 12:32:30 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-05-26 12:32:30 +0200
commite0a62ad0f8be198bf8afb1f6900f138dfe12d4fb (patch)
tree0cdff2e810d0414cef0e8af3b8f19356c809ece8 /proto/ospf/rt.h
parent52572e94ec75728c114f47db37aaf220c1af29d6 (diff)
downloadbird-e0a62ad0f8be198bf8afb1f6900f138dfe12d4fb.tar
bird-e0a62ad0f8be198bf8afb1f6900f138dfe12d4fb.zip
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.
Diffstat (limited to 'proto/ospf/rt.h')
-rw-r--r--proto/ospf/rt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/ospf/rt.h b/proto/ospf/rt.h
index 4fc76f4..78156c7 100644
--- a/proto/ospf/rt.h
+++ b/proto/ospf/rt.h
@@ -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
*/