1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/posix/sockets: set sin6_scope_id in _ep_to_sockaddr()

Fixes https://github.com/RIOT-OS/RIOT/issues/19486
This commit is contained in:
Marian Buschsieweke 2023-05-23 22:04:12 +02:00
parent afa3b134f4
commit 77afc5e637
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -232,6 +232,7 @@ static int _ep_to_sockaddr(const struct _sock_tl_ep *ep,
in6_addr->sin6_family = AF_INET6;
memcpy(&in6_addr->sin6_addr, &ep->addr.ipv6, sizeof(ep->addr.ipv6));
in6_addr->sin6_port = htons(ep->port);
in6_addr->sin6_scope_id = ep->netif;
return sizeof(struct sockaddr_in6);
}
#endif