diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-09-02 08:21:30 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-17 07:20:04 -0400 |
commit | 0c4349687fb6de660b24d3498d12e068f0320425 (patch) | |
tree | ec42b9e9f60ce6e0e80d69256f1ca92e382645e0 | |
parent | 54552d03023cfd485cedf8d7471d1554139d58aa (diff) |
ieee802154: 6lowpan: remove packet type to host
This patch remove the packet_type to host and leave the mac pkt_type.
By running 'grep -r "pkt_type" net/ipv6', the IPv6 stack will evaluate
this value for PACKET_BROADCAST. Instead of overwriting this value we
will leave the mac value there which is broadcasts if the mac frame was
a broadcast frame.
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>
-rw-r--r-- | net/ieee802154/6lowpan/rx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan/rx.c b/net/ieee802154/6lowpan/rx.c index f7eb091203a8..856052bf230b 100644 --- a/net/ieee802154/6lowpan/rx.c +++ b/net/ieee802154/6lowpan/rx.c | |||
@@ -29,7 +29,6 @@ | |||
29 | static int lowpan_give_skb_to_device(struct sk_buff *skb) | 29 | static int lowpan_give_skb_to_device(struct sk_buff *skb) |
30 | { | 30 | { |
31 | skb->protocol = htons(ETH_P_IPV6); | 31 | skb->protocol = htons(ETH_P_IPV6); |
32 | skb->pkt_type = PACKET_HOST; | ||
33 | 32 | ||
34 | return netif_rx(skb); | 33 | return netif_rx(skb); |
35 | } | 34 | } |