summaryrefslogtreecommitdiff
path: root/relay
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2008-01-03 00:30:14 +0000
committerFrancis Dupont <fdupont@isc.org>2008-01-03 00:30:14 +0000
commitbe62cf0675d84a35d6ce68f1a7ae4b7521c64834 (patch)
tree6df2fbb5d267d67ef0a3df86b4934cd0b2e8cf62 /relay
parent1d9774ab570d77b7f52432c36e64cc7e59c50a59 (diff)
downloadisc-dhcp-be62cf0675d84a35d6ce68f1a7ae4b7521c64834.tar.gz
finer granularity timers
Diffstat (limited to 'relay')
-rw-r--r--relay/dhcrelay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c
index 8563ae04..3df1a586 100644
--- a/relay/dhcrelay.c
+++ b/relay/dhcrelay.c
@@ -34,6 +34,7 @@
#include "dhcpd.h"
#include <syslog.h>
+#include <sys/time.h>
static void usage PROTO ((void));
@@ -266,7 +267,7 @@ main(int argc, char **argv) {
}
/* Get the current time... */
- time(&cur_time);
+ gettimeofday(&cur_tv, NULL);
/* Discover all the network interfaces. */
discover_interfaces (DISCOVER_RELAY);