X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fpppd.h;h=af73882f2d3a7948784de952fc54ffb12774710b;hp=d682cd171d95e9ba4b53b7074d2b6253e52f40b9;hb=c06b2344fad9696fcc33f6eeaeded08f73a51f46;hpb=308576ede5915924e7e39137239856769da13ea0 diff --git a/pppd/pppd.h b/pppd/pppd.h index d682cd1..af73882 100644 --- a/pppd/pppd.h +++ b/pppd/pppd.h @@ -16,7 +16,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: pppd.h,v 1.9 1995/10/27 03:40:12 paulus Exp $ + * $Id: pppd.h,v 1.10 1995/12/18 03:47:21 paulus Exp $ */ /* @@ -73,6 +73,7 @@ extern int lockflag; /* Create lock file to lock the serial dev */ extern int nodetach; /* Don't detach from controlling tty */ extern char *connector; /* Script to establish physical link */ extern char *disconnector; /* Script to disestablish physical link */ +extern int maxconnect; /* maximum number of seconds for a connection */ extern char user[]; /* Username for PAP */ extern char passwd[]; /* Password for PAP */ extern int auth_required; /* Peer is required to authenticate */ @@ -97,6 +98,28 @@ extern int cryptpap; /* Others' PAP passwords are encrypted */ #define PHASE_NETWORK 3 #define PHASE_TERMINATE 4 +/* + * The following struct gives the addresses of procedures to call + * for a particular protocol. + */ +struct protent { + u_short protocol; /* PPP protocol number */ + void (*init)(); /* Initialization procedure */ + void (*input)(); /* Process a received packet */ + void (*protrej)(); /* Process a received protocol-reject */ + void (*lowerup)(); /* Lower layer has come up */ + void (*lowerdown)(); /* Lower layer has gone down */ + void (*open)(); /* Open the protocol */ + void (*close)(); /* Close the protocol */ + int (*printpkt)(); /* Print a packet in readable form */ + void (*datainput)(); /* Process a received data packet */ + int enabled_flag; /* 0 iff protocol is disabled */ + char *name; /* Text name of protocol */ +}; + +/* Table of pointers to supported protocols */ +extern struct protent *protocols[]; + /* * Prototypes. */