PPP, moved EAP timeouts and max requests default values to opt.h

This commit is contained in:
Sylvain Rochet 2012-12-09 20:40:41 +01:00
parent defef2222a
commit 31d7293b17
2 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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);