Ethernet bearing protocol

zhaozj2021-02-16  74

#ifndef __types_h __ # define __etypes_h__

/ * * Maximum length of an IEEE 802.3 frame;. Ethernet type / length values ​​* greater than it are types, Ethernet type / length values ​​less than or * equal to it are lengths * / # define IEEE_802_3_MAX_LEN 1500

#ifndef ethertype_unk # define ethertype_unk 0x0000 # ENDIF

/ * Sourcees: * http://www.iana.org/assignments/ethernet-numbers * TCP / IP illustrate, Volume 1 * RFCS 894, 1042, 826 * TCPDUMP's ethertype.h * http://www.cavebear.com / CAVEBEAR / Ethernet / * http://standards.ieee.org/regause/ethertype/type-pub.html * /

#ifndef ethertype_vines_ip # define ethertype_vines_ip 0x0bad # Endif

#ifndef ethertype_vines_echo # define ethertype_vines_echo 0x0baf # Endif

#ifndef ethertype_train / * * Created by Microsoft Network Monitor As a summary packet. * / # define ethertype_train 0x1984 # Endif

#ifndef ethertype_cgmp # define ethertype_cgmp 0x2001 # ENDIF

#ifndef ethertype_3c_nbp_dgram # define ethertype_3c_nbp_dgram 0x3c07 # ENDIF

#ifndef ethertype_ip # define ethertype_ip 0x0800 # Endif

#ifndef ethertype_x25l3 # define ethertype_x25l3 0x0805 # Endif

#ifndef ethertype_arp # define ethertype_arp 0x0806 # ENDIF

#ifndef ethertype_dec # define ethertype_dec 0x6000 # Endif

#ifndef ethertype_dna_dl # define ethertype_dna_dl 0x6001 # ENDIF

#ifndef ethertype_dna_rc # define EtherTYPE_DNA_RC 0x6002 # ENDIF

#ifndef ethertype_dna_rt # define ethertype_dna_rt 0x6003 # ENDIF

#ifndef ethertype_lat # define ethertype_lat 0x6004 # ENDIF

#ifndef ethertype_dec_diag # define ethertype_dec_diag 0x6005 # ENDIF

#ifndef ethertype_dec_cust # define ethertype_dec_cust 0x6006 # ENDIF

#ifndef ethertype_dec_sca # define ethertype_dec_sca 0x6007 # ENDIF

#ifndef ethertype_ethbridge # define ethertype_ethbridge 0x6558 / * Transparent Ethernet Bridging * / # Endif

#ifndef ethertype_revarp # define ethertype_revarp 0x8035 # Endif # ifndef ethertype_dec_lb # Define EtherTYPE_DEC_LB 0x8038 # ENDIF

#ifndef ethertype_atalk # define ethertype_atalk 0x809b # Endif

#ifndef ethertype_sna # define ethertype_sna 0x80d5 # Endif

#ifndef ethertype_aarp # Define EtherType_aarp 0x80f3 # Endif

#ifndef ethertype_ipx # define ethertype_ipx 0x8137 # ENDIF

#ifndef ethertype_vlan # define ethertype_vlan 0x8100 / * 802.1q Virtual lan * / # Endif

#ifndef ethertype_snmp # define ethertype_snmp 0x814c / * SNMP over Ethernet, RFC 1089 * / # ENDIF

#ifndef ethertype_wcp # define ethertype_wcp 0x80ff / * Wellfleet Compression Protocol * / # Endif

#ifndef ethertype_ismp # define ethertype_ismp 0x811fd / * Cabletron Interswitch message protocol * / # Endif

#ifndef ethertype_ismp_tbflood # define ethertype_ismp_tbflood 0x81ff / * Cabletron Interswitch Message Protocol * / # ENDIF

#ifndef ethertype_ipv6 # define ethertype_ipv6 0x86dd # Endif

#ifndef ethertype_slow_protocols # define ethertype_slow_protocols 0x8809 # Endif

#ifndef ethertype_ppp # define ethertype_ppp 0x880b / * no, this is not pppoe * / # Endif

#ifndef ethertype_mpls # define ethertype_mpls 0x8847 / * MPLS Unicast Packet * / # Endif

#ifndef ethertype_mpls_multi # define ethertype_mpls_multi 0x8848 / * mpls multicast packet * / # Endif

#ifndef ethertype_pppoed # define ethertype_pppoed 0x8863 / * PPPOE Discovery Protocol * / # ENDIF

#ifndef ethertype_pppoes # define ethertype_pppoes 0x8864 / * PPPOE session protocol * / # Endif

#ifndef ethertype_intel_ans # define ethertype_intel_ans 0x886d / * Intel Ans (nic teaming) http://www.intel.com/support/network/adapter/ans/probes.htm * / # ENDIF

#ifndef ETHERTYPE_MS_NLB_HEARTBEAT # define ETHERTYPE_MS_NLB_HEARTBEAT 0x886f / * MS Network Load Balancing heartbeat http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/windows2000serv/deploy/confeat/nlbovw.asp * / # Endif # ifndef ethertype_eapol # 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

#ifndef ethertype_brdwalk # define ethertype_brdwalk 0x88ae # Endif

#ifndef ethertype_rsn_preauth # define ethertype_rsn_preauth 0x88c7 / * 802.11i pre-authentication * / # Endif

#ifndef ethertype_loop # Define EtherTYPE_LOOP 0x9000 / * Used for Layer 2 Testing (Do I See My OWN FRAMES on The Wire) * / # Endif

#ifndef ethertype_rtnet # define ethertype_rtnet 0x9021 / * RTNET Protocol * / # Endif

#ifndef ethertype_rtcfg # define ethertype_rtcfg 0x9022 / * RTCFG protocol * / # Endif

#ifndef ethertype_fcft / * Type Used to Transport FC Frames MDS HDR INTERNAL TO CISCO's MDS Switch * / # Define EtherTYPE_FCFT 0XFCFC # ENDIF

Extern const value_string eType_vals [];

#ENDIF / * ETYPES.H * /

转载请注明原文地址:https://www.9cbs.com/read-15906.html

New Post(0)