diff options
author | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2014-05-05 11:02:52 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2014-05-05 11:02:52 +0200 |
commit | 37117d76c0e5bdb3194c2fec8d880c5f570e9823 (patch) | |
tree | 42c3581c5750e7b1c005de82b7ba6a7422fbce34 | |
parent | 27991a20a82e8dbdfff5cfcf7678ac751c641384 (diff) | |
download | tcpdump-37117d76c0e5bdb3194c2fec8d880c5f570e9823.tar.gz |
print-ether: print 'ethertype IEEE1905.1' instead of 'ethertype Unknown'
not a full decoder, uses default print
reference: http://standards.ieee.org/develop/regauth/ethertype/eth.txt
-rw-r--r-- | ethertype.h | 3 | ||||
-rw-r--r-- | print-ether.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ethertype.h b/ethertype.h index 0388c593..80399173 100644 --- a/ethertype.h +++ b/ethertype.h @@ -181,6 +181,9 @@ #ifndef ETHERTYPE_CFM #define ETHERTYPE_CFM 0x8902 /* 802.1ag */ #endif +#ifndef ETHERTYPE_IEEE1905_1 +#define ETHERTYPE_IEEE1905_1 0x893a /* IEEE 1905.1 */ +#endif #ifndef ETHERTYPE_ISO #define ETHERTYPE_ISO 0xfefe /* nonstandard - used in Cisco HDLC encapsulation */ #endif diff --git a/print-ether.c b/print-ether.c index 366ad14f..0e7777e9 100644 --- a/print-ether.c +++ b/print-ether.c @@ -76,6 +76,7 @@ const struct tok ethertype_values[] = { { ETHERTYPE_GRE_ISO, "GRE-OSI" }, { ETHERTYPE_CFM_OLD, "CFM (old)" }, { ETHERTYPE_CFM, "CFM" }, + { ETHERTYPE_IEEE1905_1, "IEEE1905.1" }, { ETHERTYPE_LLDP, "LLDP" }, { ETHERTYPE_TIPC, "TIPC"}, { ETHERTYPE_GEONET_OLD, "GeoNet (old)"}, @@ -432,6 +433,7 @@ ethertype_print(netdissect_options *ndo, case ETHERTYPE_SCA: case ETHERTYPE_MOPRC: case ETHERTYPE_MOPDL: + case ETHERTYPE_IEEE1905_1: /* default_print for now */ default: return (0); |