mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #15416 from janosbrodbeck/pr/gcoap/tinydtls_ep_family
pkg/tinydtls: set address family of session endpoint on sock_dtls_recv
This commit is contained in:
commit
20f40091ac
@ -573,6 +573,7 @@ static void _session_to_ep(const session_t *session, sock_udp_ep_t *ep)
|
|||||||
{
|
{
|
||||||
ep->port = session->port;
|
ep->port = session->port;
|
||||||
ep->netif = session->ifindex;
|
ep->netif = session->ifindex;
|
||||||
|
ep->family = AF_INET6;
|
||||||
memcpy(&ep->addr.ipv6, &session->addr, sizeof(ipv6_addr_t));
|
memcpy(&ep->addr.ipv6, &session->addr, sizeof(ipv6_addr_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user