From b63b1bef96a3a089c5a95b47161dc620a6f82545 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 3 Aug 2013 03:18:54 +0200 Subject: Add a neighbour packet timeout to prevent new neighbours to be purged right after a route request has been received --- src/neigh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/neigh.c') diff --git a/src/neigh.c b/src/neigh.c index bffbaa4..a114181 100644 --- a/src/neigh.c +++ b/src/neigh.c @@ -36,6 +36,7 @@ gp_babel_neigh_t* gp_babel_neigh_get(gmrf_iface_state_t *iface, const gmrf_addr_ neigh->next = iface->neighbours; neigh->iface = iface; iface->neighbours = neigh; + neigh->last_packet = gmrf_time_unspec; neigh->last_hello = gmrf_time_unspec; neigh->last_ihu = gmrf_time_unspec; neigh->addr = *addr; @@ -106,5 +107,6 @@ uint16_t gp_babel_neigh_get_cost(gmrf_context_t *ctx, const gp_babel_neigh_t *ne } void gp_babel_neigh_reset(gmrf_context_t *ctx, gmrf_iface_state_t *iface, gp_babel_neigh_t *neigh) { - gp_babel_send_route_request(ctx, iface, neigh, NULL); + + //gp_babel_send_route_request(ctx, iface, neigh, NULL); } -- cgit v1.2.3