[PATCHv2 bluetooth-next 0/2] 6lowpan: introduce nhc framework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
Cc: Martin Townsend <mtownsend1973@xxxxxxxxx>
Cc: Marcel Holtmann <marcel@xxxxxxxxxxxx>

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

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux