Ethereal-dev: [Ethereal-dev] PPP patch

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Motonori Shindo <mshindo@xxxxxxxxxxx>
Date: Sun, 05 Aug 2001 14:16:43 +0900 (JST)
Hi,

Here's a simple patch against current cvs repository to support:

 1) Shiva PAP (SPAP) and Extensible Authentication Protocol (EAP)

 2) CBCP negotiation in LCP Callback Operation Field

This is just a start for me. I will work on other parts which is a bit
more complicated.

Regards,

=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
 +----+----+     
 |.. .|    |     Motonori Shindo
 |_~__|    |     
 | .. |~~_~|     Sr. Systems Engineer
 | .  |    |     CoSine Communications Inc.
 +----+----+     
 C o S i n e     e-mail:  mshindo@xxxxxxxxxxxxx 
Communications
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=


Index: ethereal/packet-ppp.c
===================================================================
RCS file: /cvsroot/ethereal/packet-ppp.c,v
retrieving revision 1.68
diff -u -r1.68 packet-ppp.c
--- packet-ppp.c	2001/06/18 02:17:50	1.68
+++ packet-ppp.c	2001/08/05 00:51:58
@@ -122,7 +122,9 @@
 	{PPP_LCP,	"Link Control Protocol" },
 	{PPP_PAP,	"Password Authentication Protocol"  },
 	{PPP_LQR,	"Link Quality Report protocol" },
+	{PPP_SPAP,	"Shiva Password Authentication Protocol" },
 	{PPP_CHAP,	"Cryptographic Handshake Auth. Protocol" },
+	{PPP_EAP,	"Extensible Authentication Protocol" },
 	{PPP_CBCP,	"Callback Control Protocol" },
 	{0,             NULL            }
 };
@@ -829,6 +831,8 @@
 	{2, "Message is location identifier" },
 	{3, "Message is E.164" },
 	{4, "Message is distinguished name" },
+	{5, "unassinged"},
+	{6, "Location is determined during CBCP negotiation" },
 	{0, NULL }
 };
 
Index: ethereal/ppptypes.h
===================================================================
RCS file: /cvsroot/ethereal/ppptypes.h,v
retrieving revision 1.8
diff -u -r1.8 ppptypes.h
--- ppptypes.h	2001/04/16 10:04:30	1.8
+++ ppptypes.h	2001/08/05 00:52:00
@@ -53,7 +53,9 @@
 #define PPP_LCP		0xc021	/* Link Control Protocol */
 #define PPP_PAP		0xc023	/* Password Authentication Protocol */
 #define PPP_LQR		0xc025	/* Link Quality Report protocol */
+#define PPP_SPAP	0xc027	/* Shiva Password Authentication Protocol */
 #define PPP_CHAP	0xc223	/* Cryptographic Handshake Auth. Protocol */
+#define PPP_EAP		0xc227	/* Extensible Authentication Protocol */
 #define PPP_CBCP	0xc029	/* Callback Control Protocol */
 
 #endif /* ppptypes.h */