xref: /dflybsd-src/contrib/libpcap/ethertype.h (revision e75ef36f1332e115895388cede9dfd24ca1a806c)
11077d0bdSPeter Avalos /*
21077d0bdSPeter Avalos  * Copyright (c) 1993, 1994, 1996
31077d0bdSPeter Avalos  *	The Regents of the University of California.  All rights reserved.
41077d0bdSPeter Avalos  *
51077d0bdSPeter Avalos  * Redistribution and use in source and binary forms, with or without
61077d0bdSPeter Avalos  * modification, are permitted provided that: (1) source code distributions
71077d0bdSPeter Avalos  * retain the above copyright notice and this paragraph in its entirety, (2)
81077d0bdSPeter Avalos  * distributions including binary code include the above copyright notice and
91077d0bdSPeter Avalos  * this paragraph in its entirety in the documentation or other materials
101077d0bdSPeter Avalos  * provided with the distribution, and (3) all advertising materials mentioning
111077d0bdSPeter Avalos  * features or use of this software display the following acknowledgement:
121077d0bdSPeter Avalos  * ``This product includes software developed by the University of California,
131077d0bdSPeter Avalos  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
141077d0bdSPeter Avalos  * the University nor the names of its contributors may be used to endorse
151077d0bdSPeter Avalos  * or promote products derived from this software without specific prior
161077d0bdSPeter Avalos  * written permission.
171077d0bdSPeter Avalos  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
181077d0bdSPeter Avalos  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
191077d0bdSPeter Avalos  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
201077d0bdSPeter Avalos  */
211077d0bdSPeter Avalos 
221077d0bdSPeter Avalos /*
231077d0bdSPeter Avalos  * Ethernet types.
241077d0bdSPeter Avalos  *
251077d0bdSPeter Avalos  * We wrap the declarations with #ifdef, so that if a file includes
261077d0bdSPeter Avalos  * <netinet/if_ether.h>, which may declare some of these, we don't
271077d0bdSPeter Avalos  * get a bunch of complaints from the C compiler about redefinitions
281077d0bdSPeter Avalos  * of these values.
291077d0bdSPeter Avalos  *
301077d0bdSPeter Avalos  * We declare all of them here so that no file has to include
311077d0bdSPeter Avalos  * <netinet/if_ether.h> if all it needs are ETHERTYPE_ values.
321077d0bdSPeter Avalos  */
331077d0bdSPeter Avalos 
341077d0bdSPeter Avalos #ifndef ETHERTYPE_PUP
351077d0bdSPeter Avalos #define ETHERTYPE_PUP		0x0200	/* PUP protocol */
361077d0bdSPeter Avalos #endif
371077d0bdSPeter Avalos #ifndef ETHERTYPE_IP
381077d0bdSPeter Avalos #define ETHERTYPE_IP		0x0800	/* IP protocol */
391077d0bdSPeter Avalos #endif
401077d0bdSPeter Avalos #ifndef ETHERTYPE_ARP
411077d0bdSPeter Avalos #define ETHERTYPE_ARP		0x0806	/* Addr. resolution protocol */
421077d0bdSPeter Avalos #endif
431077d0bdSPeter Avalos #ifndef ETHERTYPE_NS
441077d0bdSPeter Avalos #define ETHERTYPE_NS		0x0600
451077d0bdSPeter Avalos #endif
461077d0bdSPeter Avalos #ifndef	ETHERTYPE_SPRITE
471077d0bdSPeter Avalos #define ETHERTYPE_SPRITE	0x0500
481077d0bdSPeter Avalos #endif
491077d0bdSPeter Avalos #ifndef ETHERTYPE_TRAIL
501077d0bdSPeter Avalos #define ETHERTYPE_TRAIL		0x1000
511077d0bdSPeter Avalos #endif
521077d0bdSPeter Avalos #ifndef	ETHERTYPE_MOPDL
531077d0bdSPeter Avalos #define ETHERTYPE_MOPDL		0x6001
541077d0bdSPeter Avalos #endif
551077d0bdSPeter Avalos #ifndef	ETHERTYPE_MOPRC
561077d0bdSPeter Avalos #define ETHERTYPE_MOPRC		0x6002
571077d0bdSPeter Avalos #endif
581077d0bdSPeter Avalos #ifndef	ETHERTYPE_DN
591077d0bdSPeter Avalos #define ETHERTYPE_DN		0x6003
601077d0bdSPeter Avalos #endif
611077d0bdSPeter Avalos #ifndef	ETHERTYPE_LAT
621077d0bdSPeter Avalos #define ETHERTYPE_LAT		0x6004
631077d0bdSPeter Avalos #endif
641077d0bdSPeter Avalos #ifndef ETHERTYPE_SCA
651077d0bdSPeter Avalos #define ETHERTYPE_SCA		0x6007
661077d0bdSPeter Avalos #endif
67*ea16f64eSAntonio Huete Jimenez #ifndef ETHERTYPE_TEB
68*ea16f64eSAntonio Huete Jimenez #define ETHERTYPE_TEB		0x6558
69*ea16f64eSAntonio Huete Jimenez #endif
701077d0bdSPeter Avalos #ifndef ETHERTYPE_REVARP
71*ea16f64eSAntonio Huete Jimenez #define ETHERTYPE_REVARP	0x8035	/* reverse Addr. resolution protocol */
721077d0bdSPeter Avalos #endif
731077d0bdSPeter Avalos #ifndef	ETHERTYPE_LANBRIDGE
741077d0bdSPeter Avalos #define ETHERTYPE_LANBRIDGE	0x8038
751077d0bdSPeter Avalos #endif
761077d0bdSPeter Avalos #ifndef	ETHERTYPE_DECDNS
771077d0bdSPeter Avalos #define ETHERTYPE_DECDNS	0x803c
781077d0bdSPeter Avalos #endif
791077d0bdSPeter Avalos #ifndef	ETHERTYPE_DECDTS
801077d0bdSPeter Avalos #define ETHERTYPE_DECDTS	0x803e
811077d0bdSPeter Avalos #endif
821077d0bdSPeter Avalos #ifndef	ETHERTYPE_VEXP
831077d0bdSPeter Avalos #define ETHERTYPE_VEXP		0x805b
841077d0bdSPeter Avalos #endif
851077d0bdSPeter Avalos #ifndef	ETHERTYPE_VPROD
861077d0bdSPeter Avalos #define ETHERTYPE_VPROD		0x805c
871077d0bdSPeter Avalos #endif
881077d0bdSPeter Avalos #ifndef ETHERTYPE_ATALK
891077d0bdSPeter Avalos #define ETHERTYPE_ATALK		0x809b
901077d0bdSPeter Avalos #endif
911077d0bdSPeter Avalos #ifndef ETHERTYPE_AARP
921077d0bdSPeter Avalos #define ETHERTYPE_AARP		0x80f3
931077d0bdSPeter Avalos #endif
941077d0bdSPeter Avalos #ifndef ETHERTYPE_8021Q
951077d0bdSPeter Avalos #define ETHERTYPE_8021Q		0x8100
961077d0bdSPeter Avalos #endif
971077d0bdSPeter Avalos #ifndef ETHERTYPE_IPX
981077d0bdSPeter Avalos #define ETHERTYPE_IPX		0x8137
991077d0bdSPeter Avalos #endif
1001077d0bdSPeter Avalos #ifndef ETHERTYPE_IPV6
1011077d0bdSPeter Avalos #define ETHERTYPE_IPV6		0x86dd
1021077d0bdSPeter Avalos #endif
1031077d0bdSPeter Avalos #ifndef ETHERTYPE_MPLS
1041077d0bdSPeter Avalos #define ETHERTYPE_MPLS		0x8847
1051077d0bdSPeter Avalos #endif
1061077d0bdSPeter Avalos #ifndef ETHERTYPE_MPLS_MULTI
1071077d0bdSPeter Avalos #define ETHERTYPE_MPLS_MULTI	0x8848
1081077d0bdSPeter Avalos #endif
1091077d0bdSPeter Avalos #ifndef ETHERTYPE_PPPOED
1101077d0bdSPeter Avalos #define ETHERTYPE_PPPOED	0x8863
1111077d0bdSPeter Avalos #endif
1121077d0bdSPeter Avalos #ifndef ETHERTYPE_PPPOES
1131077d0bdSPeter Avalos #define ETHERTYPE_PPPOES	0x8864
1141077d0bdSPeter Avalos #endif
11597a9217aSAntonio Huete Jimenez #ifndef ETHERTYPE_8021AD
11697a9217aSAntonio Huete Jimenez #define ETHERTYPE_8021AD	0x88a8
11797a9217aSAntonio Huete Jimenez #endif
1181077d0bdSPeter Avalos #ifndef	ETHERTYPE_LOOPBACK
1191077d0bdSPeter Avalos #define ETHERTYPE_LOOPBACK	0x9000
1201077d0bdSPeter Avalos #endif
121a85e14b0SPeter Avalos #ifndef ETHERTYPE_8021QINQ
122a85e14b0SPeter Avalos #define ETHERTYPE_8021QINQ	0x9100
123a85e14b0SPeter Avalos #endif
124