dhcp: Port the plugin to FreeBSD/macOS

This also refactors the BPF handling so it can be shared between the
dhcp and farp plugins.  The latter is adapted accordingly.

Closes strongswan/strongswan#2047

Co-authored-by: Tobias Brunner <[email protected]>
This commit is contained in:
Dan James
2024-02-19 09:17:53 +01:00
committed by Tobias Brunner
co-authored by Tobias Brunner
parent 10a876d54c
commit 187c72d1af
6 changed files with 973 additions and 615 deletions
+5
View File
@@ -147,6 +147,11 @@ if USE_SYSLOG
bus/listeners/sys_logger.c bus/listeners/sys_logger.h
endif
if USE_PF_HANDLER
libcharon_la_SOURCES += \
network/pf_handler.c network/pf_handler.h
endif
daemon.lo : $(top_builddir)/config.status
AM_CPPFLAGS = \