warp-vpn

point to point VPN implementation
git clone git://git.2f30.org/warp-vpn
Log | Files | Refs | README

commit 654d3cdc28bff41806b3453b4fd1ea5d98fab250
parent ea41c51a5b7a93ba147663d1439695a927b1f80f
Author: sin <sin@2f30.org>
Date:   Tue, 12 Apr 2016 15:38:26 +0100

rename rcvtimeo to authtimeo

Diffstat:
Mauth.c | 4++--
Mstun.h | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/auth.c b/auth.c @@ -25,7 +25,7 @@ challenge(int netfd) for (;;) { pfd[0].fd = netfd; pfd[0].events = POLLIN; - ret = poll(pfd, 1, RCVTIMEO); + ret = poll(pfd, 1, AUTHTIMEO); if (ret < 0) { logwarn("poll failed"); return -1; @@ -62,7 +62,7 @@ response(int netfd) for (;;) { pfd[0].fd = netfd; pfd[0].events = POLLIN; - ret = poll(pfd, 1, RCVTIMEO); + ret = poll(pfd, 1, AUTHTIMEO); if (ret < 0) { logwarn("poll failed"); return -1; diff --git a/stun.h b/stun.h @@ -1,7 +1,7 @@ #include "arg.h" #define NOPRIVUSER "nobody" -#define RCVTIMEO 250 /* in milliseconds */ +#define AUTHTIMEO 250 /* in milliseconds */ #define RECONNECTTIMEO 60 /* in seconds */ #define HDRLEN 2 #define MAXPAYLOADLEN 1424