mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
ng_ethernet: make ethertype network byte order
This commit is contained in:
parent
6a31fa80a7
commit
8111b15425
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
#include "byteorder.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -36,7 +38,7 @@ extern "C" {
|
|||||||
typedef struct __attribute__((packed)) {
|
typedef struct __attribute__((packed)) {
|
||||||
uint8_t dst[NG_ETHERNET_ADDR_LEN]; /**< destination address */
|
uint8_t dst[NG_ETHERNET_ADDR_LEN]; /**< destination address */
|
||||||
uint8_t src[NG_ETHERNET_ADDR_LEN]; /**< source 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;
|
} ng_ethernet_hdr_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user