X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fpppd.h;h=fcd170ddcb1b0a8bb6c51e6d4325ed88663e134f;hb=35c1597839e4cb57f81119576efd4bd5a376ddc4;hp=c5ea8b61a1c9da9f69d10e80879b37143c3ad13a;hpb=0b63a24d54ba4708c88e31bdd74b0145956c1478;p=ppp.git diff --git a/pppd/pppd.h b/pppd/pppd.h index c5ea8b6..fcd170d 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.1 1993/11/11 03:54:25 paulus Exp $ + * $Id: pppd.h,v 1.2 1994/04/18 04:08:41 paulus Exp $ */ /* @@ -39,6 +39,9 @@ #define MAXNAMELEN 256 /* max length of hostname or name for auth */ #define MAXSECRETLEN 256 /* max length of password or secret */ +/* + * Global variables. + */ extern int debug; /* Debug flag */ extern int ifunit; /* Interface unit number */ extern char ifname[]; /* Interface name */ @@ -46,7 +49,20 @@ extern int fd; /* Device file descriptor */ extern int s; /* socket descriptor */ extern char hostname[]; /* hostname */ extern u_char outpacket_buf[]; /* buffer for outgoing packets */ +extern int phase; /* See values below */ +/* + * Values for phase. + */ +#define PHASE_DEAD 0 +#define PHASE_ESTABLISH 1 +#define PHASE_AUTHENTICATE 2 +#define PHASE_NETWORK 3 +#define PHASE_TERMINATE 4 + +/* + * Prototypes. + */ void quit __ARGS((void)); /* Cleanup and exit */ void timeout __ARGS((void (*)(), caddr_t, int)); /* Look-alike of kernel's timeout() */