linux-wpan.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 bluetooth-next 0/2] 6lowpan: introduce nhc framework
@ 2014-11-29 21:14 Alexander Aring
  2014-11-29 21:14 ` [PATCHv2 bluetooth-next 1/2] 6lowpan: add generic nhc layer interface Alexander Aring
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alexander Aring @ 2014-11-29 21:14 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: linux-wpan, kernel, Alexander Aring, Jukka Rissanen,
	Martin Townsend, Marcel Holtmann

This patch series introduce the next header compression framework. Currently
we support udp compression/uncompression only. This framework allow to add new
next header compression formats easily.

If somebody wants to add a new header compression format and some information
are missing while calling compression and uncompression callbacks. Please
feel free to make framework changes according these callbacks.

Note:

If building 6lowpan_udp as module please make sure it's loaded before running
rfc6282 udp connection. If it's not loaded we send 6lowpan with raw udp header
and next header compression bit isn't set. Nevertheless if you use rfc6282
connection and 6lowpan_udp isn't loaded following will be printed:

"ieee802154 wpan-phy0 wpan0: received nhc which is not supported. Dropping."

changes since v2:
 - make udp nhc as module as suggested by Marcel Holtmann
 - fix comment header in nhc_udp.c

I didn't make the lowpan_nhc declaration "const" because this will occur
issues with rb_node, id and idmask array. Which will manipulated during
runtime.

Cc: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Cc: Martin Townsend <mtownsend1973@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>

Alexander Aring (2):
  6lowpan: add generic nhc layer interface
  6lowpan: add udp compression via nhc layer

 net/6lowpan/Kconfig   |   7 ++
 net/6lowpan/Makefile  |   6 +-
 net/6lowpan/iphc.c    | 176 ++++----------------------------------------------
 net/6lowpan/nhc.c     | 175 +++++++++++++++++++++++++++++++++++++++++++++++++
 net/6lowpan/nhc.h     | 130 +++++++++++++++++++++++++++++++++++++
 net/6lowpan/nhc_udp.c | 169 ++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 497 insertions(+), 166 deletions(-)
 create mode 100644 net/6lowpan/nhc.c
 create mode 100644 net/6lowpan/nhc.h
 create mode 100644 net/6lowpan/nhc_udp.c

-- 
2.1.3


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

end of thread, other threads:[~2014-12-02 10:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-29 21:14 [PATCHv2 bluetooth-next 0/2] 6lowpan: introduce nhc framework Alexander Aring
2014-11-29 21:14 ` [PATCHv2 bluetooth-next 1/2] 6lowpan: add generic nhc layer interface Alexander Aring
2014-12-01 14:34   ` Alexander Aring
2014-11-29 21:14 ` [PATCHv2 bluetooth-next 2/2] 6lowpan: add udp compression via nhc layer Alexander Aring
2014-12-01 12:33 ` [PATCHv2 bluetooth-next 0/2] 6lowpan: introduce nhc framework Jukka Rissanen
2014-12-01 15:01   ` Alexander Aring
2014-12-02  9:23     ` Jukka Rissanen
2014-12-02 10:12       ` 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).