kernel-netlink: Add utility to create XFRM interfaces

This is mainly to see what's necessary to create them (in case we
integrate this into the daemon) and to experiment in our testing
environment without having to add a patched version of iproute2 (the
4.20.0 version in stretch-backports doesn't support XFRM interfaces
yet).  The regular version of iproute2 can be used for other operations
with these interfaces (delete, up, addrs etc.).
This commit is contained in:
Tobias Brunner
2019-04-03 12:00:08 +02:00
parent 735f9e6eb6
commit 888593bb5b
3 changed files with 191 additions and 0 deletions
@@ -24,6 +24,12 @@ libstrongswan_kernel_netlink_la_LIBADD = $(DLLIB)
libstrongswan_kernel_netlink_la_LDFLAGS = -module -avoid-version
ipsec_PROGRAMS = xfrmi
xfrmi_SOURCES = xfrmi.c
xfrmi_LDADD = \
libstrongswan-kernel-netlink.la \
$(top_builddir)/src/libstrongswan/libstrongswan.la \
$(top_builddir)/src/libcharon/libcharon.la
TESTS = kernel_netlink_tests