Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ieee.h Source File

ieee.h

Go to the documentation of this file.
00001 /**
00002  * @file
00003  * IEEE assigned numbers
00004  *
00005  * @defgroup ieee IEEE assigned numbers
00006  * @ingroup infrastructure
00007  */
00008 
00009 /*
00010  * Copyright (c) 2017 Dirk Ziegelmeier.
00011  * All rights reserved.
00012  *
00013  * Redistribution and use in source and binary forms, with or without modification,
00014  * are permitted provided that the following conditions are met:
00015  *
00016  * 1. Redistributions of source code must retain the above copyright notice,
00017  *    this list of conditions and the following disclaimer.
00018  * 2. Redistributions in binary form must reproduce the above copyright notice,
00019  *    this list of conditions and the following disclaimer in the documentation
00020  *    and/or other materials provided with the distribution.
00021  * 3. The name of the author may not be used to endorse or promote products
00022  *    derived from this software without specific prior written permission.
00023  *
00024  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
00025  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00026  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
00027  * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00028  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
00029  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00030  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00031  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
00032  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
00033  * OF SUCH DAMAGE.
00034  *
00035  * This file is part of the lwIP TCP/IP stack.
00036  *
00037  * Author: Dirk Ziegelmeier <dziegel@gmx.de>
00038  *
00039  */
00040 
00041 #ifndef LWIP_HDR_PROT_IEEE_H
00042 #define LWIP_HDR_PROT_IEEE_H
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00048 /**
00049  * @ingroup ieee
00050  * A list of often ethtypes (although lwIP does not use all of them).
00051  */
00052 enum lwip_ieee_eth_type {
00053   /** Internet protocol v4 */
00054   ETHTYPE_IP        = 0x0800U,
00055   /** Address resolution protocol */
00056   ETHTYPE_ARP       = 0x0806U, 
00057   /** Wake on lan */
00058   ETHTYPE_WOL       = 0x0842U,
00059   /** RARP */
00060   ETHTYPE_RARP      = 0x8035U,
00061   /** Virtual local area network */
00062   ETHTYPE_VLAN      = 0x8100U,
00063   /** Internet protocol v6 */
00064   ETHTYPE_IPV6      = 0x86DDU,
00065   /** PPP Over Ethernet Discovery Stage */
00066   ETHTYPE_PPPOEDISC = 0x8863U,
00067   /** PPP Over Ethernet Session Stage */
00068   ETHTYPE_PPPOE     = 0x8864U,
00069   /** Jumbo Frames */
00070   ETHTYPE_JUMBO     = 0x8870U,
00071   /** Process field network */
00072   ETHTYPE_PROFINET  = 0x8892U,
00073   /** Ethernet for control automation technology */
00074   ETHTYPE_ETHERCAT  = 0x88A4U,
00075   /** Link layer discovery protocol */
00076   ETHTYPE_LLDP      = 0x88CCU,
00077   /** Serial real-time communication system */
00078   ETHTYPE_SERCOS    = 0x88CDU,
00079   /** Media redundancy protocol */
00080   ETHTYPE_MRP       = 0x88E3U,
00081   /** Precision time protocol */
00082   ETHTYPE_PTP       = 0x88F7U,
00083   /** Q-in-Q, 802.1ad */
00084   ETHTYPE_QINQ      = 0x9100U
00085 };
00086 
00087 #ifdef __cplusplus
00088 }
00089 #endif
00090 
00091 #endif /* LWIP_HDR_PROT_IEEE_H */