ethertype.h revision 259065
1164190Sjkoshy/* 2164190Sjkoshy * Copyright (c) 1993, 1994, 1996 3164190Sjkoshy * The Regents of the University of California. All rights reserved. 4164190Sjkoshy * 5164190Sjkoshy * Redistribution and use in source and binary forms, with or without 6164190Sjkoshy * modification, are permitted provided that: (1) source code distributions 7164190Sjkoshy * retain the above copyright notice and this paragraph in its entirety, (2) 8164190Sjkoshy * distributions including binary code include the above copyright notice and 9164190Sjkoshy * this paragraph in its entirety in the documentation or other materials 10164190Sjkoshy * provided with the distribution, and (3) all advertising materials mentioning 11164190Sjkoshy * features or use of this software display the following acknowledgement: 12164190Sjkoshy * ``This product includes software developed by the University of California, 13164190Sjkoshy * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14164190Sjkoshy * the University nor the names of its contributors may be used to endorse 15164190Sjkoshy * or promote products derived from this software without specific prior 16164190Sjkoshy * written permission. 17164190Sjkoshy * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18164190Sjkoshy * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19164190Sjkoshy * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20164190Sjkoshy * 21164190Sjkoshy * @(#) $Header: /tcpdump/master/libpcap/ethertype.h,v 1.14 2005-09-05 09:06:58 guy Exp $ (LBL) 22164190Sjkoshy */ 23164190Sjkoshy 24164190Sjkoshy/* 25164190Sjkoshy * Ethernet types. 26164190Sjkoshy * 27164190Sjkoshy * We wrap the declarations with #ifdef, so that if a file includes 28164190Sjkoshy * <netinet/if_ether.h>, which may declare some of these, we don't 29164190Sjkoshy * get a bunch of complaints from the C compiler about redefinitions 30164190Sjkoshy * of these values. 31164190Sjkoshy * 32164190Sjkoshy * We declare all of them here so that no file has to include 33164190Sjkoshy * <netinet/if_ether.h> if all it needs are ETHERTYPE_ values. 34164190Sjkoshy */ 35164190Sjkoshy 36164190Sjkoshy#ifndef ETHERTYPE_PUP 37164190Sjkoshy#define ETHERTYPE_PUP 0x0200 /* PUP protocol */ 38164190Sjkoshy#endif 39164190Sjkoshy#ifndef ETHERTYPE_IP 40164190Sjkoshy#define ETHERTYPE_IP 0x0800 /* IP protocol */ 41210330Skaiw#endif 42164190Sjkoshy#ifndef ETHERTYPE_ARP 43164190Sjkoshy#define ETHERTYPE_ARP 0x0806 /* Addr. resolution protocol */ 44164190Sjkoshy#endif 45164190Sjkoshy#ifndef ETHERTYPE_REVARP 46164190Sjkoshy#define ETHERTYPE_REVARP 0x8035 /* reverse Addr. resolution protocol */ 47164190Sjkoshy#endif 48164190Sjkoshy#ifndef ETHERTYPE_NS 49164190Sjkoshy#define ETHERTYPE_NS 0x0600 50164190Sjkoshy#endif 51210338Skaiw#ifndef ETHERTYPE_SPRITE 52164190Sjkoshy#define ETHERTYPE_SPRITE 0x0500 53164190Sjkoshy#endif 54164190Sjkoshy#ifndef ETHERTYPE_TRAIL 55165535Sjkoshy#define ETHERTYPE_TRAIL 0x1000 56164190Sjkoshy#endif 57164190Sjkoshy#ifndef ETHERTYPE_MOPDL 58164190Sjkoshy#define ETHERTYPE_MOPDL 0x6001 59164190Sjkoshy#endif 60164190Sjkoshy#ifndef ETHERTYPE_MOPRC 61164190Sjkoshy#define ETHERTYPE_MOPRC 0x6002 62164190Sjkoshy#endif 63164190Sjkoshy#ifndef ETHERTYPE_DN 64164190Sjkoshy#define ETHERTYPE_DN 0x6003 65165535Sjkoshy#endif 66165535Sjkoshy#ifndef ETHERTYPE_LAT 67164190Sjkoshy#define ETHERTYPE_LAT 0x6004 68164190Sjkoshy#endif 69165535Sjkoshy#ifndef ETHERTYPE_SCA 70165535Sjkoshy#define ETHERTYPE_SCA 0x6007 71164190Sjkoshy#endif 72164190Sjkoshy#ifndef ETHERTYPE_REVARP 73164190Sjkoshy#define ETHERTYPE_REVARP 0x8035 74164190Sjkoshy#endif 75164190Sjkoshy#ifndef ETHERTYPE_LANBRIDGE 76164190Sjkoshy#define ETHERTYPE_LANBRIDGE 0x8038 77164190Sjkoshy#endif 78164190Sjkoshy#ifndef ETHERTYPE_DECDNS 79164190Sjkoshy#define ETHERTYPE_DECDNS 0x803c 80164190Sjkoshy#endif 81164190Sjkoshy#ifndef ETHERTYPE_DECDTS 82164190Sjkoshy#define ETHERTYPE_DECDTS 0x803e 83164190Sjkoshy#endif 84164190Sjkoshy#ifndef ETHERTYPE_VEXP 85164190Sjkoshy#define ETHERTYPE_VEXP 0x805b 86165535Sjkoshy#endif 87165535Sjkoshy#ifndef ETHERTYPE_VPROD 88165535Sjkoshy#define ETHERTYPE_VPROD 0x805c 89165535Sjkoshy#endif 90164190Sjkoshy#ifndef ETHERTYPE_ATALK 91165535Sjkoshy#define ETHERTYPE_ATALK 0x809b 92165535Sjkoshy#endif 93165535Sjkoshy#ifndef ETHERTYPE_AARP 94165535Sjkoshy#define ETHERTYPE_AARP 0x80f3 95164190Sjkoshy#endif 96165535Sjkoshy#ifndef ETHERTYPE_8021Q 97164190Sjkoshy#define ETHERTYPE_8021Q 0x8100 98164190Sjkoshy#endif 99164190Sjkoshy#ifndef ETHERTYPE_IPX 100164190Sjkoshy#define ETHERTYPE_IPX 0x8137 101164190Sjkoshy#endif 102164190Sjkoshy#ifndef ETHERTYPE_IPV6 103164190Sjkoshy#define ETHERTYPE_IPV6 0x86dd 104210338Skaiw#endif 105210338Skaiw#ifndef ETHERTYPE_MPLS 106164190Sjkoshy#define ETHERTYPE_MPLS 0x8847 107164190Sjkoshy#endif 108164190Sjkoshy#ifndef ETHERTYPE_MPLS_MULTI 109164190Sjkoshy#define ETHERTYPE_MPLS_MULTI 0x8848 110164190Sjkoshy#endif 111164190Sjkoshy#ifndef ETHERTYPE_PPPOED 112164190Sjkoshy#define ETHERTYPE_PPPOED 0x8863 113164190Sjkoshy#endif 114164190Sjkoshy#ifndef ETHERTYPE_PPPOES 115164190Sjkoshy#define ETHERTYPE_PPPOES 0x8864 116164190Sjkoshy#endif 117165535Sjkoshy#ifndef ETHERTYPE_LOOPBACK 118165535Sjkoshy#define ETHERTYPE_LOOPBACK 0x9000 119165535Sjkoshy#endif 120164190Sjkoshy#ifndef ETHERTYPE_8021QINQ 121164190Sjkoshy#define ETHERTYPE_8021QINQ 0x9100 122164190Sjkoshy#endif 123164190Sjkoshy