diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-03 03:18:54 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-03 03:18:54 +0200 |
commit | b63b1bef96a3a089c5a95b47161dc620a6f82545 (patch) | |
tree | b7f66fb4caa5fef3a4d797539938ba77b72c86e7 /src/neigh.c | |
parent | 48f77c26dcb4a9e8d09e718f1b16e6b97c04d9b9 (diff) | |
download | babel-b63b1bef96a3a089c5a95b47161dc620a6f82545.tar babel-b63b1bef96a3a089c5a95b47161dc620a6f82545.zip |
Add a neighbour packet timeout to prevent new neighbours to be purged right after a route request has been received
Diffstat (limited to 'src/neigh.c')
-rw-r--r-- | src/neigh.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |