]> 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)
commite0dc86c9cf2e10a5461815f772bb2c776d241fd7
tree2e1dbb0b9a48df37158355cdf8fae2ccc10a9171
parent60325ce23328dc4d30d8f2d6a97490e558df75af
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