[LTP] [PATCH v2 0/6] Configure XFRM encryption using direct netlink requests
Martin Doucha
mdoucha@suse.cz
Mon Jun 1 15:20:45 CEST 2026
Rewrite xfrm encryption setup using direct netlink calls instead of executing
the external ip utility. This allows the tests to detect whether the necessary
features are supported by the kernel and exit with TCONF if the support is
missing. Some kernels lack XFRM support even though kernel config claims
the necessary modules should be available.
Martin Doucha (6):
lapi/xfrm.h: Include system XFRM header
xfrm01: Use NETDEV_SET_STATE() to activate loopback
xfrm01: Configure xfrm using direct netlink request
lapi/udp.h: Add fallback constant for ESP-in-TCP
xfrm02: Configure xfrm using direct netlink request
xfrm03: Configure xfrm using direct netlink request
include/lapi/udp.h | 4 ++
include/lapi/xfrm.h | 3 +
testcases/network/sockets/xfrm01.c | 99 ++++++++++++++++++++----------
testcases/network/sockets/xfrm02.c | 91 +++++++++++++++++++--------
testcases/network/sockets/xfrm03.c | 91 ++++++++++++++++++---------
5 files changed, 200 insertions(+), 88 deletions(-)
--
2.54.0
More information about the ltp
mailing list