added ETHERTYPE_PROFINET

svn path=/trunk/; revision=8982
This commit is contained in:
Ulf Lamping 2003-11-17 18:23:34 +00:00
parent 02a954efe3
commit 1a209c1d3e
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/* etypes.h
* Defines ethernet packet types, similar to tcpdump's ethertype.h
*
* $Id: etypes.h,v 1.35 2003/10/08 06:44:15 guy Exp $
* $Id: etypes.h,v 1.36 2003/11/17 18:23:34 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -42,6 +42,7 @@
* RFCs 894, 1042, 826
* tcpdump's ethertype.h
* http://www.cavebear.com/CaveBear/Ethernet/
* http://standards.ieee.org/regauth/ethertype/type-pub.html
*/
#ifndef ETHERTYPE_VINES_IP
@ -199,6 +200,10 @@
#define ETHERTYPE_EAPOL 0x888e /* 802.1x Authentication */
#endif
#ifndef ETHERTYPE_PROFINET
#define ETHERTYPE_PROFINET 0x8892 /* PROFIBUS PROFInet protocol */
#endif
#ifndef ETHERTYPE_HYPERSCSI
#define ETHERTYPE_HYPERSCSI 0x889A /* HyperSCSI */
#endif

View File

@ -1,7 +1,7 @@
/* ethertype.c
* Routines for calling the right protocol for the ethertype.
*
* $Id: packet-ethertype.c,v 1.39 2003/10/08 06:44:15 guy Exp $
* $Id: packet-ethertype.c,v 1.40 2003/11/17 18:23:34 ulfl Exp $
*
* Gilbert Ramirez <gram@alumni.rice.edu>
*
@ -83,6 +83,7 @@ const value_string etype_vals[] = {
{ETHERTYPE_CGMP, "Cisco Group Management Protocol" },
{ETHERTYPE_SLOW_PROTOCOLS, "Slow Protocols" },
{ETHERTYPE_RTNET, "RTNET Protocol" },
{ETHERTYPE_PROFINET, "PROFInet" },
/*
* NDISWAN on Windows translates Ethernet frames from higher-level