[riot-commits] [RIOT-OS/RIOT] 8f5561: tinydtls: sock_dtls: only use ifindex with link-lo...

benpicco noreply at github.com
Wed Sep 29 17:57:27 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 8f5561d694eef73238b1066765b2eed74d1efa89
      https://github.com/RIOT-OS/RIOT/commit/8f5561d694eef73238b1066765b2eed74d1efa89
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M pkg/tinydtls/contrib/sock_dtls.c

  Log Message:
  -----------
  tinydtls: sock_dtls: only use ifindex with link-local addresses

For global addresses the out-going interface is typically decided by the
forwarding information base, so _requiring_ the user to set it with
`sock_dtls` is undesirable. This has the caveat, that now on
`sock_udp_send()` in the `_write()` method, the sock does not know via
which network interface to send a packet with a global address, but
again: this is really more a task for the underlying network stack, not
the sock layer.


  Commit: 3253d82eacb0c277ed346b80943e8ba1ecfda1ad
      https://github.com/RIOT-OS/RIOT/commit/3253d82eacb0c277ed346b80943e8ba1ecfda1ad
  Author: benpicco <benjamin.valentin at ml-pa.com>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M pkg/tinydtls/contrib/sock_dtls.c

  Log Message:
  -----------
  Merge pull request #16910 from miri64/tinydtls/bug/no-global-ifindex

tinydtls: sock_dtls: only use ifindex with link-local addresses


Compare: https://github.com/RIOT-OS/RIOT/compare/df52b076d37d...3253d82eacb0


More information about the commits mailing list