65 #if IS_USED(MODULE_GNRC_NETTYPE_CUSTOM) || defined(DOXYGEN)
70 #if IS_USED(MODULE_GNRC_NETTYPE_SIXLOWPAN) || defined(DOXYGEN)
74 #if IS_USED(MODULE_GNRC_NETTYPE_LORAWAN) || defined(DOXYGEN)
80 #define GNRC_NETTYPE_LORAWAN GNRC_NETTYPE_UNDEF
87 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6) || defined(DOXYGEN)
90 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6_EXT) || defined(DOXYGEN)
93 #if IS_USED(MODULE_GNRC_NETTYPE_ICMPV6) || defined(DOXYGEN)
97 #if IS_USED(MODULE_GNRC_NETTYPE_CCN) || defined(DOXYGEN)
103 #if IS_USED(MODULE_GNRC_NETTYPE_NDN) || defined(DOXYGEN)
112 #if IS_USED(MODULE_GNRC_NETTYPE_TCP) || defined(DOXYGEN)
115 #if IS_USED(MODULE_GNRC_NETTYPE_UDP) || defined(DOXYGEN)
144 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6)
148 #if IS_USED(MODULE_GNRC_NETTYPE_CCN) || IS_USED(MODULE_GNRC_NETTYPE_NDN)
150 #if IS_USED(MODULE_GNRC_NETTYPE_CCN)
152 #elif IS_USED(MODULE_GNRC_NETTYPE_NDN)
156 #if IS_USED(MODULE_GNRC_SIXLOENC) && IS_USED(MODULE_GNRC_NETTYPE_SIXLOWPAN)
160 #if IS_USED(MODULE_GNRC_NETTYPE_CUSTOM)
181 #if IS_USED(MODULE_GNRC_NETTYPE_CUSTOM)
185 #if IS_USED(MODULE_GNRC_SIXLOENC) && IS_USED(MODULE_GNRC_NETTYPE_SIXLOWPAN)
189 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6)
193 #if IS_USED(MODULE_GNRC_NETTYPE_CCN)
197 #if IS_USED(MODULE_GNRC_NETTYPE_NDN)
220 #if IS_USED(MODULE_GNRC_NETTYPE_ICMPV6)
224 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6)
228 #if IS_USED(MODULE_GNRC_NETTYPE_TCP)
232 #if IS_USED(MODULE_GNRC_NETTYPE_UDP)
236 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6_EXT)
265 #if IS_USED(MODULE_GNRC_NETTYPE_IPV6)
269 #if IS_USED(MODULE_GNRC_NETTYPE_ICMPV6)
273 #if IS_USED(MODULE_GNRC_NETTYPE_TCP)
277 #if IS_USED(MODULE_GNRC_NETTYPE_UDP)
#define ETHERTYPE_CUSTOM
Custom ethertype.
#define ETHERTYPE_6LOENC
6LoWPAN encapsulation
#define ETHERTYPE_IPV6
Internet protocol version 6.
#define ETHERTYPE_UNKNOWN
Reserved (no protocol specified)
#define ETHERTYPE_NDN
NDN Protocol (http://named-data.net/)
gnrc_nettype_t
Definition of protocol types in the network stack.
static gnrc_nettype_t gnrc_nettype_from_ethertype(uint16_t type)
Translates an Ether Type number to gnrc_nettype_t.
static uint8_t gnrc_nettype_to_protnum(gnrc_nettype_t type)
Translates gnrc_nettype_t to a Protocol Number.
static gnrc_nettype_t gnrc_nettype_from_protnum(uint8_t num)
Translates a Protocol Number to gnrc_nettype_t.
static uint16_t gnrc_nettype_to_ethertype(gnrc_nettype_t type)
Translates gnrc_nettype_t to an Ether Type number.
@ GNRC_NETTYPE_TX_SYNC
TX synchronization data for passing up error data or auxiliary data.
@ GNRC_NETTYPE_IPV6_EXT
Protocol is IPv6 extension header.
@ GNRC_NETTYPE_CCN_CHUNK
Protocol is CCN, packet contains a content chunk.
@ GNRC_NETTYPE_CCN
Protocol is CCN.
@ GNRC_NETTYPE_CUSTOM
Custom ethertype.
@ GNRC_NETTYPE_TEST
Usable with test vectors.
@ GNRC_NETTYPE_NETIF
Protocol is as defined in gnrc_netif_hdr_t.
@ GNRC_NETTYPE_IPV6
Protocol is IPv6.
@ GNRC_NETTYPE_UDP
Protocol is UDP.
@ GNRC_NETTYPE_UNDEF
Protocol is undefined.
@ GNRC_NETTYPE_ICMPV6
Protocol is ICMPv6.
@ GNRC_NETTYPE_SIXLOWPAN
Protocol is 6LoWPAN.
@ GNRC_NETTYPE_TCP
Protocol is TCP.
@ GNRC_NETTYPE_NDN
Protocol is NDN.
@ GNRC_NETTYPE_NUMOF
maximum number of available protocols
#define PROTNUM_IPV6_EXT_MOB
IPv6 Mobility Extension Header.
#define PROTNUM_IPV6_EXT_HOPOPT
IPv6 Hop-by-Hop Option.
#define PROTNUM_IPV6_EXT_FRAG
Fragment Header for IPv6.
#define PROTNUM_RESERVED
Reserved.
#define PROTNUM_IPV6_EXT_ESP
IPv6 Encap Security Payload Extension Header.
#define PROTNUM_ICMPV6
ICMP for IPv6.
#define PROTNUM_IPV6_EXT_DST
IPv6 Extension Header: Destination Options.
#define PROTNUM_IPV6
IPv6 encapsulation.
#define PROTNUM_UDP
User Datagram.
#define PROTNUM_IPV6_EXT_AH
IPv6 Authentication Extension Header.
#define PROTNUM_TCP
Transmission Control.
#define PROTNUM_IPV6_EXT_RH
Routing Header for IPv6.
Adds include for missing inttype definitions.
Common macros and compiler attributes/pragmas configuration.
Protocol number definitions.