Skip to contentSkip to conversation

mac802154: ieee802154: typo and routing fixes

PATCH In review Alexander Aring 2 participants 4 messages Oct 5, 2014

Subsystems (3)
lore
Share & tools
lore

Alexander Aring

author maintainer
#0 lore raw

cover mac802154: ieee802154: typo and routing fixes

Hi,

this patches series contains a tirivial typo in mac802154 Kconfig entry and drop PACKET_OTHERHOST skb's before parsing 6lowpan header.

- Alex

Julien Catalano (1):
trivial: net/mac802154: Fix Kconfig typo

Simon Vincent (1):
ieee802154: 6lowpan: Drop PACKET_OTHERHOST skbs in 6lowpan

 net/ieee802154/6lowpan_rtnl.c | 3 +++
 net/mac802154/Kconfig         | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.1.2
author maintainer
#1 lore raw

PATCH 1/2 trivial: net/mac802154: Fix Kconfig typo

From: Julien Catalano <[email protected]>

---
 net/mac802154/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac802154/Kconfig +1 -1
index 1818a99..aa462b4 100644
@@ -16,5 +16,5 @@ config MAC802154
 	  been tested yet!
 
 	  If you plan to use HardMAC IEEE 802.15.4 devices, you can
-	  say N here. Alternatievly you can say M to compile it as
+	  say N here. Alternatively you can say M to compile it as
 	  module.
Signature · 1 line
2.1.2
author maintainer
#2 lore raw

PATCH 2/2 ieee802154: 6lowpan: Drop PACKET_OTHERHOST skbs in 6lowpan

In reply to Alexander Aring

From: Simon Vincent <[email protected]>

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.

---
 net/ieee802154/6lowpan_rtnl.c | 3 +++
 1 file changed, 3 insertions(+)
net/ieee802154/6lowpan_rtnl.c +3 -0
index 4413629..56252ee 100644
@@ -515,6 +515,9 @@ static int lowpan_rcv(struct sk_buff *skb, struct net_device *dev,
 	if (!netif_running(dev))
 		goto drop_skb;
 
+	if (skb->pkt_type == PACKET_OTHERHOST)
+		goto drop_skb;
+
 	if (dev->type != ARPHRD_IEEE802154)
 		goto drop_skb;
 
Signature · 1 line
2.1.2
maintainer
#3 lore raw
In reply to Alexander Aring

Hi Alex,

Quoted 8 lines

this patches series contains a tirivial typo in mac802154 Kconfig entry and drop PACKET_OTHERHOST skb's before parsing 6lowpan header.

- Alex

Julien Catalano (1):
trivial: net/mac802154: Fix Kconfig typo

Quoted 6 lines

Simon Vincent (1):
ieee802154: 6lowpan: Drop PACKET_OTHERHOST skbs in 6lowpan

net/ieee802154/6lowpan_rtnl.c | 3 +++
net/mac802154/Kconfig | 2 +-

2 files changed, 4 insertions(+), 1 deletion(-)

both patches have been applied to bluetooth-next tree.

Regards

Marcel