Skip to content

Commit

Permalink
efi/udp: core_udp_connect: use SubnetMask not StationAddress for netmask
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Viard de Galbert <jviarddegalbert@online.net>
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
  • Loading branch information
JulienVdG authored and geneC committed May 31, 2017
1 parent 80b0ef5 commit 8a0d484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efi/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip,
} else {
udata.UseDefaultAddress = FALSE;
memcpy(&udata.StationAddress, &IPInfo.myip, sizeof(IPInfo.myip));
memcpy(&udata.StationAddress, &IPInfo.netmask, sizeof(IPInfo.netmask));
memcpy(&udata.SubnetMask, &IPInfo.netmask, sizeof(IPInfo.netmask));
}
memcpy(&udata.RemoteAddress, &ip, sizeof(ip));
udata.RemotePort = port;
Expand Down

0 comments on commit 8a0d484

Please sign in to comment.