X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fupap.h;h=a8987ad097ba0d8b4536cdd54174797b38ef7e23;hp=4dfdeaf91996439e4dfc2376d5b63657af2299ba;hb=88890fc13f9b346db647c882b376926686177112;hpb=a3396b002507d72b3e1f1169bd02ae018539654b diff --git a/pppd/upap.h b/pppd/upap.h index 4dfdeaf..a8987ad 100644 --- a/pppd/upap.h +++ b/pppd/upap.h @@ -16,7 +16,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: upap.h,v 1.3 1994/09/21 06:47:37 paulus Exp $ + * $Id: upap.h,v 1.5 1995/12/18 03:46:50 paulus Exp $ */ /* @@ -45,9 +45,10 @@ typedef struct upap_state { int us_clientstate; /* Client state */ int us_serverstate; /* Server state */ u_char us_id; /* Current id */ - int us_timeouttime; /* Timeout time in milliseconds */ + int us_timeouttime; /* Timeout (seconds) for auth-req retrans. */ int us_transmits; /* Number of auth-reqs sent */ int us_maxtransmits; /* Maximum number of auth-reqs to send */ + int us_reqtimeout; /* Time to wait for auth-req from peer */ } upap_state; @@ -75,7 +76,8 @@ typedef struct upap_state { /* * Timeouts. */ -#define UPAP_DEFTIMEOUT 3 /* Timeout time in seconds */ +#define UPAP_DEFTIMEOUT 3 /* Timeout (seconds) for retransmitting req */ +#define UPAP_DEFREQTIME 30 /* Time to wait for auth-req from peer */ extern upap_state upap[]; @@ -89,3 +91,5 @@ void upap_input __P((int, u_char *, int)); void upap_protrej __P((int)); int upap_printpkt __P((u_char *, int, void (*) __P((void *, char *, ...)), void *)); + +extern struct protent pap_protent;