Hi, this patch series removes the rb data structure for looking up a nhc by nhc id. Instead we using the existing nexthdr lookup array by iterating over it and find the right nhc by nhc id. It's simply not worth it to use such complex handling for such small amount of nhc. As we only support nhc ids which fits into 1 byte and there are not two byte nhc ids values specified yet, we let the nhc layer only handle 1 byte values. If there is the need for 2 byte nhc values we can add support for it. - Alex Alexander Aring (3): net: 6lowpan: remove const from scalars net: 6lowpan: use array for find nhc id net: 6lowpan: constify lowpan_nhc structures net/6lowpan/nhc.c | 103 ++++++-------------------------- net/6lowpan/nhc.h | 38 +++++------- net/6lowpan/nhc_dest.c | 9 +-- net/6lowpan/nhc_fragment.c | 9 +-- net/6lowpan/nhc_ghc_ext_dest.c | 9 +-- net/6lowpan/nhc_ghc_ext_frag.c | 11 +--- net/6lowpan/nhc_ghc_ext_hop.c | 9 +-- net/6lowpan/nhc_ghc_ext_route.c | 9 +-- net/6lowpan/nhc_ghc_icmpv6.c | 9 +-- net/6lowpan/nhc_ghc_udp.c | 9 +-- net/6lowpan/nhc_hop.c | 9 +-- net/6lowpan/nhc_ipv6.c | 11 +--- net/6lowpan/nhc_mobility.c | 9 +-- net/6lowpan/nhc_routing.c | 9 +-- net/6lowpan/nhc_udp.c | 9 +-- 15 files changed, 48 insertions(+), 214 deletions(-) -- 2.31.1