From 28a6afe975c65ee25e5739b1d52eb24b2a8f27c9 Mon Sep 17 00:00:00 2001
From: Eric Andersen <andersen@codepoet.org>
Date: Mon, 20 Mar 2006 17:37:00 +0000
Subject: Roy Walker writes:

Here is a patch against the current subversion repository, that makes
udhcpc have an adjustable timeout.  Works for both foreground and before
it drops to the background.  This brings it more in-line with ISC dhcpc.

Use like so:
udhcpc --timeout=10 ...
or
udhcpc -T 10 ...

Still shooting for 1.1.1 this month?  Would really be great if you could
get this in that release.

Please give credit to Paul Pacheco - ppacheco@gmail.com.
---
 networking/udhcp/dhcpc.h | 1 +
 1 file changed, 1 insertion(+)

(limited to 'networking/udhcp/dhcpc.h')

diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h
index 808e91924..80c3fc2f8 100644
--- a/networking/udhcp/dhcpc.h
+++ b/networking/udhcp/dhcpc.h
@@ -30,6 +30,7 @@ struct client_config_t {
 	uint8_t *fqdn;			/* Optional fully qualified domain name to use */
 	int ifindex;			/* Index number of the interface to use */
 	int retries;			/* Max number of request packets */        
+	int timeout;			/* Number of seconds to try to get a lease */
 	uint8_t arp[6];			/* Our arp address */
 };
 
-- 
cgit v1.2.3-55-g6feb