mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-27 03:53:53 +08:00
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:
parent
27991a20a8
commit
37117d76c0
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user