[riot-notifications] [RIOT-OS/RIOT] tinydtls: sock_dtls: only use ifindex with link-local addresses (#16910)

Martine Lenders notifications at github.com
Wed Sep 29 14:24:40 CEST 2021


@miri64 commented on this pull request.



> @@ -813,7 +813,13 @@ static void _ep_to_session(const sock_udp_ep_t *ep, session_t *session)
     session->port = ep->port;
     session->size = sizeof(ipv6_addr_t) +       /* addr */
                     sizeof(unsigned short);     /* port */
-    session->ifindex = ep->netif;
+    if ((ep->addr.ipv6[0] == 0xfe) && (ep->addr.ipv6[0] == 0x80)) {

Done and squashed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16910#discussion_r718455708
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210929/4fcb9ae7/attachment.htm>


More information about the notifications mailing list