[riot-commits] [RIOT-OS/RIOT] faa47a: gnrc_sixlowpan_iphc: Fixed encoding when COMP=0

Martine Lenders authmillenon at gmail.com
Tue Nov 8 14:34:04 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: faa47a0e03b48d97365a2d5cb7feeac58cafc9a6
      https://github.com/RIOT-OS/RIOT/commit/faa47a0e03b48d97365a2d5cb7feeac58cafc9a6
  Author: Martin Elshuber <martin.elshuber at theobroma-systems.com>
  Date:   2016-11-07 (Mon, 07 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: b582e64b09daaa2c38dfb65396f7a6fcb9a952f9
      https://github.com/RIOT-OS/RIOT/commit/b582e64b09daaa2c38dfb65396f7a6fcb9a952f9
  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: 0c22fffcd1cd9b7afcce22b65afaaa93ef6a71fe
      https://github.com/RIOT-OS/RIOT/commit/0c22fffcd1cd9b7afcce22b65afaaa93ef6a71fe
  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 #6071 from melshuber/iphc_issue

gnrc_sixlowpan_iphc: Fixed encoding when COMP=0


Compare: https://github.com/RIOT-OS/RIOT/compare/5cddbfc66140...0c22fffcd1cd


More information about the commits mailing list