diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-09-02 15:21:26 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-17 14:20:03 +0300 |
commit | faf7d36e5ecd16ab090c82d14bff31f7ab2f70e6 (patch) | |
tree | 8599aabdec9d74a3815b247cf2a2d0eb58c45826 /fs/nls | |
parent | 72a5e6bb5120d6464c9e7855c5a22555ede819dc (diff) | |
download | linux-faf7d36e5ecd16ab090c82d14bff31f7ab2f70e6.tar.xz |
ieee802154: 6lowpan: add generic lowpan header check
This patch introduce an earlier check if a 6LoWPAN frame can be valid.
This contains at first for checking if the header contains a dispatch
byte and isn't the nalp dispatch value, which means it isn't a 6LoWPAN
packet. Also we add a check if we can derference the dispatch value by
checking if skb->len is unequal zero.
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'fs/nls')
0 files changed, 0 insertions, 0 deletions