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/babel.h | |
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/babel.h')
-rw-r--r-- | src/babel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/babel.h b/src/babel.h index 0b0b4d4..625b570 100644 --- a/src/babel.h +++ b/src/babel.h @@ -45,6 +45,7 @@ #define GP_BABEL_UPDATE_REQUEST_TIMEOUT(interval) ((interval)*13/4) /* 3.25 intervals */ #define GP_BABEL_MAINTENANCE_INTERVAL GP_BABEL_HELLO_INTERVAL +#define GP_BABEL_NEIGH_PACKET_TIMEOUT 6000 #define GP_BABEL_SEQNO_REQ_HOP_LIMIT 127 @@ -75,6 +76,7 @@ struct gp_babel_neigh { gp_babel_neigh_t *next; unsigned ref; + gmrf_time_t last_packet; gmrf_iface_state_t *iface; gmrf_addr_t addr; |