mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-28 08:37:28 +00:00
PPP, moved EAP timeouts and max requests default values to opt.h
This commit is contained in:
parent
defef2222a
commit
31d7293b17
@ -1912,6 +1912,24 @@
|
||||
#endif
|
||||
#endif /* PPP_SERVER */
|
||||
|
||||
#ifndef EAP_DEFREQTIME
|
||||
#define EAP_DEFREQTIME 20 /* Time to wait for peer request */
|
||||
#endif
|
||||
|
||||
#ifndef EAP_DEFALLOWREQ
|
||||
#define EAP_DEFALLOWREQ 20 /* max # times to accept requests */
|
||||
#endif
|
||||
|
||||
#if PPP_SERVER
|
||||
#ifndef EAP_DEFTIMEOUT
|
||||
#define EAP_DEFTIMEOUT 6 /* Timeout (seconds) for rexmit */
|
||||
#endif
|
||||
|
||||
#ifndef EAP_DEFTRANSMITS
|
||||
#define EAP_DEFTRANSMITS 10 /* max # times to transmit */
|
||||
#endif
|
||||
#endif /* PPP_SERVER */
|
||||
|
||||
/* Default number of times we receive our magic number from the peer
|
||||
before deciding the link is looped-back. */
|
||||
#ifndef LCP_DEFLOOPBACKFAIL
|
||||
|
@ -149,10 +149,12 @@ typedef struct eap_state {
|
||||
/*
|
||||
* Timeouts.
|
||||
*/
|
||||
#if 0 /* moved to opt.h */
|
||||
#define EAP_DEFTIMEOUT 3 /* Timeout (seconds) for rexmit */
|
||||
#define EAP_DEFTRANSMITS 10 /* max # times to transmit */
|
||||
#define EAP_DEFREQTIME 20 /* Time to wait for peer request */
|
||||
#define EAP_DEFALLOWREQ 20 /* max # times to accept requests */
|
||||
#endif /* moved to opt.h */
|
||||
|
||||
void eap_authwithpeer(ppp_pcb *pcb, char *localname);
|
||||
void eap_authpeer(ppp_pcb *pcb, char *localname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user