diff options
author | Ondrej Filip <feela@network.cz> | 2000-04-03 22:31:07 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-04-03 22:31:07 +0000 |
commit | 8496b2e41a81f8281da0e0c3e4bbb72a57d3bf21 (patch) | |
tree | cfd9083a1d32d7c77fd7e26a8eb83c84322ec9ea /proto/ospf/neighbor.c | |
parent | 394acced118df7360e480920c65ca260c5b8c44f (diff) |
Minor change in area list. Now I use MJ's lists.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r-- | proto/ospf/neighbor.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index b0726236..ae415e13 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; +} + + |