|
@@ -21,6 +21,8 @@
|
|
#ifndef _LINUX_IF_ETHER_H
|
|
#ifndef _LINUX_IF_ETHER_H
|
|
#define _LINUX_IF_ETHER_H
|
|
#define _LINUX_IF_ETHER_H
|
|
|
|
|
|
|
|
+#include <linux/types.h>
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
|
|
* IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
|
|
* and FCS/CRC (frame check sequence).
|
|
* and FCS/CRC (frame check sequence).
|
|
@@ -100,7 +102,7 @@
|
|
struct ethhdr {
|
|
struct ethhdr {
|
|
unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
|
|
unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
|
|
unsigned char h_source[ETH_ALEN]; /* source ether addr */
|
|
unsigned char h_source[ETH_ALEN]; /* source ether addr */
|
|
- unsigned short h_proto; /* packet type ID field */
|
|
|
|
|
|
+ __be16 h_proto; /* packet type ID field */
|
|
} __attribute__((packed));
|
|
} __attribute__((packed));
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
#ifdef __KERNEL__
|