From 8496b2e41a81f8281da0e0c3e4bbb72a57d3bf21 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 3 Apr 2000 22:31:07 +0000 Subject: Minor change in area list. Now I use MJ's lists. --- proto/ospf/neighbor.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'proto/ospf/neighbor.c') 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; +} + + -- cgit v1.2.3