Ethereal-dev: [ethereal-dev] Patch to dissect IPX over GRE

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

From: Paul Ionescu <ipaul@xxxxxxxxx>
Date: Thu, 18 May 2000 10:13:59 +0300
Included in this e-mail is a patch to correctly dissect IPX traffic
encapsulated in a GRE tunnel.
Can somebody commit it ?

--

Air conditioned. Do _NOT_ open Windows.


Index: ethereal/packet-gre.c
===================================================================
RCS file: /cvsroot/ethereal/packet-gre.c,v
retrieving revision 1.19
diff -u -r1.19 packet-gre.c
--- packet-gre.c	2000/05/11 08:15:09	1.19
+++ packet-gre.c	2000/05/17 11:38:50
@@ -39,6 +39,7 @@
 #include "packet.h"
 #include "packet-ip.h"
 #include "packet-ppp.h"
+#include "packet-ipx.h"
 
 static int proto_gre = -1;
 static int hf_gre_proto = -1;
@@ -61,6 +62,7 @@
 #define GRE_PPP		0x880B
 #define	GRE_IP		0x0800
 #define GRE_WCCP	0x883E
+#define GRE_IPX		0x8137
 
 static void add_flags_and_ver(proto_tree *, guint16, int, int);
 
@@ -68,6 +70,7 @@
 	{ GRE_PPP,  "PPP" },
 	{ GRE_IP,   "IP" },
 	{ GRE_WCCP, "WCCP"},
+	{ GRE_IPX,  "IPX"},
 	{ 0,        NULL  }
 };
 
@@ -213,6 +216,9 @@
           offset += 4;
         }
         dissect_ip(pd, offset, fd, tree);
+        break;
+      case GRE_IPX:
+        dissect_ipx(pd, offset, fd, tree);
         break;
       default:
 	dissect_data(pd, offset, fd, gre_tree);