diff options
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r-- | proto/ospf/neighbor.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index 9f3f2681..4a450c1d 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) { |