PPP, improved PAP and CHAP timeout/request/maxrequests configuration values

This commit is contained in:
Sylvain Rochet
2012-12-09 20:24:22 +01:00
parent 63459f65fb
commit defef2222a
5 changed files with 26 additions and 5 deletions

View File

@@ -260,6 +260,9 @@ ppp_pcb *ppp_new(void) {
#if CHAP_SUPPORT
pcb->settings.chap_timeout_time = CHAP_DEFTIMEOUT;
pcb->settings.chap_max_transmits = CHAP_DEFTRANSMITS;
#if PPP_SERVER
pcb->settings.chap_rechallenge_time = CHAP_DEFREQTIME;
#endif /* PPP_SERVER */
#endif /* CHAP_SUPPPORT */
pcb->settings.lcp_loopbackfail = LCP_DEFLOOPBACKFAIL;
pcb->settings.lcp_echo_interval = LCP_ECHOINTERVAL;

View File

@@ -144,8 +144,10 @@ static void upap_init(ppp_pcb *pcb) {
#endif /* PPP_SERVER */
pcb->upap.us_id = 0;
pcb->upap.us_timeouttime = UPAP_DEFTIMEOUT;
pcb->upap.us_maxtransmits = 10;
pcb->upap.us_maxtransmits = UPAP_DEFTRANSMITS;
#if PPP_SERVER
pcb->upap.us_reqtimeout = UPAP_DEFREQTIME;
#endif /* PPP_SERVER */
}