2 * Defines ethernet packet types, similar to tcpdump's ethertype.h
4 * $Id: etypes.h,v 1.4 1998/12/19 00:12:20 hannes 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 #define ETHERTYP_UNK 0x0000
34 * http://www.isi.edu/in-notes/iana/assignments/ethernet-numbers
35 * TCP/IP Illustrated, Volume 1
37 * tcpdump's ethertype.h
38 * http://www.cavebear.com/CaveBear/Ethernet/
42 #define ETHERTYPE_IP 0x0800
45 #ifndef ETHERTYPE_IPv6
46 #define ETHERTYPE_IPv6 0x086dd
50 #define ETHERTYPE_ARP 0x0806
53 #ifndef ETHERTYPE_REVARP
54 #define ETHERTYPE_REVARP 0x8035
57 #ifndef ETHERTYPE_ATALK
58 #define ETHERTYPE_ATALK 0x809b
61 #ifndef ETHERTYPE_AARP
62 #define ETHERTYPE_AARP 0x80f3
66 #define ETHERTYPE_IPX 0x8137
69 #ifndef ETHERTYPE_VINES
70 #define ETHERTYPE_VINES 0xbad
74 #define ETHERTYPE_CDP 0x2000 /* Cisco Discovery Protocol */
77 #ifndef ETHERTYPE_LOOP
78 #define ETHERTYPE_LOOP 0x9000 /* used for layer 2 testing (do i see my own frames on the wire) */