aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-10-20 08:31:25 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-10-21 00:49:25 +0200
commitb5af9bdbfe6d497d27e5936a7d110fc5f64e7c0d (patch)
treee4a25089c06714388cc546f5543e1c02f69603ee /security
parent6lowpan: iphc: change define values (diff)
downloadlinux-dev-b5af9bdbfe6d497d27e5936a7d110fc5f64e7c0d.tar.xz
linux-dev-b5af9bdbfe6d497d27e5936a7d110fc5f64e7c0d.zip
6lowpan: rework tc and flow label handling
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions