diff options
author | Matt Fleming <matt.fleming@intel.com> | 2013-06-26 16:06:01 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-06-26 16:10:42 +0100 |
commit | c2a18e547499dfeb473c61df7b6a5894adeac324 (patch) | |
tree | f08bd9d84221ef7de7525d06298c0f6cab5053a2 | |
parent | c5c37402f45d705cf4fee3870e44d6cd14649971 (diff) | |
download | syslinux-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |