increase PPP (l2tp) timeouts for better connection
This commit is contained in:
parent
b709c5de83
commit
8e132d8293
1 changed files with 15 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue