summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwan@mandriva.org>2003-06-11 16:30:18 +0000
committerErwan Velu <erwan@mandriva.org>2003-06-11 16:30:18 +0000
commit24c8797e821ad9938eea6e4728b0ba972fe01928 (patch)
tree7c71cd09ce8c84292e403951fecf8fedf41cb40c
parent05f01f1f0652412bb43ef3508cc395ab4bc4b640 (diff)
downloaddrakx-24c8797e821ad9938eea6e4728b0ba972fe01928.tar
drakx-24c8797e821ad9938eea6e4728b0ba972fe01928.tar.gz
drakx-24c8797e821ad9938eea6e4728b0ba972fe01928.tar.bz2
drakx-24c8797e821ad9938eea6e4728b0ba972fe01928.tar.xz
drakx-24c8797e821ad9938eea6e4728b0ba972fe01928.zip
Fixing "dhcp filename bug"
Increasing MAX_ARP_RETRY for slow switches
-rw-r--r--mdk-stage1/dhcp.c4
1 files 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)
{