summaryrefslogtreecommitdiffstats
path: root/proto/ospf/hello.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-10 14:37:43 +0200
committerOndrej Filip <feela@network.cz>2000-05-10 14:37:43 +0200
commitc7e46aae66861ce282e9b1a0140fa422763094ce (patch)
tree2719cf1b4edaae8a3465f1d278a8dd0ffbd4c715 /proto/ospf/hello.c
parent7f5f44bb9248f05f397617f3874feef26bbb0b0b (diff)
downloadbird-c7e46aae66861ce282e9b1a0140fa422763094ce.tar
bird-c7e46aae66861ce282e9b1a0140fa422763094ce.zip
Destroying of neighbor moved from 'hello' to 'neighbor' and
improved.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r--proto/ospf/hello.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c
index b6e34e2..eb506f4 100644
--- a/proto/ospf/hello.c
+++ b/proto/ospf/hello.c
@@ -238,23 +238,3 @@ wait_timer_hook(timer *timer)
ospf_int_sm(ifa, ISM_WAITF);
}
-/* Neighbor is inactive for a long time. Remove it. */
-void
-neighbor_timer_hook(timer *timer)
-{
- struct ospf_neighbor *n;
- struct ospf_iface *ifa;
- struct proto *p;
-
- n=(struct ospf_neighbor *)timer->data;
- ifa=n->ifa;
- p=(struct proto *)(ifa->proto);
- debug("%s: Inactivity timer fired on interface %s for neighbor %I.\n",
- p->name, ifa->iface->name, n->rid);
- tm_stop(n->inactim);
- rfree(n->inactim);
- rem_node(NODE n);
- mb_free(n);
- debug("%s: Deleting neigbor.\n", p->name);
- /* FIXME: Go on */
-}