diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-09-02 14:21:26 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-17 13:20:03 +0200 |
commit | faf7d36e5ecd16ab090c82d14bff31f7ab2f70e6 (patch) | |
tree | 8599aabdec9d74a3815b247cf2a2d0eb58c45826 /drivers/base/class.c | |
parent | 72a5e6bb5120d6464c9e7855c5a22555ede819dc (diff) |
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 'drivers/base/class.c')
0 files changed, 0 insertions, 0 deletions