diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-08 17:26:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-08 17:26:00 +0000 |
commit | 59674bc6c1d8ca7c1b0006854f9463bd46ca72ee (patch) | |
tree | 88afa9c2fd25bfd3e3385175ec6c10fffb4f189a /sbin/dhclient/dhclient.c | |
parent | 727419a21fa3b76267d776626bef335df6e0a26b (diff) |
add 'link-timeout n' seconds option to grammer, from fkr@hazardous.org
default remains 10 seconds.
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 36a7fa5dc5f..d36f635dacb 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.82 2006/03/06 10:45:56 djm Exp $ */ +/* $OpenBSD: dhclient.c,v 1.83 2006/05/08 17:25:59 deraadt Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -315,7 +315,7 @@ main(int argc, char *argv[]) while (!interface_link_status(ifi->name)) { fprintf(stderr, "."); fflush(stderr); - if (++i > 10) { + if (++i > ifi->client->config->link_timeout) { fprintf(stderr, " giving up\n"); exit(1); } |