summaryrefslogtreecommitdiffhomepage
path: root/src/odhcpd.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-06-27 11:33:08 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-06-27 13:17:52 +0200
commit3e4c8ad1a33abfb5f0e5886353ca4e3f2dbfedc1 (patch)
tree2370371349e917e2a8b4007b84ed0e61c9491155 /src/odhcpd.h
parentab7813e71ca43397071b11250bd40007b116e224 (diff)
config: rework code to get rid of IFNAMSIZ usage
Get rid of IFNAMSIZE usage for interface name and ifname variables Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/odhcpd.h')
-rw-r--r--src/odhcpd.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/odhcpd.h b/src/odhcpd.h
index 1803a41..93adca6 100644
--- a/src/odhcpd.h
+++ b/src/odhcpd.h
@@ -16,7 +16,6 @@
#include <netinet/in.h>
#include <netinet/icmp6.h>
#include <netinet/ether.h>
-#include <net/if.h>
#include <stdbool.h>
#include <syslog.h>
@@ -118,8 +117,8 @@ struct interface {
struct list_head head;
int ifindex;
- char ifname[IF_NAMESIZE];
- char name[IF_NAMESIZE];
+ char *ifname;
+ const char *name;
// Runtime data
struct uloop_timeout timer_rs;