Skip to content

RFC 6lowpan: introduce generic next header compression layer

Alexander Aring linux-bluetooth linux-wpan 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/86lowpan: add generic nhc layer interfacenet/6lowpan/Makefile net/6lowpan/nhc/Makefile net/6lowpan/nhc/core.c +1 more+306 -02 replies
2/86lowpan: nhc layer udp compressionnet/6lowpan/iphc.c net/6lowpan/nhc/Makefile net/6lowpan/nhc/core.c +2 more+208 -1650 replies
3/86lowpan: add hop-by-hop options skeletonnet/6lowpan/nhc/Makefile net/6lowpan/nhc/core.c net/6lowpan/nhc/hop.c +1 more+78 -20 replies
4/86lowpan: add routing skeletonnet/6lowpan/nhc/Makefile net/6lowpan/nhc/core.c net/6lowpan/nhc/route.c +1 more+69 -10 replies
5/86lowpan: add fragment skeletonnet/6lowpan/nhc/Makefile net/6lowpan/nhc/core.c net/6lowpan/nhc/frag.c +1 more+70 -10 replies
6/86lowpan: add destination options skeletonnet/6lowpan/nhc/Makefile net/6lowpan/nhc/core.c net/6lowpan/nhc/dest.c +1 more+70 -10 replies
7/86lowpan: add mobility skeletonnet/6lowpan/nhc/Makefile net/6lowpan/nhc/core.c net/6lowpan/nhc/mobil.c +1 more+70 -10 replies
8/86lowpan: add ipv6 skeletonnet/6lowpan/nhc/Makefile net/6lowpan/nhc/core.c net/6lowpan/nhc/ipv6.c +1 more+69 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC bluetooth-next 0/8] 6lowpan: introduce generic next header compression layer

Hi,

this patch series introduce a generic interface for the 6LoWPAN header compression. Inside the 6LoWPAN header there is a variable length next header id if the compression bit inside the IPHC header is set. [0] This implementation use a red-black tree to find the nhc structure with the received variable length nhc id. Then it call the uncompression callback on received side. On sending side it used the nexthdr attribute of IPv6 header and call the compression callback on sending side.

We currently support only one next header compression, this is UDP. The callbacks for compression and uncompression contains the necessary informations to do UDP compression/uncompression only. If you need more informations inside the callbacks feel free to change it while supporting new next header compression formats.

It's just a basic support to handle this in a more generic way instead of hacking everything in iphc.c file.

Also adding basic support for RFC6282 next header compression values. We don't these, but we should drop these packets then instead sending garbage to next layer.

It's currently RFC, if nobody screams I will send "real" patches. Maybe we can do some things better.

- Alex

[0] http://tools.ietf.org/html/rfc6282#section-4.1

Alexander Aring (8):
6lowpan: add generic nhc layer interface
6lowpan: nhc layer udp compression
6lowpan: add hop-by-hop options skeleton
6lowpan: add routing skeleton
6lowpan: add fragment skeleton
6lowpan: add destination options skeleton
6lowpan: add mobility skeleton
6lowpan: add ipv6 skeleton

 net/6lowpan/Makefile     |   1 +
 net/6lowpan/iphc.c       | 184 +++++-------------------------------
 net/6lowpan/nhc/Makefile |  10 ++
 net/6lowpan/nhc/core.c   | 238 +++++++++++++++++++++++++++++++++++++++++++++++
 net/6lowpan/nhc/core.h   | 122 ++++++++++++++++++++++++
 net/6lowpan/nhc/dest.c   |  49 ++++++++++
 net/6lowpan/nhc/dest.h   |  11 +++
 net/6lowpan/nhc/frag.c   |  49 ++++++++++
 net/6lowpan/nhc/frag.h   |  11 +++
 net/6lowpan/nhc/hop.c    |  48 ++++++++++
 net/6lowpan/nhc/hop.h    |  11 +++
 net/6lowpan/nhc/ipv6.c   |  48 ++++++++++
 net/6lowpan/nhc/ipv6.h   |  11 +++
 net/6lowpan/nhc/mobil.c  |  49 ++++++++++
 net/6lowpan/nhc/mobil.h  |  11 +++
 net/6lowpan/nhc/route.c  |  48 ++++++++++
 net/6lowpan/nhc/route.h  |  11 +++
 net/6lowpan/nhc/udp.c    | 173 ++++++++++++++++++++++++++++++++++
 net/6lowpan/nhc/udp.h    |   9 ++
 19 files changed, 931 insertions(+), 163 deletions(-)
 create mode 100644 net/6lowpan/nhc/Makefile
 create mode 100644 net/6lowpan/nhc/core.c
 create mode 100644 net/6lowpan/nhc/core.h
 create mode 100644 net/6lowpan/nhc/dest.c
 create mode 100644 net/6lowpan/nhc/dest.h
 create mode 100644 net/6lowpan/nhc/frag.c
 create mode 100644 net/6lowpan/nhc/frag.h
 create mode 100644 net/6lowpan/nhc/hop.c
 create mode 100644 net/6lowpan/nhc/hop.h
 create mode 100644 net/6lowpan/nhc/ipv6.c
 create mode 100644 net/6lowpan/nhc/ipv6.h
 create mode 100644 net/6lowpan/nhc/mobil.c
 create mode 100644 net/6lowpan/nhc/mobil.h
 create mode 100644 net/6lowpan/nhc/route.c
 create mode 100644 net/6lowpan/nhc/route.h
 create mode 100644 net/6lowpan/nhc/udp.c
 create mode 100644 net/6lowpan/nhc/udp.h
Signature · 1 line
2.0.3