Go to the documentation of this file.
32 #ifndef NET_GNRC_NETTYPE_H
33 #define NET_GNRC_NETTYPE_H
58 #if IS_USED(MODULE_GNRC_NETTYPE_SIXLOWPAN) || defined(DOXYGEN)
66 #if IS_USED(MODULE_GNRC_NETTYPE_GOMACH) || defined(DOXYGEN)
77 #if IS_USED(MODULE_GNRC_NETTYPE_LWMAC) || defined(DOXYGEN)
88 #if IS_USED(MODULE_GNRC_NETTYPE_CUSTOM) || defined(DOXYGEN)
99 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6) || defined(DOXYGEN)
102 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6_EXT) || defined(DOXYGEN)
105 #if IS_USED(MODULE_GNRC_NETTYPE_ICMPV6) || defined(DOXYGEN)
116 #if IS_USED(MODULE_GNRC_NETTYPE_TCP) || defined(DOXYGEN)
119 #if IS_USED(MODULE_GNRC_NETTYPE_UDP) || defined(DOXYGEN)
126 #if IS_USED(MODULE_GNRC_NETTYPE_CCN) || defined(DOXYGEN)
132 #if IS_USED(MODULE_GNRC_NETTYPE_NDN) || defined(DOXYGEN)
136 #if IS_USED(MODULE_GNRC_NETTYPE_LORAWAN) || defined(DOXYGEN)
167 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6)
171 #if IS_USED(MODULE_GNRC_NETTYPE_CCN) || IS_USED(MODULE_GNRC_NETTYPE_NDN)
173 #if IS_USED(MODULE_GNRC_NETTYPE_CCN)
175 #elif IS_USED(MODULE_GNRC_NETTYPE_NDN)
179 #if IS_USED(MODULE_GNRC_SIXLOENC) && IS_USED(MODULE_GNRC_NETTYPE_SIXLOWPAN)
183 #if IS_USED(MODULE_GNRC_NETTYPE_CUSTOM)
205 #if IS_USED(MODULE_GNRC_SIXLOENC) && IS_USED(MODULE_GNRC_NETTYPE_SIXLOWPAN)
209 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6)
213 #if IS_USED(MODULE_GNRC_NETTYPE_CCN)
217 #if IS_USED(MODULE_GNRC_NETTYPE_NDN)
221 #if IS_USED(MODULE_GNRC_NETTYPE_CUSTOM)
244 #if IS_USED(MODULE_GNRC_NETTYPE_ICMPV6)
248 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6)
252 #if IS_USED(MODULE_GNRC_NETTYPE_TCP)
256 #if IS_USED(MODULE_GNRC_NETTYPE_UDP)
260 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6_EXT)
289 #if IS_USED(MODULE_GNRC_NETTYPE_ICMPV6)
293 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6)
297 #if IS_USED(MODULE_GNRC_NETTYPE_TCP)
301 #if IS_USED(MODULE_GNRC_NETTYPE_UDP)
#define ETHERTYPE_IPV6
Internet protocol version 6.
@ GNRC_NETTYPE_CCN_CHUNK
Protocol is CCN, packet contains a content chunk.
Protocol number definitions.
#define PROTNUM_UDP
User Datagram.
@ GNRC_NETTYPE_UDP
Protocol is UDP.
#define ETHERTYPE_UNKNOWN
Reserved (no protocol specified)
#define PROTNUM_IPV6_EXT_FRAG
Fragment Header for IPv6.
#define PROTNUM_IPV6_EXT_AH
IPv6 Authentication Extension Header.
Common macros and compiler attributes/pragmas configuration.
#define PROTNUM_RESERVED
Reserved.
@ GNRC_NETTYPE_ICMPV6
Protocol is ICMPv6.
@ GNRC_NETTYPE_IPV6_EXT
Protocol is IPv6 extension header.
@ GNRC_NETTYPE_NUMOF
maximum number of available protocols
@ GNRC_NETTYPE_NDN
Protocol is NDN.
static gnrc_nettype_t gnrc_nettype_from_ethertype(uint16_t type)
Translates an Ether Type number to Protocol type.
static gnrc_nettype_t gnrc_nettype_from_protnum(uint8_t num)
Translates a Protocol Number to Protocol type.
#define PROTNUM_TCP
Transmission Control.
#define PROTNUM_IPV6_EXT_HOPOPT
IPv6 Hop-by-Hop Option.
#define ETHERTYPE_6LOENC
6LoWPAN encapsulation
#define ETHERTYPE_CUSTOM
Custom ethertype.
@ GNRC_NETTYPE_IPV6
Protocol is IPv6.
@ GNRC_NETTYPE_CCN
Protocol is CCN.
#define PROTNUM_IPV6_EXT_DST
IPv6 Extension Header: Destination Options.
@ GNRC_NETTYPE_CUSTOM
Custom ethertype.
#define PROTNUM_IPV6_EXT_MOB
IPv6 Mobility Extension Header.
@ GNRC_NETTYPE_LORAWAN
Protocol is LoRaWAN.
gnrc_nettype_t
Definition of protocol types in the network stack.
static uint16_t gnrc_nettype_to_ethertype(gnrc_nettype_t type)
Translates Protocol type to an Ether Type number.
@ GNRC_NETTYPE_UNDEF
Protocol is undefined.
@ GNRC_NETTYPE_TCP
Protocol is TCP.
@ GNRC_NETTYPE_LWMAC
Protocol is lwMAC.
static uint8_t gnrc_nettype_to_protnum(gnrc_nettype_t type)
Translates Protocol type to a Protocol Number.
#define PROTNUM_IPV6_EXT_RH
Routing Header for IPv6.
#define PROTNUM_ICMPV6
ICMP for IPv6.
#define PROTNUM_IPV6_EXT_ESP
IPv6 Encap Security Payload Extension Header.
#define ETHERTYPE_NDN
NDN Protocol (http://named-data.net/)
@ GNRC_NETTYPE_SIXLOWPAN
Protocol is 6LoWPAN.
#define PROTNUM_IPV6
IPv6 encapsulation.
@ GNRC_NETTYPE_NETIF
Protocol is as defined in gnrc_netif_hdr_t.
Adds include for missing inttype definitions.
@ GNRC_NETTYPE_GOMACH
Protocol is GoMacH.