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
This commit is contained in:
Francois-Xavier Le Bail 2014-05-05 11:02:52 +02:00
parent 27991a20a8
commit 37117d76c0
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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);