[syslinux:master] efi/udp: core_udp_connect: use SubnetMask not StationAddress for netmask

syslinux-bot for Julien Viard de Galbert jviarddegalbert at online.net
Wed May 31 03:57:05 PDT 2017


Commit-ID:  8a0d48421413f20dc400c58c7e4e7b9ec8d9bc78
Gitweb:     http://www.syslinux.org/commit/8a0d48421413f20dc400c58c7e4e7b9ec8d9bc78
Author:     Julien Viard de Galbert <jviarddegalbert at online.net>
AuthorDate: Wed, 31 May 2017 06:07:49 -0400
Committer:  Gene Cumm <gene.cumm at gmail.com>
CommitDate: Wed, 31 May 2017 06:10:16 -0400

efi/udp: core_udp_connect: use SubnetMask not StationAddress for netmask

Signed-off-by: Julien Viard de Galbert <jviarddegalbert at online.net>
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>

---
 efi/udp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/efi/udp.c b/efi/udp.c
index 1088f47..b0f13ad 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;


More information about the Syslinux-commits mailing list