mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #1795 from sgso/byte-order-udp-sockaddr
udp: fix byte order in sockaddr6_t
This commit is contained in:
commit
94528fef46
@ -155,7 +155,7 @@ int32_t udp_recvfrom(int s, void *buf, uint32_t len, int flags, sockaddr6_t *fro
|
||||
memcpy(&from->sin6_addr, &ipv6_header->srcaddr, 16);
|
||||
from->sin6_family = AF_INET6;
|
||||
from->sin6_flowinfo = 0;
|
||||
from->sin6_port = NTOHS(udp_header->src_port);
|
||||
from->sin6_port = udp_header->src_port;
|
||||
*fromlen = sizeof(sockaddr6_t);
|
||||
|
||||
msg_reply(&m_recv, &m_send);
|
||||
|
Loading…
Reference in New Issue
Block a user