aboutsummaryrefslogtreecommitdiffstats
path: root/efi/udp.c
diff options
context:
space:
mode:
authorJulien Viard de Galbert <jviarddegalbert@online.net>2017-05-31 06:07:49 -0400
committerGene Cumm <gene.cumm@gmail.com>2017-05-31 06:10:16 -0400
commit8a0d48421413f20dc400c58c7e4e7b9ec8d9bc78 (patch)
tree4c7c1acb9f9eba5e3b19b12bba91da1b3d1596df /efi/udp.c
parent80b0ef5ffd6998818b3785c3c15bf2ae73687e09 (diff)
downloadsyslinux-8a0d48421413f20dc400c58c7e4e7b9ec8d9bc78.tar.gz
syslinux-8a0d48421413f20dc400c58c7e4e7b9ec8d9bc78.tar.xz
syslinux-8a0d48421413f20dc400c58c7e4e7b9ec8d9bc78.zip
efi/udp: core_udp_connect: use SubnetMask not StationAddress for netmask
Signed-off-by: Julien Viard de Galbert <jviarddegalbert@online.net> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'efi/udp.c')
-rw-r--r--efi/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/efi/udp.c b/efi/udp.c
index 1088f470..b0f13ad4 100644
--- a/efi/udp.c
+++ b/efi/udp.c
@@ -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;