aboutsummaryrefslogtreecommitdiffstats
path: root/efi/udp.c
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2013-11-10 08:50:32 -0500
committerGene Cumm <gene.cumm@gmail.com>2014-01-29 11:55:14 -0500
commit2e266c35093260140602e611ca6a10bb5d1a7e9b (patch)
tree8b5b43ca9e7147ef60b682bd6663312409b70771 /efi/udp.c
parent232fa3ed2e1aa8317906e820c638c2c91558a825 (diff)
downloadsyslinux-2e266c35093260140602e611ca6a10bb5d1a7e9b.tar.gz
syslinux-2e266c35093260140602e611ca6a10bb5d1a7e9b.tar.xz
syslinux-2e266c35093260140602e611ca6a10bb5d1a7e9b.zip
efi: UseDefaultAddress in udp.c/tcp.c
We don't need to re-inform EFI what IPv4 address and subnet mask to use. This change should help to re-use the exising routes. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'efi/udp.c')
-rw-r--r--efi/udp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/efi/udp.c b/efi/udp.c
index b1cae6f7..14817366 100644
--- a/efi/udp.c
+++ b/efi/udp.c
@@ -112,8 +112,7 @@ void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip,
/* Re-use the existing local port number */
udata.StationPort = socket->net.efi.localport;
- memcpy(&udata.StationAddress, &IPInfo.myip, sizeof(IPInfo.myip));
- memcpy(&udata.SubnetMask, &IPInfo.netmask, sizeof(IPInfo.netmask));
+ udata.UseDefaultAddress = TRUE;
memcpy(&udata.RemoteAddress, &ip, sizeof(ip));
udata.RemotePort = port;
udata.AcceptPromiscuous = TRUE;
@@ -336,8 +335,7 @@ void core_udp_sendto(struct pxe_pvt_inode *socket, const void *data,
/* Re-use the existing local port number */
udata.StationPort = socket->net.efi.localport;
- memcpy(&udata.StationAddress, &IPInfo.myip, sizeof(IPInfo.myip));
- memcpy(&udata.SubnetMask, &IPInfo.netmask, sizeof(IPInfo.netmask));
+ udata.UseDefaultAddress = TRUE;
memcpy(&udata.RemoteAddress, &ip, sizeof(ip));
udata.RemotePort = port;
udata.AcceptPromiscuous = TRUE;