[PATCH] P2P: Reduce peer expiration age to 60 sec and allow customization

Dmitry Shmidt dimitrysh at google.com
Fri Jan 17 13:58:50 EST 2014


Signed-off-by: Dmitry Shmidt <dimitrysh at google.com>
---
 src/p2p/p2p.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index 138ba16..f2aa971 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -41,7 +41,9 @@ static void p2p_scan_timeout(void *eloop_ctx, void *timeout_ctx);
  * P2P_PEER_EXPIRATION_AGE - Number of seconds after which inactive peer
  * entries will be removed
  */
-#define P2P_PEER_EXPIRATION_AGE 300
+#ifndef P2P_PEER_EXPIRATION_AGE
+#define P2P_PEER_EXPIRATION_AGE 60
+#endif
 
 #define P2P_PEER_EXPIRATION_INTERVAL (P2P_PEER_EXPIRATION_AGE / 2)
 
-- 
1.8.5.2



More information about the HostAP mailing list