]> git.ozlabs.org Git - ppp.git/commitdiff
extend protocol table
authorPaul Mackerras <paulus@samba.org>
Mon, 18 Dec 1995 03:46:50 +0000 (03:46 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 18 Dec 1995 03:46:50 +0000 (03:46 +0000)
pppd/chap.c
pppd/chap.h
pppd/upap.c
pppd/upap.h

index d72c36d4a9896e964e97ddd13c6e8a72e0b3baad..d192fe618d39d856ae026b33c8439326f851c567 100644 (file)
@@ -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));
index 44b08f2e205f07f6a23aefa011fc4b55fbb729c9..36bad2b6414ef8818bd1d00e1b0a2806530e666b 100644 (file)
@@ -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__ */
index aed4a7b0e1a5643507af9267a0667368cec55555..bf5ee6a5465fb7fee08461642aec595204e2fd0f 100644 (file)
@@ -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));
index 8b1501964ad29114f5da478937d34047aa873e92..a8987ad097ba0d8b4536cdd54174797b38ef7e23 100644 (file)
@@ -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;