mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
b5af9bdbfe
This patch reworks the handling of compression/decompression of traffic class and flow label handling. The current method is hard to understand, also doesn't checks if we can read the buffer from skb length. I tried to put the shifting operations into static inline functions and comment each steps which I did there to make it hopefully somewhat more readable. The big mess to deal with that is the that the ipv6 header bring the order "DSCP + ECN" but iphc uses "ECN + DSCP". Additional the DCSP + ECN bits are splitted in ipv6_hdr inside the priority and flow_lbl[0] fields. I tested these compressions by using fakelb 802.15.4 driver and manipulate the tc and flow label fields manually in function "__ip6_local_out" before the skb will be send to lower layers. Then I looked up the tc and flow label fields in wireshark on a wpan and lowpan interface. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> |
||
---|---|---|
.. | ||
core.c | ||
iphc.c | ||
Kconfig | ||
Makefile | ||
nhc_dest.c | ||
nhc_fragment.c | ||
nhc_hop.c | ||
nhc_ipv6.c | ||
nhc_mobility.c | ||
nhc_routing.c | ||
nhc_udp.c | ||
nhc.c | ||
nhc.h |