From e0a62ad0f8be198bf8afb1f6900f138dfe12d4fb Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 26 May 2010 12:32:30 +0200 Subject: 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. --- proto/ospf/rt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proto/ospf/rt.h') 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 */ -- cgit v1.2.3