Skip to content

RFC 6LoWPAN userspace support

Luiz Augusto von Dentz linux-bluetooth linux-wpan 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7shared/io: Add io_recvsrc/shared/io-glib.c src/shared/io.h+21 -00 replies
2/7shared: Add initial code for 6LoWPANMakefile.am src/shared/6lo.c src/shared/6lo.h+534 -10 replies
3/7unit: Add initial test for bt_6loMakefile.am unit/test-6lo.c+277 -00 replies
4/7uuid: Add IPSP UUIDlib/uuid.h+2 -00 replies
5/7build: Add IPSP pluginMakefile.plugins configure.ac profiles/network/ipsp.c+141 -00 replies
6/7ipsp: Connect to IPSP PSMprofiles/network/ipsp.c+98 -30 replies
7/7ipsp: Add support for bt_6loprofiles/network/ipsp.c+111 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/7] 6LoWPAN userspace support

From: Luiz Augusto von Dentz <[email protected]>

This introduces support for 6LoWPAN userspace interface creation along with IPSP plugin which takes care of L2CAP channel creation.

The bt_6lo instance handles all the details to create the network interface and also attach channels to it so any io is automatically forward to the right path. The plugin make use of bt_6lo and create interfaces for each adapter available using "bt" as prefix followed by adapter index.

At the current stage only router/central role is supported since peripheral role may actually need to be enabled via advertisement which perhaps will require a D-Bus to be triggered on demand.

Since the IPSP plugins does actually register a proper profile driver Device.Connect can now attempt to connect the IPSP channel and then proceed to attach the channel to interface, so it is well integrated with existing D-Bus APIs.

Note that this all depends on TUN/TAP changes proposed here:
http://www.spinics.net/lists/linux-bluetooth/msg72471.html

Luiz Augusto von Dentz (7):
shared/io: Add io_recv
shared: Add initial code for 6LoWPAN
unit: Add initial test for bt_6lo
uuid: Add IPSP UUID
build: Add IPSP plugin
ipsp: Connect to IPSP PSM
ipsp: Add support for bt_6lo

 Makefile.am             |   8 +-
 Makefile.plugins        |   5 +
 configure.ac            |   4 +
 lib/uuid.h              |   2 +
 profiles/network/ipsp.c | 318 +++++++++++++++++++++++++++++++
 src/shared/6lo.c        | 493 ++++++++++++++++++++++++++++++++++++++++++++++++
 src/shared/6lo.h        |  40 ++++
 src/shared/io-glib.c    |  20 ++
 src/shared/io.h         |   1 +
 unit/test-6lo.c         | 271 ++++++++++++++++++++++++++
 10 files changed, 1161 insertions(+), 1 deletion(-)
 create mode 100644 profiles/network/ipsp.c
 create mode 100644 src/shared/6lo.c
 create mode 100644 src/shared/6lo.h
 create mode 100644 unit/test-6lo.c
Signature · 1 line
2.13.6