Ethereal-dev: [Ethereal-dev] displaying OSI packets inside GRE tunnels

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

From: Hannes Gredler <hannes@xxxxxxxxxxx>
Date: Thu, 7 Nov 2002 11:01:43 +0100
hi ethereal developers,

pls find a patch that shows now OSI in GRE tunneled packets
that the payload is OSI and not "unknown"; the OSI
dissector has already been registered with the GRE dissector;
so this times just display cosmetics ;-)

/hannes
Index: greproto.h
===================================================================
RCS file: /cvsroot/ethereal/greproto.h,v
retrieving revision 1.3
diff -u -r1.3 greproto.h
--- greproto.h	2002/08/28 21:00:06	1.3
+++ greproto.h	2002/11/05 18:39:11
@@ -33,3 +33,4 @@
 
 #define GRE_WCCP	0x883E
 #define GRE_FR		0x6559
+#define GRE_OSI         0x00FE
Index: packet-gre.c
===================================================================
RCS file: /cvsroot/ethereal/packet-gre.c,v
retrieving revision 1.52
diff -u -r1.52 packet-gre.c
--- packet-gre.c	2002/08/28 21:00:13	1.52
+++ packet-gre.c	2002/11/05 18:39:13
@@ -71,6 +71,7 @@
 static const value_string typevals[] = {
 	{ ETHERTYPE_PPP,       "PPP" },
 	{ ETHERTYPE_IP,        "IP" },
+	{ GRE_OSI,             "OSI"},
 	{ GRE_WCCP,            "WCCP"},
 	{ ETHERTYPE_IPX,       "IPX"},
 	{ ETHERTYPE_ETHBRIDGE, "Transparent Ethernet bridging" },