2 * Defines ethernet packet types, similar to tcpdump's ethertype.h
4 * $Id: etypes.h,v 1.9 1999/10/20 22:41:11 guy Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@zing.org>
8 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 * Maximum length of an IEEE 802.3 frame; Ethernet type/length values
31 * greater than it are types, Ethernet type/length values less than or
32 * equal to it are lengths.
34 #define IEEE_802_3_MAX_LEN 1500
37 #define ETHERTYP_UNK 0x0000
41 * http://www.isi.edu/in-notes/iana/assignments/ethernet-numbers
42 * TCP/IP Illustrated, Volume 1
44 * tcpdump's ethertype.h
45 * http://www.cavebear.com/CaveBear/Ethernet/
49 #define ETHERTYPE_IP 0x0800
52 #ifndef ETHERTYPE_IPv6
53 #define ETHERTYPE_IPv6 0x086dd
57 #define ETHERTYPE_ARP 0x0806
60 #ifndef ETHERTYPE_REVARP
61 #define ETHERTYPE_REVARP 0x8035
64 #ifndef ETHERTYPE_ATALK
65 #define ETHERTYPE_ATALK 0x809b
68 #ifndef ETHERTYPE_AARP
69 #define ETHERTYPE_AARP 0x80f3
73 #define ETHERTYPE_IPX 0x8137
76 #ifndef ETHERTYPE_VINES
77 #define ETHERTYPE_VINES 0xbad
80 #ifndef ETHERTYPE_TRAIN
81 #define ETHERTYPE_TRAIN 0x1984
82 /* Created by Netmon as a summary packet */
86 #define ETHERTYPE_CDP 0x2000 /* Cisco Discovery Protocol */
89 #ifndef ETHERTYPE_LOOP
90 #define ETHERTYPE_LOOP 0x9000 /* used for layer 2 testing (do i see my own frames on the wire) */
93 #ifndef ETHERTYPE_PPPOED
94 #define ETHERTYPE_PPPOED 0x8863 /* PPPoE Discovery Protocol */
97 #ifndef ETHERTYPE_PPPOES
98 #define ETHERTYPE_PPPOES 0x8864 /* PPPoE Session Protocol */
101 #ifndef ETHERTYPE_VLAN
102 #define ETHERTYPE_VLAN 0x8100 /* 802.1Q Virtual LAN */
106 #endif /* etypes.h */