summaryrefslogtreecommitdiffstats
path: root/include/net/mac802154.h
diff options
context:
space:
mode:
authorPhoebe Buckheister2014-03-14 21:24:00 +0100
committerDavid S. Miller2014-03-15 03:15:26 +0100
commit94b4f6c21cf54029377a0645675a9d81b6cf890d (patch)
treeb52945b9b9d7377c2a6c585246533c96af13e895 /include/net/mac802154.h
parentieee802154: enforce consistent endianness in the 802.15.4 stack (diff)
downloadkernel-qcow2-linux-94b4f6c21cf54029377a0645675a9d81b6cf890d.tar.gz
kernel-qcow2-linux-94b4f6c21cf54029377a0645675a9d81b6cf890d.tar.xz
kernel-qcow2-linux-94b4f6c21cf54029377a0645675a9d81b6cf890d.zip
ieee802154: add header structs with endiannes and operations
This patch provides a set of structures to represent 802.15.4 MAC headers, and a set of operations to push/pull/peek these structs from skbs. We cannot simply pointer-cast the skb MAC header pointer to these structs, because 802.15.4 headers are wildly variable - depending on the first three bytes, virtually all other fields of the header may be present or not, and be present with different lengths. The new header creation/parsing routines also support 802.15.4 security headers, which are currently not supported by the mac802154 implementation of the protocol. Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/mac802154.h')
-rw-r--r--include/net/mac802154.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/mac802154.h b/include/net/mac802154.h
index f74b2a8bf2b6..a591053cae63 100644
--- a/include/net/mac802154.h
+++ b/include/net/mac802154.h
@@ -20,6 +20,7 @@
#define NET_MAC802154_H
#include <net/af_ieee802154.h>
+#include <linux/skbuff.h>
/* General MAC frame format:
* 2 bytes: Frame Control