1335640Shselasky/*
2335640Shselasky * Copyright (c) 1993, 1994, 1996
3335640Shselasky *	The Regents of the University of California.  All rights reserved.
4335640Shselasky *
5335640Shselasky * Redistribution and use in source and binary forms, with or without
6335640Shselasky * modification, are permitted provided that: (1) source code distributions
7335640Shselasky * retain the above copyright notice and this paragraph in its entirety, (2)
8335640Shselasky * distributions including binary code include the above copyright notice and
9335640Shselasky * this paragraph in its entirety in the documentation or other materials
10335640Shselasky * provided with the distribution, and (3) all advertising materials mentioning
11335640Shselasky * features or use of this software display the following acknowledgement:
12335640Shselasky * ``This product includes software developed by the University of California,
13335640Shselasky * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14335640Shselasky * the University nor the names of its contributors may be used to endorse
15335640Shselasky * or promote products derived from this software without specific prior
16335640Shselasky * written permission.
17335640Shselasky * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18335640Shselasky * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19335640Shselasky * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20335640Shselasky */
21335640Shselasky
22335640Shselasky/*
23335640Shselasky * Ethernet types.
24335640Shselasky *
25335640Shselasky * We wrap the declarations with #ifdef, so that if a file includes
26335640Shselasky * <netinet/if_ether.h>, which may declare some of these, we don't
27335640Shselasky * get a bunch of complaints from the C compiler about redefinitions
28335640Shselasky * of these values.
29335640Shselasky *
30335640Shselasky * We declare all of them here so that no file has to include
31335640Shselasky * <netinet/if_ether.h> if all it needs are ETHERTYPE_ values.
32335640Shselasky */
33335640Shselasky
34335640Shselasky#ifndef ETHERTYPE_PUP
35335640Shselasky#define	ETHERTYPE_PUP		0x0200	/* PUP protocol */
36335640Shselasky#endif
37335640Shselasky#ifndef ETHERTYPE_IP
38335640Shselasky#define	ETHERTYPE_IP		0x0800	/* IP protocol */
39335640Shselasky#endif
40335640Shselasky#ifndef ETHERTYPE_ARP
41335640Shselasky#define ETHERTYPE_ARP		0x0806	/* Addr. resolution protocol */
42335640Shselasky#endif
43335640Shselasky#ifndef ETHERTYPE_REVARP
44335640Shselasky#define ETHERTYPE_REVARP	0x8035	/* reverse Addr. resolution protocol */
45335640Shselasky#endif
46335640Shselasky#ifndef ETHERTYPE_NS
47335640Shselasky#define ETHERTYPE_NS		0x0600
48335640Shselasky#endif
49335640Shselasky#ifndef	ETHERTYPE_SPRITE
50335640Shselasky#define	ETHERTYPE_SPRITE	0x0500
51335640Shselasky#endif
52335640Shselasky#ifndef ETHERTYPE_TRAIL
53335640Shselasky#define ETHERTYPE_TRAIL		0x1000
54335640Shselasky#endif
55335640Shselasky#ifndef	ETHERTYPE_MOPDL
56335640Shselasky#define	ETHERTYPE_MOPDL		0x6001
57335640Shselasky#endif
58335640Shselasky#ifndef	ETHERTYPE_MOPRC
59335640Shselasky#define	ETHERTYPE_MOPRC		0x6002
60335640Shselasky#endif
61335640Shselasky#ifndef	ETHERTYPE_DN
62335640Shselasky#define	ETHERTYPE_DN		0x6003
63335640Shselasky#endif
64335640Shselasky#ifndef	ETHERTYPE_LAT
65335640Shselasky#define	ETHERTYPE_LAT		0x6004
66335640Shselasky#endif
67335640Shselasky#ifndef ETHERTYPE_SCA
68335640Shselasky#define ETHERTYPE_SCA		0x6007
69335640Shselasky#endif
70335640Shselasky#ifndef ETHERTYPE_REVARP
71335640Shselasky#define ETHERTYPE_REVARP	0x8035
72335640Shselasky#endif
73335640Shselasky#ifndef	ETHERTYPE_LANBRIDGE
74335640Shselasky#define	ETHERTYPE_LANBRIDGE	0x8038
75335640Shselasky#endif
76335640Shselasky#ifndef	ETHERTYPE_DECDNS
77335640Shselasky#define	ETHERTYPE_DECDNS	0x803c
78335640Shselasky#endif
79335640Shselasky#ifndef	ETHERTYPE_DECDTS
80335640Shselasky#define	ETHERTYPE_DECDTS	0x803e
81335640Shselasky#endif
82335640Shselasky#ifndef	ETHERTYPE_VEXP
83335640Shselasky#define	ETHERTYPE_VEXP		0x805b
84335640Shselasky#endif
85335640Shselasky#ifndef	ETHERTYPE_VPROD
86335640Shselasky#define	ETHERTYPE_VPROD		0x805c
87335640Shselasky#endif
88335640Shselasky#ifndef ETHERTYPE_ATALK
89335640Shselasky#define ETHERTYPE_ATALK		0x809b
90335640Shselasky#endif
91335640Shselasky#ifndef ETHERTYPE_AARP
92335640Shselasky#define ETHERTYPE_AARP		0x80f3
93335640Shselasky#endif
94335640Shselasky#ifndef ETHERTYPE_8021Q
95335640Shselasky#define ETHERTYPE_8021Q		0x8100
96335640Shselasky#endif
97335640Shselasky#ifndef ETHERTYPE_IPX
98335640Shselasky#define ETHERTYPE_IPX		0x8137
99335640Shselasky#endif
100335640Shselasky#ifndef ETHERTYPE_IPV6
101335640Shselasky#define ETHERTYPE_IPV6		0x86dd
102335640Shselasky#endif
103335640Shselasky#ifndef ETHERTYPE_MPLS
104335640Shselasky#define ETHERTYPE_MPLS          0x8847
105335640Shselasky#endif
106335640Shselasky#ifndef ETHERTYPE_MPLS_MULTI
107335640Shselasky#define ETHERTYPE_MPLS_MULTI    0x8848
108335640Shselasky#endif
109335640Shselasky#ifndef ETHERTYPE_PPPOED
110335640Shselasky#define ETHERTYPE_PPPOED	0x8863
111335640Shselasky#endif
112335640Shselasky#ifndef ETHERTYPE_PPPOES
113335640Shselasky#define ETHERTYPE_PPPOES	0x8864
114335640Shselasky#endif
115335640Shselasky#ifndef ETHERTYPE_8021AD
116335640Shselasky#define ETHERTYPE_8021AD	0x88a8
117335640Shselasky#endif
118335640Shselasky#ifndef	ETHERTYPE_LOOPBACK
119335640Shselasky#define	ETHERTYPE_LOOPBACK	0x9000
120335640Shselasky#endif
121335640Shselasky#ifndef ETHERTYPE_8021QINQ
122335640Shselasky#define ETHERTYPE_8021QINQ	0x9100
123335640Shselasky#endif
124