[riot-commits] [RIOT-OS/RIOT] 6e1521: gnrc_sixlowpan_iphc: Fixed encoding when COMP=0
Martine Lenders
authmillenon at gmail.com
Tue Nov 8 17:40:17 CET 2016
Branch: refs/heads/2016.10-branch
Home: https://github.com/RIOT-OS/RIOT
Commit: 6e15213c9d9ccaf8eb4c53941d06f146499372b9
https://github.com/RIOT-OS/RIOT/commit/6e15213c9d9ccaf8eb4c53941d06f146499372b9
Author: Martin Elshuber <martin.elshuber at theobroma-systems.com>
Date: 2016-11-08 (Tue, 08 Nov 2016)
Changed paths:
M sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c
Log Message:
-----------
gnrc_sixlowpan_iphc: Fixed encoding when COMP=0
Summary:
Even ehen COMP is cleared, the algorithm always elides part of the address when a matching
context is found.
This behviour occurs because in the line
if ((src_ctx != NULL) || ipv6_addr_is_link_local(&(ipv6_hdr->src)))
the COMP bit is not tested.
This patch fixes the problem by setting [src|dst]_ctx to NULL if the
context must not be used.
Commit: 4d213f9ba98c3f0b4841be64843f67774636e289
https://github.com/RIOT-OS/RIOT/commit/4d213f9ba98c3f0b4841be64843f67774636e289
Author: Martin Elshuber <martin.elshuber at theobroma-systems.com>
Date: 2016-11-08 (Tue, 08 Nov 2016)
Changed paths:
M sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c
Log Message:
-----------
gnrc_sixlowpan_iphc.c: Updated comments some logic
Commit: aa3134a6d4fbf379d0a644963496ff378dcc04db
https://github.com/RIOT-OS/RIOT/commit/aa3134a6d4fbf379d0a644963496ff378dcc04db
Author: Martine Lenders <authmillenon at gmail.com>
Date: 2016-11-08 (Tue, 08 Nov 2016)
Changed paths:
M sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c
Log Message:
-----------
Merge pull request #6077 from melshuber/2016.10-iphc
gnrc_sixlowpan_iphc: Fixed encoding when COMP=0; backport of #6071
Compare: https://github.com/RIOT-OS/RIOT/compare/66dfb8d4be6c...aa3134a6d4fb
More information about the commits
mailing list