PPP, using timeouts values defined in opt.h instead of values defined in PPP headers or statically assigned values

This commit is contained in:
Sylvain Rochet
2012-12-09 18:42:06 +01:00
parent 07e72d2ac8
commit c68e1ceb64
4 changed files with 9 additions and 7 deletions

View File

@@ -152,10 +152,12 @@ typedef struct fsm_callbacks {
/*
* Timeouts.
*/
#if 0 /* moved to opt.h */
#define DEFTIMEOUT 3 /* Timeout time in seconds */
#define DEFMAXTERMREQS 2 /* Maximum Terminate-Request transmissions */
#define DEFMAXCONFREQS 10 /* Maximum Configure-Request transmissions */
#define DEFMAXNAKLOOPS 5 /* Maximum number of nak loops */
#endif /* moved to opt.h */
/*

View File

@@ -90,8 +90,8 @@
*/
#if 0 /* moved to opt.h */
#define UPAP_DEFTIMEOUT 3 /* Timeout (seconds) for retransmitting req */
#endif /* moved to opt.h */
#define UPAP_DEFREQTIME 30 /* Time to wait for auth-req from peer */
#endif /* moved to opt.h */
/*
* Each interface is described by upap structure.