xref: /openbsd-src/lib/libpcap/ethertype.h (revision a28daedfc357b214be5c701aa8ba8adb29a7f1c2)
1 /*	$OpenBSD: ethertype.h,v 1.7 2008/06/11 15:02:21 dtucker Exp $	*/
2 /*	$NetBSD: ethertype.h,v 1.2 1995/03/06 11:38:17 mycroft Exp $	*/
3 
4 /*
5  * Copyright (c) 1993, 1994, 1996
6  *	The Regents of the University of California.  All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that: (1) source code distributions
10  * retain the above copyright notice and this paragraph in its entirety, (2)
11  * distributions including binary code include the above copyright notice and
12  * this paragraph in its entirety in the documentation or other materials
13  * provided with the distribution, and (3) all advertising materials mentioning
14  * features or use of this software display the following acknowledgement:
15  * ``This product includes software developed by the University of California,
16  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
17  * the University nor the names of its contributors may be used to endorse
18  * or promote products derived from this software without specific prior
19  * written permission.
20  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
21  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
22  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23  *
24  * @(#) $Header: /home/cvs/src/lib/libpcap/ethertype.h,v 1.7 2008/06/11 15:02:21 dtucker Exp $ (LBL)
25  */
26 
27 /* Types missing from some systems */
28 
29 #ifndef	ETHERTYPE_NS
30 #define	ETHERTYPE_NS		0x0600
31 #endif
32 #ifndef	ETHERTYPE_SPRITE
33 #define	ETHERTYPE_SPRITE	0x0500
34 #endif
35 #ifndef	ETHERTYPE_TRAIL
36 #define	ETHERTYPE_TRAIL		0x1000
37 #endif
38 #ifndef	ETHERTYPE_MOPDL
39 #define	ETHERTYPE_MOPDL		0x6001
40 #endif
41 #ifndef	ETHERTYPE_MOPRC
42 #define	ETHERTYPE_MOPRC		0x6002
43 #endif
44 #ifndef	ETHERTYPE_DN
45 #define	ETHERTYPE_DN		0x6003
46 #endif
47 #ifndef	ETHERTYPE_LAT
48 #define	ETHERTYPE_LAT		0x6004
49 #endif
50 #ifndef	ETHERTYPE_SCA
51 #define	ETHERTYPE_SCA		0x6007
52 #endif
53 #ifndef	ETHERTYPE_REVARP
54 #define	ETHERTYPE_REVARP	0x8035
55 #endif
56 #ifndef	ETHERTYPE_LANBRIDGE
57 #define	ETHERTYPE_LANBRIDGE	0x8038
58 #endif
59 #ifndef	ETHERTYPE_DECDNS
60 #define	ETHERTYPE_DECDNS	0x803c
61 #endif
62 #ifndef	ETHERTYPE_DECDTS
63 #define	ETHERTYPE_DECDTS	0x803e
64 #endif
65 #ifndef	ETHERTYPE_VEXP
66 #define	ETHERTYPE_VEXP		0x805b
67 #endif
68 #ifndef	ETHERTYPE_VPROD
69 #define	ETHERTYPE_VPROD		0x805c
70 #endif
71 #ifndef	ETHERTYPE_ATALK
72 #define	ETHERTYPE_ATALK		0x809b
73 #endif
74 #ifndef	ETHERTYPE_AARP
75 #define	ETHERTYPE_AARP		0x80f3
76 #endif
77 #ifndef ETHERTYPE_8021Q
78 #define ETHERTYPE_8021Q		0x8100
79 #endif
80 #ifndef ETHERTYPE_IPV6
81 #define ETHERTYPE_IPV6		0x80f3
82 #endif
83 #ifndef	ETHERTYPE_LOOPBACK
84 #define	ETHERTYPE_LOOPBACK	0x9000
85 #endif
86