-
- Downloads
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>
Showing
- include/net/ieee802154.h 24 additions, 4 deletionsinclude/net/ieee802154.h
- include/net/ieee802154_netdev.h 87 additions, 0 deletionsinclude/net/ieee802154_netdev.h
- include/net/mac802154.h 1 addition, 0 deletionsinclude/net/mac802154.h
- net/ieee802154/Makefile 2 additions, 1 deletionnet/ieee802154/Makefile
- net/ieee802154/header_ops.c 287 additions, 0 deletionsnet/ieee802154/header_ops.c
Loading
Please register or sign in to comment