summaryrefslogtreecommitdiffstats
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-04-11 12:22:47 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-04-11 12:22:47 +0200
commit6e8067609673afef9eb9e786f4e43a73a3b544f0 (patch)
tree1cdd206ace2b3c844fe72c8a99da9cf2bea30c22 /proto/ospf/neighbor.c
parent7969ea3b41db05294c78a5e0ec0bd3c29ae8c549 (diff)
downloadbird-6e8067609673afef9eb9e786f4e43a73a3b544f0.tar
bird-6e8067609673afef9eb9e786f4e43a73a3b544f0.zip
Fixes next hop calculation on NBMA and parallel PTP links.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r--proto/ospf/neighbor.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 69c5880..2563abd 100644
--- a/proto/ospf/neighbor.c
+++ b/proto/ospf/neighbor.c
@@ -536,27 +536,6 @@ find_neigh(struct ospf_iface *ifa, u32 rid)
return NULL;
}
-
-/* Find a closest neighbor which is at least 2-Way */
-struct ospf_neighbor *
-find_neigh_noifa(struct proto_ospf *po, u32 rid)
-{
- struct ospf_neighbor *n = NULL, *m;
- struct ospf_iface *ifa;
-
- WALK_LIST(ifa, po->iface_list) if ((m = find_neigh(ifa, rid)) != NULL)
- {
- if (m->state >= NEIGHBOR_2WAY)
- {
- if (n == NULL)
- n = m;
- else if (m->ifa->cost < n->ifa->cost)
- n = m;
- }
- }
- return n;
-}
-
struct ospf_area *
ospf_find_area(struct proto_ospf *po, u32 aid)
{