mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_sock_udp: set source port when aux local is present
This commit is contained in:
parent
52350852cc
commit
42754b58ea
@ -423,6 +423,7 @@ ssize_t sock_udp_sendv_aux(sock_udp_t *sock,
|
||||
if ((aux != NULL) && (aux->flags & SOCK_AUX_SET_LOCAL)) {
|
||||
local.family = aux->local.family;
|
||||
local.netif = aux->local.netif;
|
||||
src_port = aux->local.port;
|
||||
memcpy(&local.addr, &aux->local.addr, sizeof(local.addr));
|
||||
|
||||
aux->flags &= ~SOCK_AUX_SET_LOCAL;
|
||||
|
Loading…
Reference in New Issue
Block a user