OSDN Git Service

6lowpan: iphc: override l2 packet information
authorAlexander Aring <aar@pengutronix.de>
Sun, 12 Mar 2017 08:19:35 +0000 (10:19 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Apr 2017 20:02:36 +0000 (22:02 +0200)
commit94e4a68039cc0c9d6e5cf708819cb8c7e770ebbf
treeafe4bbc4a7623455261528b58c6f76a116c1f942
parentbe054fc830ff70aced3533fffc6b851fa604d241
6lowpan: iphc: override l2 packet information

The skb->pkt_type need to be set by L2, but on 6LoWPAN there exists L2
e.g. BTLE which doesn't has multicast addressing. If it's a multicast or
not is detected by IPHC headers multicast bit. The IPv6 layer will
evaluate this pkt_type, so we force set this type while uncompressing.
Should be okay for 802.15.4 as well.

Signed-off-by: Alexander Aring <aar@pengutronix.de>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/6lowpan/iphc.c