summaryrefslogtreecommitdiffstats
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-04 00:31:07 +0200
committerOndrej Filip <feela@network.cz>2000-04-04 00:31:07 +0200
commit8496b2e41a81f8281da0e0c3e4bbb72a57d3bf21 (patch)
treecfd9083a1d32d7c77fd7e26a8eb83c84322ec9ea /proto/ospf/neighbor.c
parent394acced118df7360e480920c65ca260c5b8c44f (diff)
downloadbird-8496b2e41a81f8281da0e0c3e4bbb72a57d3bf21.tar
bird-8496b2e41a81f8281da0e0c3e4bbb72a57d3bf21.zip
Minor change in area list. Now I use MJ's lists.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r--proto/ospf/neighbor.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index b072623..ae415e1 100644
--- a/proto/ospf/neighbor.c
+++ b/proto/ospf/neighbor.c
@@ -354,3 +354,13 @@ find_neigh(struct ospf_iface *ifa, u32 rid)
return NULL;
}
+struct ospf_area *
+ospf_find_area(struct proto_ospf *po, u32 aid)
+{
+ struct ospf_area *oa;
+ WALK_LIST(NODE oa,po->area_list)
+ if(((struct ospf_area *)oa)->areaid==aid) return oa;
+ return NULL;
+}
+
+