From 0c1b050fcbebd0242d56c0ba6bfd82f42a33c853 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 28 Feb 2010 22:15:45 -0800 Subject: [PATCH] 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 --- core/fs/pxe/pxe.c | 4 ++-- 1 file 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 { -- 2.7.4