Ethereal-users: Re: [ethereal-users] Monitoring Linux-X.25

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Wed, 12 Jan 2000 20:35:10 -0800
> To get it to handle X.25-over-Ethernet:

...or just apply the attached patch (which is a patch to Ethereal
0.8.1), (re)build Ethereal, and try it.

I'm assuming here that X.25-over-Ethernet is just like X.25-over-LAPB,
i.e. that the payload of an X.25-over-Ethernet (or
X.25-over-encapsulated-Ethernet-LLC) packet being an X.25 packet just as
the payload of an X.25-over-LAPB packet is an X.25 packet.

You may have to debug this; if so, please send all changes to us, so
that we can incorporate them into the standard Ethereal code base.
*** etypes.h.dist	Thu Nov 25 20:52:36 1999
--- etypes.h	Wed Jan 12 20:26:22 2000
***************
*** 57,62 ****
--- 57,66 ----
  #define ETHERTYPE_ARP 0x0806
  #endif
  
+ #ifndef ETHERTYPE_X25L3
+ #define ETHERTYPE_X25L3 0x0805
+ #endif
+ 
  #ifndef ETHERTYPE_REVARP
  #define ETHERTYPE_REVARP 0x8035
  #endif
*** ethertype.c.dist	Sun Dec  5 12:50:19 1999
--- ethertype.c	Wed Jan 12 20:26:06 2000
***************
*** 41,46 ****
--- 41,47 ----
  const value_string etype_vals[] = {
      {ETHERTYPE_IP,     "IP"             },
      {ETHERTYPE_IPv6,   "IPv6"           },
+     {ETHERTYPE_X25L3,  "X.25 Layer 3"   },
      {ETHERTYPE_ARP,    "ARP"            },
      {ETHERTYPE_REVARP, "RARP"           },
      {ETHERTYPE_ATALK,  "Appletalk"      },
***************
*** 89,94 ****
--- 90,98 ----
        break;
      case ETHERTYPE_IPv6:
        dissect_ipv6(pd, offset, fd, tree);
+       break;
+     case ETHERTYPE_X25L3:
+       dissect_x25(pd, offset, fd, tree);
        break;
      case ETHERTYPE_ARP:
        dissect_arp(pd, offset, fd, tree);