diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-04-11 12:22:47 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-04-11 12:22:47 +0200 |
commit | 6e8067609673afef9eb9e786f4e43a73a3b544f0 (patch) | |
tree | 1cdd206ace2b3c844fe72c8a99da9cf2bea30c22 /proto/ospf/neighbor.c | |
parent | 7969ea3b41db05294c78a5e0ec0bd3c29ae8c549 (diff) |
Fixes next hop calculation on NBMA and parallel PTP links.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r-- | proto/ospf/neighbor.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index 69c58806..2563abd4 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) { |