1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

ng_ethernet: make ethertype network byte order

This commit is contained in:
Martine Lenders 2015-03-20 18:31:54 +01:00
parent 6a31fa80a7
commit 8111b15425

View File

@ -24,6 +24,8 @@
#include <inttypes.h>
#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