Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
/**
* Copyright (C) 2012-2013 Steven Barth <steven@midlink.org>
+ * Copyright (C) 2018 Hans Dedecker <dedeckeh@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License v2 as published by
#include <sys/timerfd.h>
#include <arpa/inet.h>
+#include <libubox/utils.h>
+
#include "odhcpd.h"
#include "dhcpv6.h"
#include <libubox/list.h>
#include <libubox/uloop.h>
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-
// RFC 6106 defines this router advertisement option
#define ND_OPT_ROUTE_INFO 24
#define ND_OPT_RECURSIVE_DNS 25
/**
* Copyright (C) 2012-2013 Steven Barth <steven@midlink.org>
+ * Copyright (C) 2018 Hans Dedecker <dedeckeh@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License v2 as published by
#include <arpa/inet.h>
#include <net/route.h>
+#include <libubox/utils.h>
+
#include "router.h"
#include "odhcpd.h"
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <libubox/utils.h>
+
#include "odhcpd.h"
#include "dhcpv6.h"
#include "dhcpv4.h"