]> git.baikalelectronics.ru Git - kernel.git/commit
6lowpan: iphc: change define values
authorAlexander Aring <alex.aring@gmail.com>
Tue, 20 Oct 2015 06:31:24 +0000 (08:31 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 20 Oct 2015 22:49:25 +0000 (00:49 +0200)
commitdaab7618b35a67b9366d348e9aee24d39610eb6c
treedd06fc315fcfe90b0625497367885a96e95c4853
parent5ddde5087e0ffe99a740115abcf953642753b7ba
6lowpan: iphc: change define values

This patch has the main goal to delete shift operations. Instead we
doing masks and equals afterwards. E.g. for the SAM evaluation we
masking only the SAM value which fits in iphc1 byte, then comparing with
all possible SAM values over a switch case statement. We will not
shifting the SAM value to somewhat readable anymore.
Additional this patch slighty change the naming style like RFC 6282,
e.g. TTL to HLIM and we will drop an errno now if CID flag is set,
because we don't support it.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/6lowpan/iphc.c