From e971fbd059bf01603bfd63ea0b32e3745cf95a82 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Mon, 18 Dec 1995 03:46:50 +0000 Subject: [PATCH] extend protocol table --- pppd/chap.c | 8 +++++++- pppd/chap.h | 4 +++- pppd/upap.c | 8 ++++++-- pppd/upap.h | 4 +++- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/pppd/chap.c b/pppd/chap.c index d72c36d..d192fe6 100644 --- a/pppd/chap.c +++ b/pppd/chap.c @@ -19,7 +19,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: chap.c,v 1.8 1995/07/04 12:32:26 paulus Exp $"; +static char rcsid[] = "$Id: chap.c,v 1.9 1995/12/18 03:46:19 paulus Exp $"; #endif /* @@ -36,6 +36,12 @@ static char rcsid[] = "$Id: chap.c,v 1.8 1995/07/04 12:32:26 paulus Exp $"; #include "chap.h" #include "md5.h" +struct protent chap_protent = { + PPP_CHAP, ChapInit, ChapInput, ChapProtocolReject, + ChapLowerUp, ChapLowerDown, NULL, NULL, + ChapPrintPkt, NULL, 1, "CHAP" +}; + chap_state chap[NUM_PPP]; /* CHAP state; one for each unit */ static void ChapChallengeTimeout __P((caddr_t)); diff --git a/pppd/chap.h b/pppd/chap.h index 44b08f2..36bad2b 100644 --- a/pppd/chap.h +++ b/pppd/chap.h @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: chap.h,v 1.3 1994/09/21 06:47:37 paulus Exp $ + * $Id: chap.h,v 1.4 1995/12/18 03:46:21 paulus Exp $ */ #ifndef __CHAP_INCLUDE__ @@ -108,5 +108,7 @@ void ChapProtocolReject __P((int)); int ChapPrintPkt __P((u_char *, int, void (*) __P((void *, char *, ...)), void *)); +extern struct protent chap_protent; + #define __CHAP_INCLUDE__ #endif /* __CHAP_INCLUDE__ */ diff --git a/pppd/upap.c b/pppd/upap.c index aed4a7b..bf5ee6a 100644 --- a/pppd/upap.c +++ b/pppd/upap.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: upap.c,v 1.6 1995/06/12 12:02:24 paulus Exp $"; +static char rcsid[] = "$Id: upap.c,v 1.7 1995/12/18 03:46:48 paulus Exp $"; #endif /* @@ -34,10 +34,14 @@ static char rcsid[] = "$Id: upap.c,v 1.6 1995/06/12 12:02:24 paulus Exp $"; #include "pppd.h" #include "upap.h" +struct protent pap_protent = { + PPP_PAP, upap_init, upap_input, upap_protrej, + upap_lowerup, upap_lowerdown, NULL, NULL, + upap_printpkt, NULL, 1, "PAP" +}; upap_state upap[NUM_PPP]; /* UPAP state; one for each unit */ - static void upap_timeout __P((caddr_t)); static void upap_reqtimeout __P((caddr_t)); static void upap_rauthreq __P((upap_state *, u_char *, int, int)); diff --git a/pppd/upap.h b/pppd/upap.h index 8b15019..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.4 1995/06/12 12:02:25 paulus Exp $ + * $Id: upap.h,v 1.5 1995/12/18 03:46:50 paulus Exp $ */ /* @@ -91,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; -- 2.39.2