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

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

Commit-ID:  c2a18e547499dfeb473c61df7b6a5894adeac324
Gitweb:     http://www.syslinux.org/commit/c2a18e547499dfeb473c61df7b6a5894adeac324
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Wed, 26 Jun 2013 16:06:01 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Wed, 26 Jun 2013 16:10:42 +0100

efi, udp: fill out the IP TTL field

Some firmware implementations fill out a default value for the Time To
Live field when none is set, others do not. Since the UEFI specification
doesn't mandate that the firmware set this field, we need to do it
ourselves. Pick the recommended value of 64.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

 efi/udp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/efi/udp.c b/efi/udp.c
index 69706e8..301074d 100644
--- a/efi/udp.c
+++ b/efi/udp.c
@@ -105,6 +105,7 @@ void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip,
     memcpy(&udata.RemoteAddress, &ip, sizeof(ip));
     udata.RemotePort = port;
     udata.AcceptPromiscuous = TRUE;
+    udata.TimeToLive = 64;
     status = uefi_call_wrapper(udp->Configure, 2, udp, &udata);
     if (status != EFI_SUCCESS) {

More information about the Syslinux-commits mailing list