diff options
author | Simon Vincent <simon.vincent@xsilon.com> | 2014-10-05 14:23:12 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-25 01:56:21 -0400 |
commit | 39f6eb19cf85b08b8a926294750f5e79c50a6a7b (patch) | |
tree | b9d67693bae82d893b9ac13694d77a082a6f2d06 /net/ieee802154 | |
parent | ee4c148e8a6a749f821170976489a8ea1802fdbb (diff) |
ieee802154: 6lowpan: Drop PACKET_OTHERHOST skbs in 6lowpan
There is no point processing pkts which are PACKET_OTHERHOST
in 6lowpan as they are discarded as soon as they reach the
ipv6 layer. Therefore we should drop them in the 6lowpan layer.
Signed-off-by: Simon Vincent <simon.vincent@xsilon.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/6lowpan_rtnl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowpan_rtnl.c index 44136297b673..56252ee157c9 100644 --- a/net/ieee802154/6lowpan_rtnl.c +++ b/net/ieee802154/6lowpan_rtnl.c | |||
@@ -515,6 +515,9 @@ static int lowpan_rcv(struct sk_buff *skb, struct net_device *dev, | |||
515 | if (!netif_running(dev)) | 515 | if (!netif_running(dev)) |
516 | goto drop_skb; | 516 | goto drop_skb; |
517 | 517 | ||
518 | if (skb->pkt_type == PACKET_OTHERHOST) | ||
519 | goto drop_skb; | ||
520 | |||
518 | if (dev->type != ARPHRD_IEEE802154) | 521 | if (dev->type != ARPHRD_IEEE802154) |
519 | goto drop_skb; | 522 | goto drop_skb; |
520 | 523 | ||