Skip to content
Snippets Groups Projects
Commit 9008579b authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Fixes broken multi-area OSPF.

parent c49490f8
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment