diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-20 23:46:03 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-20 23:46:03 +0200 |
commit | 9008579b97239564e1dcac855cf726fa9ab7dabd (patch) | |
tree | ff0d8719b434842a9ec08be7ef2765aa87deae27 /proto/ospf/rt.c | |
parent | c49490f8c096ef1379f08e7d70cc24f0c28b80ef (diff) |
Fixes broken multi-area OSPF.
Diffstat (limited to 'proto/ospf/rt.c')
-rw-r--r-- | proto/ospf/rt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index 9e3f9d7a..78b1ebec 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; } |