aboutsummaryrefslogtreecommitdiffstats
path: root/dyndhcpd.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-06-03 21:21:57 +0200
committerGravatar Christian Hesse <mail@eworm.de>2015-06-03 21:21:57 +0200
commit659bbd0bef562badec1bc2d3c092a0d8781f6878 (patch)
tree8899cb0bdc4037575efd0c3b5bb0ed950e171231 /dyndhcpd.h
parentd3fda7698f46592208fbb215f89c965cb97098c5 (diff)
downloaddyndhcpd-659bbd0bef562badec1bc2d3c092a0d8781f6878.tar.gz
dyndhcpd-659bbd0bef562badec1bc2d3c092a0d8781f6878.tar.zst
introduce a struct address to store the information
Diffstat (limited to 'dyndhcpd.h')
-rw-r--r--dyndhcpd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dyndhcpd.h b/dyndhcpd.h
index 75724e5..96a7cf3 100644
--- a/dyndhcpd.h
+++ b/dyndhcpd.h
@@ -24,6 +24,11 @@
#include "config.h"
#include "version.h"
+struct address {
+ struct in_addr i;
+ char c[INET_ADDRSTRLEN];
+};
+
/*** replace ***/
int replace(char ** config, size_t *length, const char ** tmp,
const char * template, const char * value);