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:
parent
afa3b134f4
commit
77afc5e637
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user