46#if PPP_SUPPORT && PAP_SUPPORT
60#define UPAP_HEADERLEN 4
74#define UPAPCS_INITIAL 0
75#define UPAPCS_CLOSED 1
76#define UPAPCS_PENDING 2
77#define UPAPCS_AUTHREQ 3
79#define UPAPCS_BADAUTH 5
84#define UPAPSS_INITIAL 0
85#define UPAPSS_CLOSED 1
86#define UPAPSS_PENDING 2
87#define UPAPSS_LISTEN 3
89#define UPAPSS_BADAUTH 5
96#define UPAP_DEFTIMEOUT 3
97#define UPAP_DEFREQTIME 30
104typedef struct upap_state {
107 const char *us_passwd;
119void upap_authwithpeer(ppp_pcb *pcb,
const char *
user,
const char *
password);
121void upap_authpeer(ppp_pcb *pcb);
124extern const struct protent pap_protent;
void user(int argc, const char *argv[])