fix timewarp in client (server fix later)
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index 4f856ee..ce76c51 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -29,6 +29,7 @@
#include <signal.h>
#include <paths.h>
#include <sys/socket.h>
+#include <sys/sysinfo.h>
#include <stdarg.h>
#include "common.h"
@@ -37,6 +38,14 @@
static int daemonized;
+long uptime(void)
+{
+ struct sysinfo info;
+ sysinfo(&info);
+ printf("uptime %d\n", info.uptime);
+ return info.uptime;
+}
+
/*
* This function makes sure our first socket calls