From b6d12c009c2416b2454d8674cc9ce7baa43f7048 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Wed, 22 May 2019 22:21:26 +0200 Subject: [PATCH] Lower registration timeout to 1 minute --- n2n.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/n2n.c b/n2n.c index dc3b640..9971fab 100644 --- a/n2n.c +++ b/n2n.c @@ -22,14 +22,8 @@ #include -#if defined(DEBUG) -# define PURGE_REGISTRATION_FREQUENCY 60 -# define REGISTRATION_TIMEOUT 120 -#else /* #if defined(DEBUG) */ -# define PURGE_REGISTRATION_FREQUENCY 60 -# define REGISTRATION_TIMEOUT (60*20) -#endif /* #if defined(DEBUG) */ - +#define PURGE_REGISTRATION_FREQUENCY 30 +#define REGISTRATION_TIMEOUT 60 const uint8_t broadcast_addr[6] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; const uint8_t multicast_addr[6] = { 0x01, 0x00, 0x5E, 0x00, 0x00, 0x00 }; /* First 3 bytes are meaningful */