tcpdump mailing list archives
[Patch] GRE Transparent Ethernet Bridge
From: William J Hulley <bill.hulley () gmail com>
Date: Tue, 24 Feb 2009 17:26:51 +0000
Hi, Try again, the attachment seems to have been dropped somewhere last time. Find attached a small patch to print ethernet frames encapsulated in GRE using the Transparent Ethernet Bridge ethertype (0x6558), as used in a recent addition to the Linux kernel, gretap. -- bill diff -cr tcpdump-4.0.0/ethertype.h tcpdump-4.0.0.patch/ethertype.h *** tcpdump-4.0.0/ethertype.h 2008-09-01 03:44:13.000000000 +0100--- tcpdump-4.0.0.patch/ethertype.h 2009-02-24 14:24:10.000000000 +0000
*************** *** 76,81 **** --- 76,84 ---- #ifndef ETHERTYPE_SCA #define ETHERTYPE_SCA 0x6007 #endif + #ifndef ETHERTYPE_TEB + #define ETHERTYPE_TEB 0x6558 + #endif #ifndef ETHERTYPE_LANBRIDGE #define ETHERTYPE_LANBRIDGE 0x8038 #endif diff -cr tcpdump-4.0.0/print-ether.c tcpdump-4.0.0.patch/print-ether.c *** tcpdump-4.0.0/print-ether.c 2008-09-01 03:44:22.000000000 +0100--- tcpdump-4.0.0.patch/print-ether.c 2009-02-24 14:24:36.000000000 +0000
*************** *** 56,61 **** --- 56,62 ---- { ETHERTYPE_DN, "DN" }, { ETHERTYPE_LAT, "LAT" }, { ETHERTYPE_SCA, "SCA" }, + { ETHERTYPE_TEB, "TEB" }, { ETHERTYPE_LANBRIDGE, "Lanbridge" }, { ETHERTYPE_DECDNS, "DEC DNS" }, { ETHERTYPE_DECDTS, "DEC DTS" }, diff -cr tcpdump-4.0.0/print-gre.c tcpdump-4.0.0.patch/print-gre.c *** tcpdump-4.0.0/print-gre.c 2008-09-01 03:44:23.000000000 +0100--- tcpdump-4.0.0.patch/print-gre.c 2009-02-24 14:09:18.000000000 +0000
*************** *** 225,230 **** --- 225,233 ---- case ETHERTYPE_GRE_ISO: isoclns_print(bp, len, len); break; + case ETHERTYPE_TEB: + ether_print(bp, len, len); + break; default: printf("gre-proto-0x%x", prot); } -- William J Hulley bill.hulley () gmail com - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- [Patch] GRE Transparent Ethernet Bridge William J Hulley (Feb 24)
- <Possible follow-ups>
- [Patch] GRE Transparent Ethernet Bridge William J Hulley (Feb 24)
- Re: [Patch] GRE Transparent Ethernet Bridge Guy Harris (Feb 26)