mac802154: iface: assume big endian for af_packet
authorAlexander Aring <alex.aring@gmail.com>
Thu, 24 Sep 2015 07:37:11 +0000 (09:37 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 24 Sep 2015 18:42:37 +0000 (20:42 +0200)
commitc2d5ecfaeafdedfb997a466c654c7029c511f43d
tree8d510e935c8550fb90c5b47715e2ae46907b91e6
parentf856f21dbcd162a53e30987a91d75d5ab54a7f80
mac802154: iface: assume big endian for af_packet

The callback "create" and "parse" from header_ops are called from
netdev core upper-layer functionality, like af_packet. These callbacks
assumes big endian for addresses and we should not introduce a special
byteordering handling for ieee802154 over af_packet in userspace.

We have an identical issue with setting the mac address which also
assumes big endian byteordering.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/iface.c