PPP, moved PAP configuration to ppp_settings struct

This commit is contained in:
Sylvain Rochet
2012-12-09 21:22:19 +01:00
parent 31d7293b17
commit c719ba7bf3
4 changed files with 23 additions and 18 deletions

View File

@@ -224,6 +224,14 @@ typedef struct ppp_settings_s {
char remote_name[MAXNAMELEN + 1]; /* Peer's name for authentication */
#endif /* PPP_REMOTENAME */
#if PAP_SUPPORT
u8_t pap_timeout_time; /* Timeout (seconds) for auth-req retrans. */
u8_t pap_max_transmits; /* Number of auth-reqs sent */
#if PPP_SERVER
u8_t pap_req_timeout; /* Time to wait for auth-req from peer */
#endif /* PPP_SERVER */
#endif /* PAP_SUPPPORT */
#if CHAP_SUPPORT
u8_t chap_timeout_time; /* Timeout (seconds) for retransmitting req */
u8_t chap_max_transmits; /* max # times to send challenge */

View File

@@ -107,12 +107,7 @@ typedef struct upap_state {
u8_t us_serverstate; /* Server state */
#endif /* PPP_SERVER */
u8_t us_id; /* Current id */
u8_t us_timeouttime; /* Timeout (seconds) for auth-req retrans. */
u8_t us_transmits; /* Number of auth-reqs sent */
u8_t us_maxtransmits; /* Maximum number of auth-reqs to send */
#if PPP_SERVER
u8_t us_reqtimeout; /* Time to wait for auth-req from peer */
#endif /* PPP_SERVER */
} upap_state;
#endif /* PAP_SUPPORT */