diff options
author | Matt Fleming <matt.fleming@intel.com> | 2013-06-26 16:26:32 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-06-26 16:33:36 +0100 |
commit | cf315191b8f3466879491f06d4f30554cd58374b (patch) | |
tree | 9506029d9d1d8d003826438ff4d60675b3f3f29d | |
parent | c2a18e547499dfeb473c61df7b6a5894adeac324 (diff) | |
download | syslinux-cf315191b8f3466879491f06d4f30554cd58374b.tar.gz syslinux-cf315191b8f3466879491f06d4f30554cd58374b.tar.xz syslinux-cf315191b8f3466879491f06d4f30554cd58374b.zip |
efi, tcp: fill out the IP TTL field
Since the UEFI specification doesn't state that the firmware is
responsible for filling out this field if it's unset (though some will
set a default value) we need to do it ourselves.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | efi/tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -62,6 +62,8 @@ int core_tcp_connect(struct pxe_pvt_inode *socket, uint32_t ip, uint16_t port) ap->RemotePort = port; ap->ActiveFlag = TRUE; /* Initiate active open */ + tdata.TimeToLive = 64; + status = uefi_call_wrapper(tcp->Configure, 2, tcp, &tdata); if (status != EFI_SUCCESS) return -1; |