/*1* Copyright (c) 1993, 1994, 19962* The Regents of the University of California. All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that: (1) source code distributions6* retain the above copyright notice and this paragraph in its entirety, (2)7* distributions including binary code include the above copyright notice and8* this paragraph in its entirety in the documentation or other materials9* provided with the distribution, and (3) all advertising materials mentioning10* features or use of this software display the following acknowledgement:11* ``This product includes software developed by the University of California,12* Lawrence Berkeley Laboratory and its contributors.'' Neither the name of13* the University nor the names of its contributors may be used to endorse14* or promote products derived from this software without specific prior15* written permission.16* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED17* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF18* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.19*/2021/*22* Ethernet types.23*24* We wrap the declarations with #ifdef, so that if a file includes25* <netinet/if_ether.h>, which may declare some of these, we don't26* get a bunch of complaints from the C compiler about redefinitions27* of these values.28*29* We declare all of them here so that no file has to include30* <netinet/if_ether.h> if all it needs are ETHERTYPE_ values.31*/3233#ifndef ETHERTYPE_PUP34#define ETHERTYPE_PUP 0x0200 /* PUP protocol */35#endif36#ifndef ETHERTYPE_IP37#define ETHERTYPE_IP 0x0800 /* IP protocol */38#endif39#ifndef ETHERTYPE_ARP40#define ETHERTYPE_ARP 0x0806 /* Addr. resolution protocol */41#endif42#ifndef ETHERTYPE_NS43#define ETHERTYPE_NS 0x060044#endif45#ifndef ETHERTYPE_SPRITE46#define ETHERTYPE_SPRITE 0x050047#endif48#ifndef ETHERTYPE_TRAIL49#define ETHERTYPE_TRAIL 0x100050#endif51#ifndef ETHERTYPE_MOPDL52#define ETHERTYPE_MOPDL 0x600153#endif54#ifndef ETHERTYPE_MOPRC55#define ETHERTYPE_MOPRC 0x600256#endif57#ifndef ETHERTYPE_DN58#define ETHERTYPE_DN 0x600359#endif60#ifndef ETHERTYPE_LAT61#define ETHERTYPE_LAT 0x600462#endif63#ifndef ETHERTYPE_SCA64#define ETHERTYPE_SCA 0x600765#endif66#ifndef ETHERTYPE_TEB67#define ETHERTYPE_TEB 0x655868#endif69#ifndef ETHERTYPE_REVARP70#define ETHERTYPE_REVARP 0x8035 /* reverse Addr. resolution protocol */71#endif72#ifndef ETHERTYPE_LANBRIDGE73#define ETHERTYPE_LANBRIDGE 0x803874#endif75#ifndef ETHERTYPE_DECDNS76#define ETHERTYPE_DECDNS 0x803c77#endif78#ifndef ETHERTYPE_DECDTS79#define ETHERTYPE_DECDTS 0x803e80#endif81#ifndef ETHERTYPE_VEXP82#define ETHERTYPE_VEXP 0x805b83#endif84#ifndef ETHERTYPE_VPROD85#define ETHERTYPE_VPROD 0x805c86#endif87#ifndef ETHERTYPE_ATALK88#define ETHERTYPE_ATALK 0x809b89#endif90#ifndef ETHERTYPE_AARP91#define ETHERTYPE_AARP 0x80f392#endif93#ifndef ETHERTYPE_8021Q94#define ETHERTYPE_8021Q 0x810095#endif96#ifndef ETHERTYPE_IPX97#define ETHERTYPE_IPX 0x813798#endif99#ifndef ETHERTYPE_IPV6100#define ETHERTYPE_IPV6 0x86dd101#endif102#ifndef ETHERTYPE_MPLS103#define ETHERTYPE_MPLS 0x8847104#endif105#ifndef ETHERTYPE_MPLS_MULTI106#define ETHERTYPE_MPLS_MULTI 0x8848107#endif108#ifndef ETHERTYPE_PPPOED109#define ETHERTYPE_PPPOED 0x8863110#endif111#ifndef ETHERTYPE_PPPOES112#define ETHERTYPE_PPPOES 0x8864113#endif114#ifndef ETHERTYPE_8021AD115#define ETHERTYPE_8021AD 0x88a8116#endif117#ifndef ETHERTYPE_LOOPBACK118#define ETHERTYPE_LOOPBACK 0x9000119#endif120#ifndef ETHERTYPE_8021QINQ121#define ETHERTYPE_8021QINQ 0x9100122#endif123124125