Protocol type definitions. More...

Detailed Description

Protocol type definitions.

Author
Martine Lenders mlend.nosp@m.ers@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de

Definition in file nettype.h.

#include <inttypes.h>
#include "kernel_defines.h"
#include "net/ethertype.h"
#include "net/protnum.h"
+ Include dependency graph for nettype.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  gnrc_nettype_t {
  GNRC_NETTYPE_NETIF = -1, GNRC_NETTYPE_UNDEF = 0, GNRC_NETTYPE_SIXLOWPAN, GNRC_NETTYPE_GOMACH,
  GNRC_NETTYPE_LWMAC, GNRC_NETTYPE_CUSTOM, GNRC_NETTYPE_IPV6, GNRC_NETTYPE_IPV6_EXT,
  GNRC_NETTYPE_ICMPV6, GNRC_NETTYPE_TCP, GNRC_NETTYPE_UDP, GNRC_NETTYPE_CCN,
  GNRC_NETTYPE_CCN_CHUNK, GNRC_NETTYPE_NDN, GNRC_NETTYPE_LORAWAN, GNRC_NETTYPE_TEST,
  GNRC_NETTYPE_NUMOF
}
 Definition of protocol types in the network stack. More...
 

Functions

static gnrc_nettype_t gnrc_nettype_from_ethertype (uint16_t type)
 Translates an Ether Type number to Protocol type. More...
 
static uint16_t gnrc_nettype_to_ethertype (gnrc_nettype_t type)
 Translates Protocol type to an Ether Type number. More...
 
static gnrc_nettype_t gnrc_nettype_from_protnum (uint8_t num)
 Translates a Protocol Number to Protocol type. More...
 
static uint8_t gnrc_nettype_to_protnum (gnrc_nettype_t type)
 Translates Protocol type to a Protocol Number. More...