Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] Patch to correct a couple of bugs in CRTP decoding.

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

From: Ignacio Goyret <igoyret@xxxxxxxxxx>
Date: Tue, 11 Oct 2005 12:39:43 -0700
Hi,
Attached is a patch to correct a couple of minor issues with
CRTP/ECRTP decoding (RFC 2507/2508/2509/3544):
- Properly decode option to enable ECRTP (it wasn't decoded).
- Use the ipv6 knob to control ipv6 decoding (previously, it
  was using the ipv4 knob).

I used version 0.10.12 as the base for the patch.

Cheers,
-Ignacio Goyret

diff -urp ethereal-0.10.12-orig/epan/dissectors/packet-ppp.c ethereal-0.10.12-patched/epan/dissectors/packet-ppp.c
--- ethereal-0.10.12-orig/epan/dissectors/packet-ppp.c	Tue Jul 26 12:26:40 2005
+++ ethereal-0.10.12-patched/epan/dissectors/packet-ppp.c	Thu Oct  6 16:19:24 2005
@@ -1032,7 +1032,7 @@ static const ip_tcp_opt ipcp_iphc_subopt
 		NULL
 	},
 	{
-		IPCP_IPHC_CRTP,
+		IPCP_IPHC_ECRTP,
 		"Enhanced RTP compression (RFC3545)",
 		NULL,
 		FIXED_LENGTH,
@@ -1419,7 +1419,7 @@ static const ip_tcp_opt ipv6cp_opts[] = 
 	{
 		CI_COMPRESSTYPE,
 		"IPv6 compression",
-		&ett_ipcp_compress_opt,
+		&ett_ipv6cp_compress_opt,
 		VARIABLE_LENGTH,
 		4,
 		dissect_ipcp_compress_opt