config BR2_PACKAGE_FASTD
	bool "fastd"
	depends on BR2_USE_MMU # fork()
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on !BR2_STATIC_LIBS # libuecc
	select BR2_PACKAGE_LIBUECC
	select BR2_PACKAGE_LIBSODIUM
	select BR2_PACKAGE_LIBSODIUM_FULL
	help
	  Fast and Secure Tunneling Daemon

	  https://github.com/NeoRaider/fastd/wiki

if BR2_PACKAGE_FASTD

config BR2_PACKAGE_FASTD_STATUS_SOCKET
	bool "status socket support"
	default y
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
	select BR2_PACKAGE_JSON_C
	help
	  Enable support for a socket to get fastd's status.

config BR2_PACKAGE_FASTD_OFFLOAD_L2TP
	bool "l2tp offload support"
	select BR2_PACKAGE_LIBMNL
	help
	  L2TP can be offloaded to the Linux kernel, significantly
	  increasing throughput.

endif

comment "fastd needs a toolchain w/ threads, dynamic library"
	depends on BR2_USE_MMU
	depends on !BR2_TOOLCHAIN_HAS_THREADS \
		|| BR2_STATIC_LIBS
