From c6c56264361e102691fe42134ab585f631f83898 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 30 Apr 2000 11:31:05 +0000 Subject: Sync with nest's rt table and some minor improvements. --- proto/ospf/neighbor.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'proto/ospf/neighbor.c') 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) { -- cgit v1.2.3