All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

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 "modules.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.

Macros

#define GNRC_NETTYPE_LORAWAN   GNRC_NETTYPE_UNDEF
 Protocol is LoRaWAN.
 

Enumerations

enum  gnrc_nettype_t {
  GNRC_NETTYPE_TX_SYNC = -3 , GNRC_NETTYPE_NETIF = -1 , GNRC_NETTYPE_UNDEF = 0 , GNRC_NETTYPE_GOMACH ,
  GNRC_NETTYPE_LWMAC , GNRC_NETTYPE_CUSTOM , GNRC_NETTYPE_SIXLOWPAN , GNRC_NETTYPE_IPV6 ,
  GNRC_NETTYPE_IPV6_EXT , GNRC_NETTYPE_ICMPV6 , GNRC_NETTYPE_CCN , GNRC_NETTYPE_CCN_CHUNK ,
  GNRC_NETTYPE_NDN , GNRC_NETTYPE_TCP , 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 gnrc_nettype_t.
 
static uint16_t gnrc_nettype_to_ethertype (gnrc_nettype_t type)
 Translates gnrc_nettype_t to an Ether Type number.
 
static gnrc_nettype_t gnrc_nettype_from_protnum (uint8_t num)
 Translates a Protocol Number to gnrc_nettype_t.
 
static uint8_t gnrc_nettype_to_protnum (gnrc_nettype_t type)
 Translates gnrc_nettype_t to a Protocol Number.
 

Macro Definition Documentation

◆ GNRC_NETTYPE_LORAWAN

#define GNRC_NETTYPE_LORAWAN   GNRC_NETTYPE_UNDEF

Protocol is LoRaWAN.

Deprecated
LoRaWAN payloads do not have a special type anymore and just use GNRC_NETTYPE_UNDEF. Will be removed after 2024.10 release.

Definition at line 99 of file nettype.h.