From 8111b154251e25ab90328a95e1606988f4843c4d Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 20 Mar 2015 18:31:54 +0100 Subject: [PATCH] ng_ethernet: make ethertype network byte order --- sys/include/net/ng_ethernet/hdr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/include/net/ng_ethernet/hdr.h b/sys/include/net/ng_ethernet/hdr.h index 9b8d36051d..275dc5d84f 100644 --- a/sys/include/net/ng_ethernet/hdr.h +++ b/sys/include/net/ng_ethernet/hdr.h @@ -24,6 +24,8 @@ #include +#include "byteorder.h" + #ifdef __cplusplus extern "C" { #endif @@ -36,7 +38,7 @@ extern "C" { typedef struct __attribute__((packed)) { uint8_t dst[NG_ETHERNET_ADDR_LEN]; /**< destination address */ uint8_t src[NG_ETHERNET_ADDR_LEN]; /**< source address */ - uint16_t type; /**< ether type (see @ref net_ng_ethertype) */ + network_uint16_t type; /**< ether type (see @ref net_ng_ethertype) */ } ng_ethernet_hdr_t; #ifdef __cplusplus