From: Phoebe Buckheister Date: Wed, 14 May 2014 15:43:06 +0000 (+0200) Subject: ieee802154: add definitions for link-layer security and header functions X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~220^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3a6114f31600b94ee10ebf62e4d493b401ade87;p=pandora-kernel.git ieee802154: add definitions for link-layer security and header functions When dealing with 802.15.4, one often has to know the maximum payload size for a given packet. This depends on many factors, one of which is whether or not a security header is present in the frame. These definitions and functions provide an easy way for any upper layer to calculate the maximum payload size for a packet. The first obvious user for this is 6lowpan, which duplicates this calculation and gets it partially wrong because it ignores security headers. Signed-off-by: Phoebe Buckheister Signed-off-by: David S. Miller --- Reading git-diff-tree failed