From 24c8797e821ad9938eea6e4728b0ba972fe01928 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 11 Jun 2003 16:30:18 +0000 Subject: Fixing "dhcp filename bug" Increasing MAX_ARP_RETRY for slow switches --- mdk-stage1/dhcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdk-stage1/dhcp.c b/mdk-stage1/dhcp.c index 32c7a932b..9725eca45 100644 --- a/mdk-stage1/dhcp.c +++ b/mdk-stage1/dhcp.c @@ -211,7 +211,7 @@ static void parse_reply(struct bootp_request * breq, struct interface_info * int unsigned char * chptr; unsigned char option, length; - if (breq->bootfile && strlen(breq->bootfile) > 0) + if (breq->bootfile && strlen(breq->bootfile) > 0 && !strcmp(breq->bootfile, "autoinst.cfg.pl")) stage2_kickstart = strdup(breq->bootfile); memcpy(&intf->ip, &breq->yiaddr, 4); @@ -347,7 +347,7 @@ static unsigned long currticks(void) #define BACKOFF_LIMIT 7 #define TICKS_PER_SEC 18 -#define MAX_ARP_RETRIES 4 +#define MAX_ARP_RETRIES 7 static void rfc951_sleep(int exp) { -- cgit v1.2.1