xref: /openbsd/lib/libpcap/ethertype.h (revision 8a71272b)
1 /*	$OpenBSD */
2 /*	$NetBSD: ethertype.h,v 1.2 1995/03/06 11:38:17 mycroft Exp $	*/
3 
4 /*
5  * Copyright (c) 1993, 1994
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: ethertype.h,v 1.2 94/06/14 20:03:27 leres Exp (LBL)
25  */
26 
27 /* Map between Ethernet protocol types and names */
28 
29 /* Add other Ethernet packet types here */
30 #ifndef	ETHERTYPE_SPRITE
31 #define	ETHERTYPE_SPRITE	0x0500
32 #endif
33 #ifndef	ETHERTYPE_MOPDL
34 #define	ETHERTYPE_MOPDL		0x6001
35 #endif
36 #ifndef	ETHERTYPE_MOPRC
37 #define	ETHERTYPE_MOPRC		0x6002
38 #endif
39 #ifndef	ETHERTYPE_DN
40 #define	ETHERTYPE_DN		0x6003
41 #endif
42 #ifndef	ETHERTYPE_LAT
43 #define	ETHERTYPE_LAT		0x6004
44 #endif
45 #ifndef	ETHERTYPE_LANBRIDGE
46 #define	ETHERTYPE_LANBRIDGE	0x8038
47 #endif
48 #ifndef	ETHERTYPE_DECDNS
49 #define	ETHERTYPE_DECDNS	0x803c
50 #endif
51 #ifndef	ETHERTYPE_DECDTS
52 #define	ETHERTYPE_DECDTS	0x803e
53 #endif
54 #ifndef	ETHERTYPE_VEXP
55 #define	ETHERTYPE_VEXP		0x805b
56 #endif
57 #ifndef	ETHERTYPE_VPROD
58 #define	ETHERTYPE_VPROD		0x805c
59 #endif
60 #ifndef	ETHERTYPE_LOOPBACK
61 #define	ETHERTYPE_LOOPBACK	0x9000
62 #endif
63 
64 #ifndef ETHERTYPE_ATALK
65 #define ETHERTYPE_ATALK		0x809b /* XXX */
66 #endif
67 #ifndef ETHERTYPE_AARP
68 #define ETHERTYPE_AARP		0x80f3
69 #endif
70 #ifndef ETHERTYPE_NS
71 #define ETHERTYPE_NS		0x0600
72 #endif
73 
74 #ifndef ETHERTYPE_REVARP
75 #define ETHERTYPE_REVARP	0x8035
76 #endif
77 
78