mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
PPP, improved PAP and CHAP timeout/request/maxrequests configuration values
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user