[riot-commits] [RIOT-OS/RIOT] d2b6f7: gnrc_ipv6_nib: consider all prefixes when deciding...

Martine Lenders noreply at github.com
Mon Jun 7 21:58:06 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: d2b6f79143d3f81f32513b594c0246be0adc507c
      https://github.com/RIOT-OS/RIOT/commit/d2b6f79143d3f81f32513b594c0246be0adc507c
  Author: Benjamin Valentin <benjamin.valentin at ml-pa.com>
  Date:   2021-06-07 (Mon, 07 Jun 2021)

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

  Log Message:
  -----------
  gnrc_ipv6_nib: consider all prefixes when deciding on-link next hop

Consider the following configuration:

    nib prefix
    2001:16b8:4569:88fc::/62 dev #7  expires 7081 sec deprecates 3481 sec
    2001:16b8:4569:88fe::/63 dev #6

If `_on_link()` stops at the first match, a packet received from #7 with a
destination in the downstream subnet in #6 would always be sent back via #7
if this happens to be the first entry in the list.

Instead, consider all prefixes and return the one that is the closest match.


  Commit: d7ea20f13783f25f2727f9980f57cfa0df202c4e
      https://github.com/RIOT-OS/RIOT/commit/d7ea20f13783f25f2727f9980f57cfa0df202c4e
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2021-06-07 (Mon, 07 Jun 2021)

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

  Log Message:
  -----------
  Merge pull request #16532 from benpicco/nib-nce_on_link-fix

gnrc_ipv6_nib: consider all prefixes when deciding on-link next hop


Compare: https://github.com/RIOT-OS/RIOT/compare/6f369f43811f...d7ea20f13783


More information about the commits mailing list