From 9008579b97239564e1dcac855cf726fa9ab7dabd Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 20 Jul 2011 23:46:03 +0200 Subject: Fixes broken multi-area OSPF. --- proto/ospf/rt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto') diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index 9e3f9d7..78b1ebe 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -213,7 +213,7 @@ rt_pos_to_ifa(struct ospf_area *oa, int pos) { struct ospf_iface *ifa; WALK_LIST(ifa, oa->po->iface_list) - if (pos >= ifa->rt_pos_beg && pos < ifa->rt_pos_end) + if (ifa->oa == oa && pos >= ifa->rt_pos_beg && pos < ifa->rt_pos_end) return ifa; return NULL; } @@ -224,7 +224,7 @@ px_pos_to_ifa(struct ospf_area *oa, int pos) { struct ospf_iface *ifa; WALK_LIST(ifa, oa->po->iface_list) - if (pos >= ifa->px_pos_beg && pos < ifa->px_pos_end) + if (ifa->oa == oa && pos >= ifa->px_pos_beg && pos < ifa->px_pos_end) return ifa; return NULL; } -- cgit v1.2.3