]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: 6lowpan: fix intra pan id check
authorAlexander Aring <aar@pengutronix.de>
Wed, 6 Jul 2016 21:32:26 +0000 (23:32 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 8 Jul 2016 11:23:12 +0000 (13:23 +0200)
commita83af4ca9886bd57a5dcaee41c84fceb047a5049
tree2e1dbb0b9a48df37158355cdf8fae2ccc10a9171
parent529a6a83896bf44e42fa2bcf8a9b34e0fa7881d5
ieee802154: 6lowpan: fix intra pan id check

The RIOT-OS stack does send intra-pan frames but don't set the intra pan
flag inside the mac header. It seems this is valid frame addressing but
inefficient. Anyway this patch adds a new function for intra pan
addressing, doesn't matter if intra pan flag or source and destination
are the same. The newly introduction function will be used to check on
intra pan addressing for 6lowpan.

Signed-off-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/mac802154.h
net/ieee802154/6lowpan/rx.c