From 8e132d8293e3b70813de428f9b7ca6d7bd215ee0 Mon Sep 17 00:00:00 2001 From: sagar Date: Mon, 28 Jul 2025 18:01:33 +0000 Subject: [PATCH] increase PPP (l2tp) timeouts for better connection --- patches/simplify_l2tp_auth.patch | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/patches/simplify_l2tp_auth.patch b/patches/simplify_l2tp_auth.patch index 370b518..d871b75 100644 --- a/patches/simplify_l2tp_auth.patch +++ b/patches/simplify_l2tp_auth.patch @@ -33,10 +33,10 @@ index e9908e0..120a65b 100644 } } diff --git a/src/Cedar/Proto_PPP.h b/src/Cedar/Proto_PPP.h -index 1278fbc..d95d26d 100644 +index 1278fbc..20500cc 100644 --- a/src/Cedar/Proto_PPP.h +++ b/src/Cedar/Proto_PPP.h -@@ -32,7 +32,7 @@ +@@ -32,18 +32,18 @@ #define PPP_CODE_IS_REQUEST(protocol, c) ((((protocol) == PPP_PROTOCOL_LCP || (protocol) == PPP_PROTOCOL_IPCP || (protocol) == PPP_PROTOCOL_IPV6CP) && PPP_LCP_CODE_IS_REQUEST(c)) || (((protocol) == PPP_PROTOCOL_PAP) && PPP_PAP_CODE_IS_REQUEST(c)) || (((protocol) == PPP_PROTOCOL_CHAP) && PPP_CHAP_CODE_IS_REQUEST(c)) || (((protocol) == PPP_PROTOCOL_EAP) && PPP_EAP_CODE_IS_REQUEST(c))) #define PPP_CODE_IS_WITH_OPTION_LIST(protocol, c) ((((protocol) == PPP_PROTOCOL_LCP || (protocol) == PPP_PROTOCOL_IPCP || (protocol) == PPP_PROTOCOL_IPV6CP) && PPP_LCP_CODE_IS_WITH_OPTION_LIST(c)) || false) @@ -45,3 +45,16 @@ index 1278fbc..d95d26d 100644 #define PPP_STATUS_IS_UNAVAILABLE(c) ((c) == PPP_STATUS_FAIL || (c) == PPP_STATUS_AUTH_FAIL || (c) == PPP_STATUS_CLOSING || (c) == PPP_STATUS_CLOSING_WAIT || (c) == PPP_STATUS_CLOSED) + //// Constants + + // Time-out value +-#define PPP_PACKET_RECV_TIMEOUT (15 * 1000) // Timeout until the next packet is received (3/4 of default policy) ++#define PPP_PACKET_RECV_TIMEOUT (90 * 1000) // Timeout until the next packet is received (3/4 of default policy) + #define PPP_PACKET_RESEND_INTERVAL (3 * 1000) // Retransmission interval of the last packet + #define PPP_TERMINATE_TIMEOUT 2000 // Timeout value to complete disconnection after requesting to disconnect in the PPP + #define PPP_ECHO_SEND_INTERVAL 4792 // Transmission interval of PPP Echo Request +-#define PPP_DATA_TIMEOUT (20 * 1000) // Communication time-out (from default policy) ++#define PPP_DATA_TIMEOUT (120 * 1000) // Communication time-out (from default policy) + + // MRU + #define PPP_MRU_DEFAULT 1500 // Default value