[riot-commits] [RIOT-OS/RIOT] dbd2bb: gnrc_ipv6: don't recurse into receive for encapsul...

Koen Zandberg koen at bergzand.net
Thu Nov 8 14:30:26 CET 2018


  Branch: refs/heads/2018.10-branch
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: dbd2bb5e45519365a04aac1756a63c84024c1ba2
      https://github.com/RIOT-OS/RIOT/commit/dbd2bb5e45519365a04aac1756a63c84024c1ba2
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2018-11-08 (Thu, 08 Nov 2018)

  Changed paths:
    M sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c

  Log Message:
  -----------
  gnrc_ipv6: don't recurse into receive for encapsulated IPv6

`_decapsulate()` is called by callees of `_receive()` so the call to
the latter function within the first creates a recursion we don't want.
Using `gnrc_netapi` instead removes that and provides the added benefit
that other subscribers to IPv6 are also informed.

(cherry picked from commit 160ccbcf7e023f5c45ed683d25610f1ae490f0e7)


  Commit: e7a2f831bbd4fc422e6fb0747ff16732f5fdb71a
      https://github.com/RIOT-OS/RIOT/commit/e7a2f831bbd4fc422e6fb0747ff16732f5fdb71a
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2018-11-08 (Thu, 08 Nov 2018)

  Changed paths:
    M sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c

  Log Message:
  -----------
  gnrc_ipv6: don't dispatch encapsulated IPv6 headers in central function

Otherwise, an encapsulated IPv6 packet is handled twice. Once in the
central function, once in the specialized decapsulation.

(cherry picked from commit d54ac38f8403e7fc8f409225652e0174d059d129)


  Commit: 7aaa8bbf55ba327c3e70d58b2e0f6f28d420c9af
      https://github.com/RIOT-OS/RIOT/commit/7aaa8bbf55ba327c3e70d58b2e0f6f28d420c9af
  Author: Koen Zandberg <koen at bergzand.net>
  Date:   2018-11-08 (Thu, 08 Nov 2018)

  Changed paths:
    M sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c

  Log Message:
  -----------
  Merge pull request #10348 from miri64/backport/2018.10/gnrc_ipv6/fix/encaps-ipv6-recursion

gnrc_ipv6: don't recurse into receive for encapsulated IPv6 [backport 2018.10]


Compare: https://github.com/RIOT-OS/RIOT/compare/7645c66aeb58...7aaa8bbf55ba
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list