Skip to content

Commit 2c6bed7

Browse files
alexaringholtmann
authored andcommitted
6lowpan: introduce new net/6lowpan directory
This patch moves generic code which is used by bluetooth and ieee802154 6lowpan to a new net/6lowpan directory. This directory contains generic 6LoWPAN code which is shared between bluetooth and ieee802154 MAC-Layer. This is the IPHC - "IPv6 Header Compression" format at the moment. Which is described by RFC 6282 [0]. The BLTE 6LoWPAN draft describes that the IPHC is the same format like IEEE 802.15.4, see [1]. Futuremore we can put more code into this directory which is shared between BLTE and IEEE 802.15.4 6LoWPAN like RFC 6775 or the routing protocol RPL RFC 6550. To avoid naming conflicts I renamed 6lowpan-y to ieee802154_6lowpan-y in net/ieee802154/Makefile. [0] http://tools.ietf.org/html/rfc6282 [1] http://tools.ietf.org/html/draft-ietf-6lowpan-btle-12#section-3.2 [2] http://tools.ietf.org/html/rfc6775 [3] http://tools.ietf.org/html/rfc6550 Signed-off-by: Alexander Aring <alex.aring@gmail.com> Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 6c53823 commit 2c6bed7

8 files changed

Lines changed: 16 additions & 14 deletions

File tree

‎net/6lowpan/Kconfig‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
config 6LOWPAN
2+
bool "6LoWPAN Support"
3+
depends on IPV6
4+
---help---
5+
This enables IPv6 over Low power Wireless Personal Area Network -
6+
"6LoWPAN" which is supported by IEEE 802.15.4 or Bluetooth stacks.

‎net/6lowpan/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
obj-$(CONFIG_6LOWPAN) := 6lowpan.o
2+
3+
6lowpan-y := iphc.o

‎net/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ source "drivers/net/appletalk/Kconfig"
214214
source "net/x25/Kconfig"
215215
source "net/lapb/Kconfig"
216216
source "net/phonet/Kconfig"
217+
source "net/6lowpan/Kconfig"
217218
source "net/ieee802154/Kconfig"
218219
source "net/mac802154/Kconfig"
219220
source "net/sched/Kconfig"

‎net/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ obj-$(CONFIG_CAIF) += caif/
5757
ifneq ($(CONFIG_DCB),)
5858
obj-y += dcb/
5959
endif
60-
obj-y += ieee802154/
60+
obj-$(CONFIG_6LOWPAN) += 6lowpan/
61+
obj-$(CONFIG_IEEE802154) += ieee802154/
6162
obj-$(CONFIG_MAC802154) += mac802154/
6263

6364
ifeq ($(CONFIG_NET),y)

‎net/bluetooth/Kconfig‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ menuconfig BT
4141

4242
config BT_6LOWPAN
4343
tristate "Bluetooth 6LoWPAN support"
44-
depends on BT && IPV6
45-
select 6LOWPAN_IPHC if BT_6LOWPAN
44+
depends on BT && 6LOWPAN
4645
help
4746
IPv6 compression over Bluetooth Low Energy.
4847

‎net/ieee802154/Kconfig‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ config IEEE802154
1212

1313
config IEEE802154_6LOWPAN
1414
tristate "6lowpan support over IEEE 802.15.4"
15-
depends on IEEE802154 && IPV6
16-
select 6LOWPAN_IPHC
15+
depends on IEEE802154 && 6LOWPAN
1716
---help---
1817
IPv6 compression over IEEE 802.15.4.
19-
20-
config 6LOWPAN_IPHC
21-
tristate
22-
---help---
23-
6lowpan compression code which is shared between IEEE 802.15.4 and Bluetooth
24-
stacks.

‎net/ieee802154/Makefile‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
obj-$(CONFIG_IEEE802154) += ieee802154.o af_802154.o
2-
obj-$(CONFIG_IEEE802154_6LOWPAN) += 6lowpan.o
3-
obj-$(CONFIG_6LOWPAN_IPHC) += 6lowpan_iphc.o
2+
obj-$(CONFIG_IEEE802154_6LOWPAN) += ieee802154_6lowpan.o
43

5-
6lowpan-y := 6lowpan_rtnl.o reassembly.o
4+
ieee802154_6lowpan-y := 6lowpan_rtnl.o reassembly.o
65
ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o wpan-class.o \
76
header_ops.o
87
af_802154-y := af_ieee802154.o raw.o dgram.o

0 commit comments

Comments
 (0)