summaryrefslogtreecommitdiffstats
path: root/customdhcpcd
diff options
context:
space:
mode:
Diffstat (limited to 'customdhcpcd')
-rw-r--r--customdhcpcd/src/dhcpcd.h6
-rw-r--r--customdhcpcd/src/logwriter.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/customdhcpcd/src/dhcpcd.h b/customdhcpcd/src/dhcpcd.h
index 3f4c085..c8df616 100644
--- a/customdhcpcd/src/dhcpcd.h
+++ b/customdhcpcd/src/dhcpcd.h
@@ -37,13 +37,15 @@
#include "common.h"
+#include "../../common/fbgui.h"
+
#define DEFAULT_TIMEOUT 20
#define DEFAULT_LEASETIME 3600 /* 1 hour */
/* added by Niklas Goby, additional field, storing the socket address path for
* communicating with Qt "server" */
-#define DEFAULT_QTSOCKETADDRESS "/var/tmp/qt_c_socket_default"
-#define DEFAULT_GATEWAY_INFO_LOCATION "/var/tmp/gateways_"
+
+
#define QTSOCKETADDRESSLENGTH 255
#define CLASS_ID_MAX_LEN 48
diff --git a/customdhcpcd/src/logwriter.c b/customdhcpcd/src/logwriter.c
index d41bbfb..1e34947 100644
--- a/customdhcpcd/src/logwriter.c
+++ b/customdhcpcd/src/logwriter.c
@@ -197,7 +197,7 @@ void logGatewayToFile(const interface_t *iface, const dhcp_t *dhcp) {
route_t *route;
char path[QTSOCKETADDRESSLENGTH];
- strcpy(path, DEFAULT_GATEWAY_INFO_LOCATION);
+ strcpy(path, DEFAULT_INTERFACE_CONF_LOCATION);
strcat(path, iface->name);
syslog(LOG_INFO, "[fbgui] try to open file: %s", path);