diff --git a/sys/include/net/ethertype.h b/sys/include/net/ethertype.h index 8ca3f408ad..1f823f7899 100644 --- a/sys/include/net/ethertype.h +++ b/sys/include/net/ethertype.h @@ -34,6 +34,7 @@ extern "C" { #define ETHERTYPE_RESERVED (0x0000) /**< Reserved */ #define ETHERTYPE_IPV4 (0x0800) /**< Internet protocol version 4 */ #define ETHERTYPE_ARP (0x0806) /**< Address resolution protocol */ +#define ETHERTYPE_NDN (0x0801) /**< Parc CCNX */ #define ETHERTYPE_IPV6 (0x86dd) /**< Internet protocol version 6 */ #define ETHERTYPE_UNKNOWN (0xffff) /**< Reserved (no protocol specified) */ diff --git a/sys/include/net/gnrc/nettype.h b/sys/include/net/gnrc/nettype.h index 6c785f0d43..635909b551 100644 --- a/sys/include/net/gnrc/nettype.h +++ b/sys/include/net/gnrc/nettype.h @@ -118,6 +118,10 @@ static inline gnrc_nettype_t gnrc_nettype_from_ethertype(uint16_t type) #ifdef MODULE_GNRC_IPV6 case ETHERTYPE_IPV6: return GNRC_NETTYPE_IPV6; +#endif +#ifdef MODULE_CCN_LITE + case ETHERTYPE_NDN: + return GNRC_NETTYPE_CCN; #endif default: return GNRC_NETTYPE_UNDEF; @@ -141,6 +145,10 @@ static inline uint16_t gnrc_nettype_to_ethertype(gnrc_nettype_t type) #ifdef MODULE_GNRC_IPV6 case GNRC_NETTYPE_IPV6: return ETHERTYPE_IPV6; +#endif +#ifdef MODULE_CCN_LITE + case GNRC_NETTYPE_CCN: + return ETHERTYPE_NDN; #endif default: return ETHERTYPE_UNKNOWN;