linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC radvd 0/2] radvd: 6lowpan 6CO testing patches
@ 2015-12-14 14:07 Alexander Aring
  2015-12-14 14:07 ` [RFC radvd 1/2] device-linux: replace ARPHRD_IEEE802154 to ARPHRD_6LOWPAN Alexander Aring
  2015-12-14 14:07 ` [RFC radvd 2/2] radvd: rework 6CO handling Alexander Aring
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Aring @ 2015-12-14 14:07 UTC (permalink / raw)
  To: linux-wpan
  Cc: linux-bluetooth, netdev, kernel, mcr, lukasz.duda,
	martin.gergeleit, Alexander Aring

Hi,

this patch is for testing 6CO fields in RA messages with the help of radvd.

I tested it with the following configuration and two or more nodes which can
directly reach each other.

On one node (6LBR, if more 6LBR they need to have the same context
information!):

interface lowpan0
{
        Adv6LBR on;
        AdvSendAdvert on;
        UnicastOnly on;
        AdvCurHopLimit 255;

        prefix 2001::/64 {
                AdvOnLink on;
                AdvAutonomous on;
                AdvRouterAddr on;
        };

        lowpanco {
                ctx 0 {
                        AdvContextCompressionFlag on;
                        AdvContextLength 64;
                        AdvContextPrefix 2001::;
                        AdvLifeTime 1000;
                };
        };
};

On other nodes:

interface lowpan0
{
	Adv6LBR off;
	AdvSendAdvert off;
};

Then you can see that the assigned global link 2001::/64 address will
be compressed. Tested with: ping6 and wireshark on $WPAN interface, when
using 802.15.4 6LoWPAN.

- Alex

Alexander Aring (2):
  device-linux: replace ARPHRD_IEEE802154 to ARPHRD_6LOWPAN
  radvd: rework 6CO handling

 defaults.h      |  3 +++
 device-bsd44.c  |  6 ++++++
 device-linux.c  | 46 +++++++++++++++++++++++++++++++++++++++++++---
 gram.y          | 55 ++++++++++++++++++++++++++++++++++++++++++++++---------
 pathnames.h     |  1 +
 privsep-linux.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 process.c       | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 radvd.c         |  6 ++++++
 radvd.h         | 21 +++++++++++++++++++--
 scanner.l       |  4 +++-
 send.c          | 33 ++++++++++++++++++++++++---------
 11 files changed, 253 insertions(+), 25 deletions(-)

-- 
2.6.1


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [RFC radvd 0/2] 6lowpan: pending radvd patches
@ 2016-02-17  9:14 Alexander Aring
  2016-02-17  9:14 ` [RFC radvd 2/2] radvd: rework 6CO handling Alexander Aring
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Aring @ 2016-02-17  9:14 UTC (permalink / raw)
  To: linux-wpan; +Cc: linux-bluetooth, reubenhwk, s, Alexander Aring

Hi all,

this patch series are my latest version for support 6CO in radvd.
Somebody wants to bring these patches into radvd upstream, see [0].

Nevertheless, I don't have any time to working on this currently so I want
to broadcast somehow my latest state. If there are no issues for radvd
maintainer, then this is great. :-)

Maybe somebody can also work on the ToDo's like C=0 handling at first and
then have some "mechanism" to switch to C=1.

How to setup:

Nodes which sends RA messages need to setup 6CO before.
This is the "lowpanco" field in the configuration.

All others nodes need to run radvd as well, but processing RA messages only.
To setup their 6CO fields, when receiving RA messages.

This can be done by a simple configuration with one entry for 6lowpan
interfaces with "AdvSendAdvert off;".

IMPORTANT NOTE:

This requires the patch which is not mainline yet, to set 6CO option fields
as userspace option. Otherwise the kernel will filter it. See [1]. As well,
you need the pending patches on the list for stateful compression, see [2].

- Alex

[0] https://github.com/reubenhwk/radvd/issues/50#issuecomment-183329181
[1] http://www.spinics.net/lists/linux-wpan/msg03364.html
[2] http://www.spinics.net/lists/linux-wpan/msg03453.html

Alexander Aring (2):
  device-linux: replace ARPHRD_IEEE802154 to ARPHRD_6LOWPAN
  radvd: rework 6CO handling

 defaults.h      |   3 ++
 device-bsd44.c  |  24 ++++++++++
 device-linux.c  |  43 +++++++++++++++--
 gram.y          |  72 ++++++++++++++++++++++------
 pathnames.h     |   4 ++
 privsep-linux.c | 142 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 process.c       |  44 ++++++++++++++++++
 radvd.h         |  18 ++++++-
 scanner.l       |   2 +-
 send.c          |  32 ++++++++-----
 10 files changed, 352 insertions(+), 32 deletions(-)

-- 
2.7.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-17  9:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14 14:07 [RFC radvd 0/2] radvd: 6lowpan 6CO testing patches Alexander Aring
2015-12-14 14:07 ` [RFC radvd 1/2] device-linux: replace ARPHRD_IEEE802154 to ARPHRD_6LOWPAN Alexander Aring
2015-12-14 14:07 ` [RFC radvd 2/2] radvd: rework 6CO handling Alexander Aring
  -- strict thread matches above, loose matches on Subject: below --
2016-02-17  9:14 [RFC radvd 0/2] 6lowpan: pending radvd patches Alexander Aring
2016-02-17  9:14 ` [RFC radvd 2/2] radvd: rework 6CO handling Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).