typedef struct PPP PPP; typedef struct Lcpmsg Lcpmsg; typedef struct Lcpopt Lcpopt; typedef struct Qualpkt Qualpkt; typedef struct Qualstats Qualstats; typedef struct Tcpc Tcpc; typedef uchar Ipaddr[IPaddrlen]; enum { HDLC_frame= 0x7e, HDLC_esc= 0x7d, /* PPP protocol types */ Pip= 0x21, /* internet */ Pvjctcp= 0x2d, /* compressing van jacobson tcp */ Pvjutcp= 0x2f, /* uncompressing van jacobson tcp */ Pcdata= 0xfd, /* compressed datagram */ Pipcp= 0x8021, /* ip control */ Pecp= 0x8053, /* encryption control */ Pccp= 0x80fd, /* compressed datagram control */ Plcp= 0xc021, /* link control */ Ppap= 0xc023, /* password auth. protocol */ Plqm= 0xc025, /* link quality monitoring */ Pchap= 0xc223, /* challenge/response */ /* PPP frame fields */ PPP_addr= 0xff, PPP_ctl= 0x3, PPP_initfcs= 0xffff, PPP_goodfcs= 0xf0b8, /* LCP codes */ Lconfreq= 1, Lconfack= 2, Lconfnak= 3, Lconfrej= 4, Ltermreq= 5, Ltermack= 6, Lcoderej= 7, Lprotorej= 8, Lechoreq= 9, Lechoack= 10, Ldiscard= 11, /* Lcp configure options */ Omtu= 1, Octlmap= 2, Oauth= 3, Oquality= 4, Omagic= 5, Opc= 7, Oac= 8, Obad= 12, /* for testing */ /* authentication protocols */ APmd5= 5, /* lcp flags */ Fmtu= 1<