[syslinux:pathbased] pxe: add a single-tick timeout for PXE stacks which eat transmits
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sun Feb 28 22:18:06 PST 2010
Commit-ID: 0c1b050fcbebd0242d56c0ba6bfd82f42a33c853
Gitweb: http://syslinux.zytor.com/commit/0c1b050fcbebd0242d56c0ba6bfd82f42a33c853
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 28 Feb 2010 22:15:45 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 28 Feb 2010 22:15:45 -0800
pxe: add a single-tick timeout for PXE stacks which eat transmits
Add a single-tick first-round timeout for PXE stacks which eat the
first transmit under certain circumstances, i.e. gPXE if the ARP table
isn't populated yet.
TODO: encapsulate all send packet/wait for reply code into a common
function.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/fs/pxe/pxe.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 916571b..ac4485c 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -36,8 +36,8 @@ int have_uuid = 0;
static __lowmem char packet_buf[PKTBUF_SIZE] __aligned(16);
const uint8_t TimeoutTable[] = {
- 2, 2, 3, 3, 4, 5, 6, 7, 9, 10, 12, 15, 18, 21, 26, 31, 37, 44, 53, 64, 77,
- 92, 110, 132, 159, 191, 229, 255, 255, 255, 255, 0
+ 1, 2, 2, 3, 3, 4, 5, 6, 7, 9, 10, 12, 15, 18, 21, 26, 31, 37, 44,
+ 53, 64, 77, 92, 110, 132, 159, 191, 229, 255, 255, 255, 255, 0
};
struct tftp_options {
More information about the Syslinux-commits
mailing list