public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: reduce local TT entry timeout to 10 minutes
@ 2012-11-08 21:16 Antonio Quartulli
  2012-11-08 21:16 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: improve local translation table output Antonio Quartulli
  2012-11-13 10:33 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: reduce local TT entry timeout to 10 minutes Marek Lindner
  0 siblings, 2 replies; 4+ messages in thread
From: Antonio Quartulli @ 2012-11-08 21:16 UTC (permalink / raw)
  To: b.a.t.m.a.n

The current timeout is set to one hour. However a client connected to the mesh
network will always generate traffic. In the worst case it will send ARP
requests every 4 or 5 minutes. On the other hand having a long timeout means
storing dead entries for one hour leads to very big trans-tables containing
useless clients.

This patch reduces the timeout to 10 minutes

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
 main.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.h b/main.h
index ec9c5ad..a8138be 100644
--- a/main.h
+++ b/main.h
@@ -41,7 +41,7 @@
  * -> TODO: check influence on BATADV_TQ_LOCAL_WINDOW_SIZE
  */
 #define BATADV_PURGE_TIMEOUT 200000 /* 200 seconds */
-#define BATADV_TT_LOCAL_TIMEOUT 3600000 /* in milliseconds */
+#define BATADV_TT_LOCAL_TIMEOUT 600000 /* in milliseconds */
 #define BATADV_TT_CLIENT_ROAM_TIMEOUT 600000 /* in milliseconds */
 #define BATADV_TT_CLIENT_TEMP_TIMEOUT 600000 /* in milliseconds */
 #define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */
-- 
1.8.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-13 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08 21:16 [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: reduce local TT entry timeout to 10 minutes Antonio Quartulli
2012-11-08 21:16 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: improve local translation table output Antonio Quartulli
2012-11-13 10:42   ` Marek Lindner
2012-11-13 10:33 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: reduce local TT entry timeout to 10 minutes Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox