Ethereal-dev: [Ethereal-dev] Re: PPP CCP support added

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: Tue, 30 Oct 2001 19:21:58 +0900 (JST)
All,

Oops, I made a tiny mistake. Here's a patch. Sorry for the trouble.

Regards,

From: Motonori Shindo <mshindo@xxxxxxxxxxx>
Subject: PPP CCP support added
Date: Mon, 29 Oct 2001 23:52:03 +0900 (JST)

> I have added a PPP CCP (Compression Control Protocol) support. 
> 
> Currently, STAC, MPPC and LZS-DCP are supported. PPP Compressed
> datagram (PPP protocol ID = 0x00fd) support is also added.


Index: packet-ppp.c
===================================================================
RCS file: /cvsroot/ethereal/packet-ppp.c,v
retrieving revision 1.72
diff -u -r1.72 packet-ppp.c
--- packet-ppp.c	2001/10/29 19:48:45	1.72
+++ packet-ppp.c	2001/10/30 10:06:00
@@ -649,8 +649,8 @@
 #define MPPC_SUPPORTED_BITS_C	0x00000001	/* MPPC negotiation */
 #define MPPE_SUPPORTED_BITS_D	0x00000010	/* Obsolete */
 #define MPPE_SUPPORTED_BITS_L	0x00000020	/* 40-bit encryption */
-#define MPPE_SUPPORTED_BITS_S	0x00000040	/* 56-bit encryption */
-#define MPPE_SUPPORTED_BITS_M	0x00000080	/* 128-bit encryption */
+#define MPPE_SUPPORTED_BITS_S	0x00000040	/* 128-bit encryption */
+#define MPPE_SUPPORTED_BITS_M	0x00000080	/* 56-bit encryption */
 #define MPPE_SUPPORTED_BITS_H	0x01000000	/* stateless mode */
 
 static void dissect_ccp_stac_opt(const ip_tcp_opt *optp, tvbuff_t *tvb,
@@ -1317,10 +1317,10 @@
       "40-bit encryption ON", "40-bit encryption OFF"));
   proto_tree_add_text(flags_tree, tvb, offset + 2, 4, "%s",
       decode_boolean_bitfield(supported_bits, MPPE_SUPPORTED_BITS_S, 8*4, 
-      "56-bit encryption ON", "56-bit encryption OFF"));
+      "128-bit encryption ON", "128-bit encryption OFF"));
   proto_tree_add_text(flags_tree, tvb, offset + 2, 4, "%s",
       decode_boolean_bitfield(supported_bits, MPPE_SUPPORTED_BITS_M, 8*4, 
-      "128-bit encryption ON", "128-bit encryption OFF"));
+      "56-bit encryption ON", "56-bit encryption OFF"));
   proto_tree_add_text(flags_tree, tvb, offset + 2, 4, "%s",
       decode_boolean_bitfield(supported_bits, MPPE_SUPPORTED_BITS_H, 8*4, 
       "Stateless mode ON", "Stateless mode OFF"));