summaryrefslogtreecommitdiffstats
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-30 13:31:05 +0200
committerOndrej Filip <feela@network.cz>2000-04-30 13:31:05 +0200
commitc6c56264361e102691fe42134ab585f631f83898 (patch)
tree6636ad67900ebf8e5c21c4be5c023e2e0df7e7ca /proto/ospf/neighbor.c
parente80e9d0da5d737b7f6e65358067f62a6ac85f4fe (diff)
downloadbird-c6c56264361e102691fe42134ab585f631f83898.tar
bird-c6c56264361e102691fe42134ab585f631f83898.zip
Sync with nest's rt table and some minor improvements.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r--proto/ospf/neighbor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 9f3f268..4a450c1 100644
--- a/proto/ospf/neighbor.c
+++ b/proto/ospf/neighbor.c
@@ -368,6 +368,18 @@ find_neigh(struct ospf_iface *ifa, u32 rid)
return NULL;
}
+struct ospf_neighbor *
+find_neigh_noifa(struct proto_ospf *po, u32 rid)
+{
+ struct ospf_neighbor *n;
+ struct ospf_iface *ifa;
+
+ WALK_LIST (ifa, po->iface_list)
+ if((n=find_neigh(ifa, rid))!=NULL)
+ return n;
+ return NULL;
+}
+
struct ospf_area *
ospf_find_area(struct proto_ospf *po, u32 aid)
{