diff options
Diffstat (limited to 'libexec/pppd/lcp.h')
-rw-r--r-- | libexec/pppd/lcp.h | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/libexec/pppd/lcp.h b/libexec/pppd/lcp.h index d4db5344a925..3bcb59bcb73e 100644 --- a/libexec/pppd/lcp.h +++ b/libexec/pppd/lcp.h @@ -15,6 +15,8 @@ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id: lcp.h,v 1.2 1994/03/30 09:31:32 jkh Exp $ */ /* @@ -23,9 +25,9 @@ #define CI_MRU 1 /* Maximum Receive Unit */ #define CI_ASYNCMAP 2 /* Async Control Character Map */ #define CI_AUTHTYPE 3 /* Authentication Type */ -#define CI_NOTDEFINED 4 /* not defined (used to be Encryption Type) */ +#define CI_QUALITY 4 /* Quality Protocol */ #define CI_MAGICNUMBER 5 /* Magic Number */ -#define CI_KEEPALIVE 6 /* Keep Alive Parameters */ +#define CI_KEEPALIVE 6 /* Keep Alive Parameters - OBSOLETE */ #define CI_PCOMPRESSION 7 /* Protocol Field Compression */ #define CI_ACCOMPRESSION 8 /* Address/Control Field Compression */ @@ -34,21 +36,23 @@ * The state of options is described by an lcp_options structure. */ typedef struct lcp_options { - int passive : 1; /* Passives vs. active open */ + int passive : 1; /* Don't die if we don't get a response */ + int silent : 1; /* Wait for the other end to start first */ int restart : 1; /* Restart vs. exit after close */ int neg_mru : 1; /* Negotiate the MRU? */ - u_short mru; /* Value of MRU */ - int neg_asyncmap : 1; /* Async map? */ - u_long asyncmap; - int neg_upap : 1; /* UPAP authentication? */ - int neg_chap : 1; /* CHAP authentication? */ - char chap_mdtype; /* which MD type */ - char chap_callback; /* callback ? */ - int neg_magicnumber : 1; /* Magic number? */ - u_long magicnumber; - int numloops; /* Number loops during magic number negot. */ + int neg_asyncmap : 1; /* Negotiate the async map? */ + int neg_upap : 1; /* Ask for UPAP authentication? */ + int neg_chap : 1; /* Ask for CHAP authentication? */ + int neg_magicnumber : 1; /* Ask for magic number? */ int neg_pcompression : 1; /* HDLC Protocol Field Compression? */ int neg_accompression : 1; /* HDLC Address/Control Field Compression? */ + int neg_lqr : 1; /* Negotiate use of Link Quality Reports */ + u_short mru; /* Value of MRU */ + char chap_mdtype; /* which MD type (hashing algorithm) */ + u_long asyncmap; /* Value of async map */ + u_long magicnumber; + int numloops; /* Number of loops during magic number neg. */ + u_long lqr_period; /* Reporting period for link quality */ } lcp_options; extern fsm lcp_fsm[]; @@ -59,13 +63,16 @@ extern lcp_options lcp_hisoptions[]; #define DEFMRU 1500 /* Try for this */ #define MINMRU 128 /* No MRUs below this */ +#define MAXMRU 16384 /* Normally limit MRU to this */ void lcp_init __ARGS((int)); -void lcp_activeopen __ARGS((int)); -void lcp_passiveopen __ARGS((int)); +void lcp_open __ARGS((int)); void lcp_close __ARGS((int)); void lcp_lowerup __ARGS((int)); void lcp_lowerdown __ARGS((int)); void lcp_input __ARGS((int, u_char *, int)); void lcp_protrej __ARGS((int)); void lcp_sprotrej __ARGS((int, u_char *, int)); + +extern int lcp_warnloops; /* Warn about a loopback this often */ +#define DEFWARNLOOPS 10 /* Default value for above */ |