Skip to content
Snippets Groups Projects
Commit 45b95e86 authored by Martine Lenders's avatar Martine Lenders
Browse files

gnrc_nettype: provide ethertype to nettype for 6LoEnc

parent 941bcc14
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,10 @@ static inline gnrc_nettype_t gnrc_nettype_from_ethertype(uint16_t type)
#elif defined(MODULE_NDN_RIOT)
return GNRC_NETTYPE_NDN;
#endif
#endif
#ifdef MODULE_GNRC_SIXLOENC
case ETHERTYPE_6LOENC:
return GNRC_NETTYPE_SIXLOWPAN;
#endif
default:
return GNRC_NETTYPE_UNDEF;
......@@ -178,6 +182,10 @@ static inline gnrc_nettype_t gnrc_nettype_from_ethertype(uint16_t type)
static inline uint16_t gnrc_nettype_to_ethertype(gnrc_nettype_t type)
{
switch (type) {
#ifdef MODULE_GNRC_SIXLOENC
case GNRC_NETTYPE_SIXLOWPAN:
return ETHERTYPE_6LOENC;
#endif
#ifdef MODULE_GNRC_IPV6
case GNRC_NETTYPE_IPV6:
return ETHERTYPE_IPV6;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment