aboutsummaryrefslogtreecommitdiffstats
path: root/efi/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'efi/tcp.c')
-rw-r--r--efi/tcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/efi/tcp.c b/efi/tcp.c
index f041b677..274456d0 100644
--- a/efi/tcp.c
+++ b/efi/tcp.c
@@ -56,8 +56,7 @@ int core_tcp_connect(struct pxe_pvt_inode *socket, uint32_t ip, uint16_t port)
memset(&tdata, 0, sizeof(tdata));
ap = &tdata.AccessPoint;
- memcpy(&ap->StationAddress, &IPInfo.myip, sizeof(IPInfo.myip));
- memcpy(&ap->SubnetMask, &IPInfo.netmask, sizeof(IPInfo.netmask));
+ ap->UseDefaultAddress = TRUE;
memcpy(&ap->RemoteAddress, &ip, sizeof(ip));
ap->RemotePort = port;
ap->ActiveFlag = TRUE; /* Initiate active open */