ethertype.h revision 214518
178828Sobrien/*
233965Sjdp * Copyright (c) 1993, 1994, 1996
333965Sjdp *	The Regents of the University of California.  All rights reserved.
433965Sjdp *
533965Sjdp * Redistribution and use in source and binary forms, with or without
633965Sjdp * modification, are permitted provided that: (1) source code distributions
733965Sjdp * retain the above copyright notice and this paragraph in its entirety, (2)
833965Sjdp * distributions including binary code include the above copyright notice and
933965Sjdp * this paragraph in its entirety in the documentation or other materials
1033965Sjdp * provided with the distribution, and (3) all advertising materials mentioning
1133965Sjdp * features or use of this software display the following acknowledgement:
1233965Sjdp * ``This product includes software developed by the University of California,
1333965Sjdp * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
1433965Sjdp * the University nor the names of its contributors may be used to endorse
1533965Sjdp * or promote products derived from this software without specific prior
1633965Sjdp * written permission.
1733965Sjdp * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18218822Sdim * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19218822Sdim * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
2033965Sjdp *
2133965Sjdp * @(#) $Header: /tcpdump/master/libpcap/ethertype.h,v 1.14 2005-09-05 09:06:58 guy Exp $ (LBL)
2233965Sjdp */
2333965Sjdp
2433965Sjdp/*
2533965Sjdp * Ethernet types.
2633965Sjdp *
2733965Sjdp * We wrap the declarations with #ifdef, so that if a file includes
2833965Sjdp * <netinet/if_ether.h>, which may declare some of these, we don't
2933965Sjdp * get a bunch of complaints from the C compiler about redefinitions
3033965Sjdp * of these values.
3133965Sjdp *
3233965Sjdp * We declare all of them here so that no file has to include
3333965Sjdp * <netinet/if_ether.h> if all it needs are ETHERTYPE_ values.
3433965Sjdp */
3533965Sjdp
3633965Sjdp#ifndef ETHERTYPE_PUP
3733965Sjdp#define	ETHERTYPE_PUP		0x0200	/* PUP protocol */
3833965Sjdp#endif
3933965Sjdp#ifndef ETHERTYPE_IP
4033965Sjdp#define	ETHERTYPE_IP		0x0800	/* IP protocol */
4133965Sjdp#endif
4233965Sjdp#ifndef ETHERTYPE_ARP
4333965Sjdp#define ETHERTYPE_ARP		0x0806	/* Addr. resolution protocol */
4433965Sjdp#endif
4533965Sjdp#ifndef ETHERTYPE_REVARP
4633965Sjdp#define ETHERTYPE_REVARP	0x8035	/* reverse Addr. resolution protocol */
4733965Sjdp#endif
4833965Sjdp#ifndef ETHERTYPE_NS
4933965Sjdp#define ETHERTYPE_NS		0x0600
5033965Sjdp#endif
5133965Sjdp#ifndef	ETHERTYPE_SPRITE
5233965Sjdp#define	ETHERTYPE_SPRITE	0x0500
5333965Sjdp#endif
5433965Sjdp#ifndef ETHERTYPE_TRAIL
5533965Sjdp#define ETHERTYPE_TRAIL		0x1000
5633965Sjdp#endif
5733965Sjdp#ifndef	ETHERTYPE_MOPDL
5833965Sjdp#define	ETHERTYPE_MOPDL		0x6001
5933965Sjdp#endif
6033965Sjdp#ifndef	ETHERTYPE_MOPRC
6133965Sjdp#define	ETHERTYPE_MOPRC		0x6002
6233965Sjdp#endif
6333965Sjdp#ifndef	ETHERTYPE_DN
6433965Sjdp#define	ETHERTYPE_DN		0x6003
6533965Sjdp#endif
6633965Sjdp#ifndef	ETHERTYPE_LAT
6733965Sjdp#define	ETHERTYPE_LAT		0x6004
6833965Sjdp#endif
6933965Sjdp#ifndef ETHERTYPE_SCA
7033965Sjdp#define ETHERTYPE_SCA		0x6007
71#endif
72#ifndef ETHERTYPE_REVARP
73#define ETHERTYPE_REVARP	0x8035
74#endif
75#ifndef	ETHERTYPE_LANBRIDGE
76#define	ETHERTYPE_LANBRIDGE	0x8038
77#endif
78#ifndef	ETHERTYPE_DECDNS
79#define	ETHERTYPE_DECDNS	0x803c
80#endif
81#ifndef	ETHERTYPE_DECDTS
82#define	ETHERTYPE_DECDTS	0x803e
83#endif
84#ifndef	ETHERTYPE_VEXP
85#define	ETHERTYPE_VEXP		0x805b
86#endif
87#ifndef	ETHERTYPE_VPROD
88#define	ETHERTYPE_VPROD		0x805c
89#endif
90#ifndef ETHERTYPE_ATALK
91#define ETHERTYPE_ATALK		0x809b
92#endif
93#ifndef ETHERTYPE_AARP
94#define ETHERTYPE_AARP		0x80f3
95#endif
96#ifndef ETHERTYPE_8021Q
97#define ETHERTYPE_8021Q		0x8100
98#endif
99#ifndef ETHERTYPE_IPX
100#define ETHERTYPE_IPX		0x8137
101#endif
102#ifndef ETHERTYPE_IPV6
103#define ETHERTYPE_IPV6		0x86dd
104#endif
105#ifndef ETHERTYPE_MPLS
106#define ETHERTYPE_MPLS          0x8847
107#endif
108#ifndef ETHERTYPE_MPLS_MULTI
109#define ETHERTYPE_MPLS_MULTI    0x8848
110#endif
111#ifndef ETHERTYPE_PPPOED
112#define ETHERTYPE_PPPOED	0x8863
113#endif
114#ifndef ETHERTYPE_PPPOES
115#define ETHERTYPE_PPPOES	0x8864
116#endif
117#ifndef	ETHERTYPE_LOOPBACK
118#define	ETHERTYPE_LOOPBACK	0x9000
119#endif
120