ethertype.h revision 98530
1212904Sdim/* 2235633Sdim * Copyright (c) 1993, 1994, 1996 3193323Sed * The Regents of the University of California. All rights reserved. 4193323Sed * 5193323Sed * Redistribution and use in source and binary forms, with or without 6193323Sed * modification, are permitted provided that: (1) source code distributions 7235633Sdim * retain the above copyright notice and this paragraph in its entirety, (2) 8193323Sed * distributions including binary code include the above copyright notice and 9193323Sed * this paragraph in its entirety in the documentation or other materials 10193323Sed * provided with the distribution, and (3) all advertising materials mentioning 11193323Sed * features or use of this software display the following acknowledgement: 12193323Sed * ``This product includes software developed by the University of California, 13193323Sed * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14193323Sed * the University nor the names of its contributors may be used to endorse 15245431Sdim * or promote products derived from this software without specific prior 16245431Sdim * written permission. 17245431Sdim * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18245431Sdim * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19193323Sed * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20193323Sed * 21193323Sed * @(#) $Header: /tcpdump/master/libpcap/ethertype.h,v 1.12 2001/01/14 21:26:52 guy Exp $ (LBL) 22193323Sed */ 23193323Sed 24193323Sed/* 25245431Sdim * Ethernet types. 26245431Sdim * 27245431Sdim * We wrap the declarations with #ifdef, so that if a file includes 28193323Sed * <netinet/if_ether.h>, which may declare some of these, we don't 29193323Sed * get a bunch of complaints from the C compiler about redefinitions 30252723Sdim * of these values. 31193323Sed * 32252723Sdim * We declare all of them here so that no file has to include 33252723Sdim * <netinet/if_ether.h> if all it needs are ETHERTYPE_ values. 34193323Sed */ 35193323Sed 36193323Sed#ifndef ETHERTYPE_PUP 37193323Sed#define ETHERTYPE_PUP 0x0200 /* PUP protocol */ 38193323Sed#endif 39193323Sed#ifndef ETHERTYPE_IP 40263509Sdim#define ETHERTYPE_IP 0x0800 /* IP protocol */ 41263509Sdim#endif 42263509Sdim#ifndef ETHERTYPE_ARP 43263509Sdim#define ETHERTYPE_ARP 0x0806 /* Addr. resolution protocol */ 44263509Sdim#endif 45263509Sdim#ifndef ETHERTYPE_REVARP 46263509Sdim#define ETHERTYPE_REVARP 0x8035 /* reverse Addr. resolution protocol */ 47263509Sdim#endif 48263509Sdim#ifndef ETHERTYPE_NS 49263509Sdim#define ETHERTYPE_NS 0x0600 50263509Sdim#endif 51263509Sdim#ifndef ETHERTYPE_SPRITE 52263509Sdim#define ETHERTYPE_SPRITE 0x0500 53263509Sdim#endif 54263509Sdim#ifndef ETHERTYPE_TRAIL 55263509Sdim#define ETHERTYPE_TRAIL 0x1000 56263509Sdim#endif 57263509Sdim#ifndef ETHERTYPE_MOPDL 58263509Sdim#define ETHERTYPE_MOPDL 0x6001 59263509Sdim#endif 60263509Sdim#ifndef ETHERTYPE_MOPRC 61263509Sdim#define ETHERTYPE_MOPRC 0x6002 62263509Sdim#endif 63263509Sdim#ifndef ETHERTYPE_DN 64263509Sdim#define ETHERTYPE_DN 0x6003 65263509Sdim#endif 66263509Sdim#ifndef ETHERTYPE_LAT 67263509Sdim#define ETHERTYPE_LAT 0x6004 68263509Sdim#endif 69263509Sdim#ifndef ETHERTYPE_SCA 70263509Sdim#define ETHERTYPE_SCA 0x6007 71193323Sed#endif 72252723Sdim#ifndef ETHERTYPE_REVARP 73193323Sed#define ETHERTYPE_REVARP 0x8035 74193323Sed#endif 75252723Sdim#ifndef ETHERTYPE_LANBRIDGE 76195340Sed#define ETHERTYPE_LANBRIDGE 0x8038 77195340Sed#endif 78252723Sdim#ifndef ETHERTYPE_DECDNS 79195340Sed#define ETHERTYPE_DECDNS 0x803c 80195340Sed#endif 81203954Srdivacky#ifndef ETHERTYPE_DECDTS 82195340Sed#define ETHERTYPE_DECDTS 0x803e 83195340Sed#endif 84195340Sed#ifndef ETHERTYPE_VEXP 85252723Sdim#define ETHERTYPE_VEXP 0x805b 86195340Sed#endif 87195340Sed#ifndef ETHERTYPE_VPROD 88195340Sed#define ETHERTYPE_VPROD 0x805c 89195340Sed#endif 90195340Sed#ifndef ETHERTYPE_ATALK 91195340Sed#define ETHERTYPE_ATALK 0x809b 92195340Sed#endif 93195340Sed#ifndef ETHERTYPE_AARP 94195340Sed#define ETHERTYPE_AARP 0x80f3 95195340Sed#endif 96195340Sed#ifndef ETHERTYPE_8021Q 97195340Sed#define ETHERTYPE_8021Q 0x8100 98195340Sed#endif 99195340Sed#ifndef ETHERTYPE_IPX 100195340Sed#define ETHERTYPE_IPX 0x8137 101195340Sed#endif 102195340Sed#ifndef ETHERTYPE_IPV6 103195340Sed#define ETHERTYPE_IPV6 0x86dd 104195340Sed#endif 105195340Sed#ifndef ETHERTYPE_LOOPBACK 106252723Sdim#define ETHERTYPE_LOOPBACK 0x9000 107252723Sdim#endif 108195340Sed