From: Alexander Aring <alex.aring@gmail.com>
To: netdev@vger.kernel.org
Cc: linux-bluetooth@vger.kernel.org, linux-wpan@vger.kernel.org,
kernel@pengutronix.de, mcr@sandelman.ca,
lukasz.duda@nordicsemi.no, martin.gergeleit@hs-rm.de,
marcel@holtmann.org
Subject: RFC: right userspace interface for providing 6lowpan contexts
Date: Wed, 18 Nov 2015 00:03:57 +0100 [thread overview]
Message-ID: <20151117230332.GA6219@omega> (raw)
Hi,
I recently sent some 6lowpan stateful compression patches to netdev. It
provides to setup 6lowpan contexts entries (ipv6 prefixes and prefix-length
by id) via debugfs manually at the moment.
This means, it works when all other "network nodes" also sets the same
ID's inside the table _manually_.
Well, it exists a RFC (and others) [0] to share the prefixes (contexts) inside
the network without manually manipulate the tables.
The rfc6775 describes new ICMPv6 option fields and ICMPv6 messages. I
want to talk about the ICMPv6 messages which are handled by userspace to
handle the necessary option fields.
The case is now, rfc6775 describes 6CO option fields for RA [1]. For this
reason we need an userspace interface to manipulate/get the current
context entries which are currently stored inside the kernel.
These context tables are:
- A per interface declaration.
- Maximum 16 entries.
- Provides: ID, address prefix (can also 128 bit) and prefix-len
My question is what would be the best to do a userspace interface:
Note:
These context tables should only available for 6LoWPAN interface types,
which means: ARPHRD_6LOWPAN.
- netlink entry?
- RTNL netlink?
- 6lowpan netlink?
- We don't currently has any netlink connection for net/6lowpan
branch, but it's possible to add one special "6lowpan" netlink
family to provide all 6LoWPAN configuration which belongs to
ARPHRD_6LOWPAN. We need such interface of course for other
settings as well.
- per interface, sysfs entry
- should _maybe_ looks like the debugfs entries.
Thanks for any suggestion.
- Alex
[0] https://tools.ietf.org/html/rfc6775
[1] https://tools.ietf.org/html/rfc6775#section-5.4
reply other threads:[~2015-11-17 23:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151117230332.GA6219@omega \
--to=alex.aring@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-wpan@vger.kernel.org \
--cc=lukasz.duda@nordicsemi.no \
--cc=marcel@holtmann.org \
--cc=martin.gergeleit@hs-rm.de \
--cc=mcr@sandelman.ca \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).