Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiyuu Nobori <da.git@softether.co.jp>2017-10-18 10:37:02 +0300
committerGitHub <noreply@github.com>2017-10-18 10:37:02 +0300
commit8ae035420b4ec73f1285f4059e68aef6cbad92c4 (patch)
tree00e63e7c3cf9eabc1ff484c6760a2dec2ae450d2
parent270cd9c17e870e4aa220ddf452a1a4ad1f37918b (diff)
parenta5425bcb4e083f6832b5a654ccdc691129859f64 (diff)
Merge pull request #282 from NoahO/NoahO-PPP-patch
Stop Radius Delay from counting to next_resend
-rw-r--r--src/Cedar/IPsec_PPP.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Cedar/IPsec_PPP.c b/src/Cedar/IPsec_PPP.c
index 562b187e..3dc9f24b 100644
--- a/src/Cedar/IPsec_PPP.c
+++ b/src/Cedar/IPsec_PPP.c
@@ -1749,8 +1749,12 @@ PPP_PACKET *PPPRecvResponsePacket(PPP_SESSION *p, PPP_PACKET *req, USHORT expect
if (pp->IsControl && PPP_CODE_IS_REQUEST(pp->Protocol, pp->Lcp->Code))
{
+ // Record current resend because next steps may take a while
+ UINT64 currentresend = next_resend - now;
// Process when the received packet is a request packet
response = PPPProcessRequestPacket(p, pp);
+ // Increase next resend because this may have taken a while
+ next_resend = Tick64() + currentresend;
FreePPPPacket(pp);
if (response == NULL)