117683Spst/* 217683Spst * Copyright (c) 1993, 1994, 1996 317683Spst * The Regents of the University of California. All rights reserved. 417683Spst * 517683Spst * Redistribution and use in source and binary forms, with or without 617683Spst * modification, are permitted provided that: (1) source code distributions 717683Spst * retain the above copyright notice and this paragraph in its entirety, (2) 817683Spst * distributions including binary code include the above copyright notice and 917683Spst * this paragraph in its entirety in the documentation or other materials 1017683Spst * provided with the distribution, and (3) all advertising materials mentioning 1117683Spst * features or use of this software display the following acknowledgement: 1217683Spst * ``This product includes software developed by the University of California, 1317683Spst * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 1417683Spst * the University nor the names of its contributors may be used to endorse 1517683Spst * or promote products derived from this software without specific prior 1617683Spst * written permission. 1717683Spst * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 1817683Spst * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 1917683Spst * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 2017683Spst * 21214518Srpaulo * @(#) $Header: /tcpdump/master/libpcap/ethertype.h,v 1.14 2005-09-05 09:06:58 guy Exp $ (LBL) 2217683Spst */ 2317683Spst 2475107Sfenner/* 2575107Sfenner * Ethernet types. 2675107Sfenner * 2775107Sfenner * We wrap the declarations with #ifdef, so that if a file includes 2875107Sfenner * <netinet/if_ether.h>, which may declare some of these, we don't 2975107Sfenner * get a bunch of complaints from the C compiler about redefinitions 3075107Sfenner * of these values. 3175107Sfenner * 3275107Sfenner * We declare all of them here so that no file has to include 3375107Sfenner * <netinet/if_ether.h> if all it needs are ETHERTYPE_ values. 3475107Sfenner */ 3517683Spst 3675107Sfenner#ifndef ETHERTYPE_PUP 3775107Sfenner#define ETHERTYPE_PUP 0x0200 /* PUP protocol */ 3875107Sfenner#endif 3975107Sfenner#ifndef ETHERTYPE_IP 4075107Sfenner#define ETHERTYPE_IP 0x0800 /* IP protocol */ 4175107Sfenner#endif 4275107Sfenner#ifndef ETHERTYPE_ARP 4375107Sfenner#define ETHERTYPE_ARP 0x0806 /* Addr. resolution protocol */ 4475107Sfenner#endif 4575107Sfenner#ifndef ETHERTYPE_REVARP 4675107Sfenner#define ETHERTYPE_REVARP 0x8035 /* reverse Addr. resolution protocol */ 4775107Sfenner#endif 4817683Spst#ifndef ETHERTYPE_NS 4917683Spst#define ETHERTYPE_NS 0x0600 5017683Spst#endif 5117683Spst#ifndef ETHERTYPE_SPRITE 5217683Spst#define ETHERTYPE_SPRITE 0x0500 5317683Spst#endif 5417683Spst#ifndef ETHERTYPE_TRAIL 5517683Spst#define ETHERTYPE_TRAIL 0x1000 5617683Spst#endif 5717683Spst#ifndef ETHERTYPE_MOPDL 5817683Spst#define ETHERTYPE_MOPDL 0x6001 5917683Spst#endif 6017683Spst#ifndef ETHERTYPE_MOPRC 6117683Spst#define ETHERTYPE_MOPRC 0x6002 6217683Spst#endif 6317683Spst#ifndef ETHERTYPE_DN 6417683Spst#define ETHERTYPE_DN 0x6003 6517683Spst#endif 6617683Spst#ifndef ETHERTYPE_LAT 6717683Spst#define ETHERTYPE_LAT 0x6004 6817683Spst#endif 6917683Spst#ifndef ETHERTYPE_SCA 7017683Spst#define ETHERTYPE_SCA 0x6007 7117683Spst#endif 7217683Spst#ifndef ETHERTYPE_REVARP 7317683Spst#define ETHERTYPE_REVARP 0x8035 7417683Spst#endif 7517683Spst#ifndef ETHERTYPE_LANBRIDGE 7617683Spst#define ETHERTYPE_LANBRIDGE 0x8038 7717683Spst#endif 7817683Spst#ifndef ETHERTYPE_DECDNS 7917683Spst#define ETHERTYPE_DECDNS 0x803c 8017683Spst#endif 8117683Spst#ifndef ETHERTYPE_DECDTS 8217683Spst#define ETHERTYPE_DECDTS 0x803e 8317683Spst#endif 8417683Spst#ifndef ETHERTYPE_VEXP 8517683Spst#define ETHERTYPE_VEXP 0x805b 8617683Spst#endif 8717683Spst#ifndef ETHERTYPE_VPROD 8817683Spst#define ETHERTYPE_VPROD 0x805c 8917683Spst#endif 9017683Spst#ifndef ETHERTYPE_ATALK 9117683Spst#define ETHERTYPE_ATALK 0x809b 9217683Spst#endif 9317683Spst#ifndef ETHERTYPE_AARP 9417683Spst#define ETHERTYPE_AARP 0x80f3 9517683Spst#endif 9698530Sfenner#ifndef ETHERTYPE_8021Q 9798530Sfenner#define ETHERTYPE_8021Q 0x8100 9898530Sfenner#endif 9998530Sfenner#ifndef ETHERTYPE_IPX 10098530Sfenner#define ETHERTYPE_IPX 0x8137 10198530Sfenner#endif 10256889Sfenner#ifndef ETHERTYPE_IPV6 10375107Sfenner#define ETHERTYPE_IPV6 0x86dd 10456889Sfenner#endif 105146768Ssam#ifndef ETHERTYPE_MPLS 106146768Ssam#define ETHERTYPE_MPLS 0x8847 107146768Ssam#endif 108146768Ssam#ifndef ETHERTYPE_MPLS_MULTI 109146768Ssam#define ETHERTYPE_MPLS_MULTI 0x8848 110146768Ssam#endif 111162012Ssam#ifndef ETHERTYPE_PPPOED 112162012Ssam#define ETHERTYPE_PPPOED 0x8863 113162012Ssam#endif 114162012Ssam#ifndef ETHERTYPE_PPPOES 115162012Ssam#define ETHERTYPE_PPPOES 0x8864 116162012Ssam#endif 11717683Spst#ifndef ETHERTYPE_LOOPBACK 11817683Spst#define ETHERTYPE_LOOPBACK 0x9000 11917683Spst#endif 120235426Sdelphij#ifndef ETHERTYPE_8021QINQ 121235426Sdelphij#define ETHERTYPE_8021QINQ 0x9100 122235426Sdelphij#endif 123