source "package/libmicrohttpd/Config.in"
source "package/libmnl/Config.in"
source "package/libmodbus/Config.in"
+source "package/libndp/Config.in"
source "package/libnetfilter_acct/Config.in"
source "package/libnetfilter_conntrack/Config.in"
source "package/libnetfilter_cthelper/Config.in"
--- /dev/null
+config BR2_PACKAGE_LIBNDP
+ bool "libndp"
+ depends on BR2_INET_IPV6
+ help
+ This package contains a library which provides a wrapper
+ for IPv6 Neighbor Discovery Protocol. It also provides a tool
+ named ndptool for sending and receiving NDP messages.
+
+ https://github.com/jpirko/libndp
+
+comment "libndp needs a toolchain w/ IPv6"
+ depends on !BR2_INET_IPV6
--- /dev/null
+Add missing <stdarg.h> include for va_list
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/include/ndp.h
+===================================================================
+--- a/include/ndp.h
++++ b/include/ndp.h
+@@ -20,6 +20,7 @@
+ #ifndef _NDP_H_
+ #define _NDP_H_
+
++#include <stdarg.h>
+ #include <stdbool.h>
+ #include <netinet/in.h>
+
--- /dev/null
+################################################################################
+#
+# libndp
+#
+################################################################################
+
+LIBNDP_VERSION = v1.2
+LIBNDP_SITE = $(call github,jpirko,libndp,$(LIBNDP_VERSION))
+LIBNDP_LICENSE = LGPLv2.1+
+LIBNDP_LICENSE_FILES = COPYING
+LIBNDP_AUTORECONF = YES
+LIBNDP_INSTALL_STAGING = YES
+LIBNDP_CONF_OPT = --disable-debug
+
+$(eval $(autotools-package))