[457] | 1 | /**
|
---|
| 2 | * @file
|
---|
| 3 | * IEEE assigned numbers
|
---|
| 4 | *
|
---|
| 5 | * @defgroup ieee IEEE assigned numbers
|
---|
| 6 | * @ingroup infrastructure
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | /*
|
---|
| 10 | * Copyright (c) 2017 Dirk Ziegelmeier.
|
---|
| 11 | * All rights reserved.
|
---|
| 12 | *
|
---|
| 13 | * Redistribution and use in source and binary forms, with or without modification,
|
---|
| 14 | * are permitted provided that the following conditions are met:
|
---|
| 15 | *
|
---|
| 16 | * 1. Redistributions of source code must retain the above copyright notice,
|
---|
| 17 | * this list of conditions and the following disclaimer.
|
---|
| 18 | * 2. Redistributions in binary form must reproduce the above copyright notice,
|
---|
| 19 | * this list of conditions and the following disclaimer in the documentation
|
---|
| 20 | * and/or other materials provided with the distribution.
|
---|
| 21 | * 3. The name of the author may not be used to endorse or promote products
|
---|
| 22 | * derived from this software without specific prior written permission.
|
---|
| 23 | *
|
---|
| 24 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
---|
| 25 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
---|
| 26 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
---|
| 27 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
---|
| 28 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
---|
| 29 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
---|
| 30 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
---|
| 31 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
---|
| 32 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
---|
| 33 | * OF SUCH DAMAGE.
|
---|
| 34 | *
|
---|
| 35 | * This file is part of the lwIP TCP/IP stack.
|
---|
| 36 | *
|
---|
| 37 | * Author: Dirk Ziegelmeier <dziegel@gmx.de>
|
---|
| 38 | *
|
---|
| 39 | */
|
---|
| 40 |
|
---|
| 41 | #ifndef LWIP_HDR_PROT_IEEE_H
|
---|
| 42 | #define LWIP_HDR_PROT_IEEE_H
|
---|
| 43 |
|
---|
| 44 | #ifdef __cplusplus
|
---|
| 45 | extern "C" {
|
---|
| 46 | #endif
|
---|
| 47 |
|
---|
| 48 | /**
|
---|
| 49 | * @ingroup ieee
|
---|
| 50 | * A list of often ethtypes (although lwIP does not use all of them).
|
---|
| 51 | */
|
---|
| 52 | enum lwip_ieee_eth_type {
|
---|
| 53 | /** Internet protocol v4 */
|
---|
| 54 | ETHTYPE_IP = 0x0800U,
|
---|
| 55 | /** Address resolution protocol */
|
---|
| 56 | ETHTYPE_ARP = 0x0806U,
|
---|
| 57 | /** Wake on lan */
|
---|
| 58 | ETHTYPE_WOL = 0x0842U,
|
---|
| 59 | /** RARP */
|
---|
| 60 | ETHTYPE_RARP = 0x8035U,
|
---|
| 61 | /** Virtual local area network */
|
---|
| 62 | ETHTYPE_VLAN = 0x8100U,
|
---|
| 63 | /** Internet protocol v6 */
|
---|
| 64 | ETHTYPE_IPV6 = 0x86DDU,
|
---|
| 65 | /** PPP Over Ethernet Discovery Stage */
|
---|
| 66 | ETHTYPE_PPPOEDISC = 0x8863U,
|
---|
| 67 | /** PPP Over Ethernet Session Stage */
|
---|
| 68 | ETHTYPE_PPPOE = 0x8864U,
|
---|
| 69 | /** Jumbo Frames */
|
---|
| 70 | ETHTYPE_JUMBO = 0x8870U,
|
---|
| 71 | /** Process field network */
|
---|
| 72 | ETHTYPE_PROFINET = 0x8892U,
|
---|
| 73 | /** Ethernet for control automation technology */
|
---|
| 74 | ETHTYPE_ETHERCAT = 0x88A4U,
|
---|
| 75 | /** Link layer discovery protocol */
|
---|
| 76 | ETHTYPE_LLDP = 0x88CCU,
|
---|
| 77 | /** Serial real-time communication system */
|
---|
| 78 | ETHTYPE_SERCOS = 0x88CDU,
|
---|
| 79 | /** Media redundancy protocol */
|
---|
| 80 | ETHTYPE_MRP = 0x88E3U,
|
---|
| 81 | /** Precision time protocol */
|
---|
| 82 | ETHTYPE_PTP = 0x88F7U,
|
---|
| 83 | /** Q-in-Q, 802.1ad */
|
---|
| 84 | ETHTYPE_QINQ = 0x9100U
|
---|
| 85 | };
|
---|
| 86 |
|
---|
| 87 | #ifdef __cplusplus
|
---|
| 88 | }
|
---|
| 89 | #endif
|
---|
| 90 |
|
---|
| 91 | #endif /* LWIP_HDR_PROT_IEEE_H */
|
---|