aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-06-26 16:06:01 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-06-26 16:10:42 +0100
commitc2a18e547499dfeb473c61df7b6a5894adeac324 (patch)
treef08bd9d84221ef7de7525d06298c0f6cab5053a2
parentc5c37402f45d705cf4fee3870e44d6cd14649971 (diff)
downloadsyslinux-c2a18e547499dfeb473c61df7b6a5894adeac324.tar.gz
syslinux-c2a18e547499dfeb473c61df7b6a5894adeac324.tar.xz
syslinux-c2a18e547499dfeb473c61df7b6a5894adeac324.zip
efi, udp: fill out the IP TTL fieldsyslinux-6.01-pre3
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@intel.com>
-rw-r--r--efi/udp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/efi/udp.c b/efi/udp.c
index 69706e84..301074d0 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) {