[syslinux:firmware] efi, tcp: fill out the IP TTL field

syslinux-bot for Matt Fleming matt.fleming at intel.com
Wed Jun 26 08:45:02 PDT 2013


Commit-ID:  cf315191b8f3466879491f06d4f30554cd58374b
Gitweb:     http://www.syslinux.org/commit/cf315191b8f3466879491f06d4f30554cd58374b
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Wed, 26 Jun 2013 16:26:32 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Wed, 26 Jun 2013 16:33:36 +0100

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 at intel.com>

---
 efi/tcp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/efi/tcp.c b/efi/tcp.c
index ab2512d..f041b67 100644
--- a/efi/tcp.c
+++ b/efi/tcp.c
@@ -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;


More information about the Syslinux-commits mailing list