The friendly Operating System for the Internet of Things

Protocol type definitions. More...

Detailed Description

#include <inttypes.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_IOVEC = -2, GNRC_NETTYPE_NETIF = -1, GNRC_NETTYPE_UNDEF = 0, GNRC_NETTYPE_SIXLOWPAN,
  GNRC_NETTYPE_IPV6, GNRC_NETTYPE_ICMPV6, GNRC_NETTYPE_UDP, 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...