aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--efi/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/efi/udp.c b/efi/udp.c
index 61397ed3..1088f470 100644
--- a/efi/udp.c
+++ b/efi/udp.c
@@ -397,7 +397,7 @@ void core_udp_sendto(struct pxe_pvt_inode *socket, const void *data,
} 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;