[riot-commits] [RIOT-OS/RIOT] ac0b36: gnrc_ipv6_nib: improve debug output

Martine Lenders noreply at github.com
Wed Aug 11 12:17:50 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: ac0b36384f1407a41516e0930e6a72d035950dd4
      https://github.com/RIOT-OS/RIOT/commit/ac0b36384f1407a41516e0930e6a72d035950dd4
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

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

  Log Message:
  -----------
  gnrc_ipv6_nib: improve debug output


  Commit: 11e9b7c08f1efae6f52d1feca808dd8e65101a63
      https://github.com/RIOT-OS/RIOT/commit/11e9b7c08f1efae6f52d1feca808dd8e65101a63
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

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

  Log Message:
  -----------
  gnrc_ipv6_nib: only consider NC in gnrc_ipv6_nib_get_next_hop_l2addr()

Consider the following: A node tries to forward a packet to another
host for which it does not know the route yet. It assumes it to be
on-link and starts a neighbor solicitation, putting the node address
in the destinatio cache.

Later the route is known (via a second hop) but the host is still in
the NIB.

The result is that gnrc_ipv6_nib_get_next_hop_l2addr() ends up in the
"nib: %s is in NC or on-link, start address resolution" case and does
not attempt to resolve the route.

This results in the host remaining unreachable even though now a route
is present.


  Commit: c189ed5d1b37e901fd9ffc23c01022db4834b77a
      https://github.com/RIOT-OS/RIOT/commit/c189ed5d1b37e901fd9ffc23c01022db4834b77a
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

  Changed paths:
    M sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h

  Log Message:
  -----------
  gnrc_ipv6_nib: add _nib_onl_nc_get()


  Commit: 5ad58b152ae5111ddae8873d81a8f799a4bbfb7f
      https://github.com/RIOT-OS/RIOT/commit/5ad58b152ae5111ddae8873d81a8f799a4bbfb7f
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

  Changed paths:
    M sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.c
    M sys/net/gnrc/network_layer/ipv6/nib/nib.c

  Log Message:
  -----------
  gnrc_ipv6_nib: make use of _nib_onl_nc_get()


  Commit: de3e5f964a57b5b5fc67bb5924391b911ab50fae
      https://github.com/RIOT-OS/RIOT/commit/de3e5f964a57b5b5fc67bb5924391b911ab50fae
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2021-08-11 (Wed, 11 Aug 2021)

  Changed paths:
    M sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.c
    M sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h
    M sys/net/gnrc/network_layer/ipv6/nib/nib.c

  Log Message:
  -----------
  Merge pull request #16671 from benpicco/gnrc/nib-_nib_onl_get-fix

gnrc/nib: gnrc_ipv6_nib_get_next_hop_l2addr(): only assume neighbor cache entries to always be on-link


Compare: https://github.com/RIOT-OS/RIOT/compare/acc9889ec828...de3e5f964a57


More information about the commits mailing list