Skip to content

Commit

Permalink
Merge pull request #2661 from authmillenon/ethertype/fix/byteorder
Browse files Browse the repository at this point in the history
ng_ethernet: make ethertype network byte order
  • Loading branch information
miri64 committed Mar 24, 2015
2 parents db8cbc7 + 8111b15 commit 23d079b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/include/net/ng_ethernet/hdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#include <inttypes.h>

#include "byteorder.h"

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -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
Expand Down

0 comments on commit 23d079b

Please sign in to comment.