]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftest: tun: Introduce tuntap_helpers.h header for TUN/TAP testing
authorXu Du <xudu@redhat.com>
Wed, 21 Jan 2026 10:04:56 +0000 (18:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Jan 2026 19:43:28 +0000 (11:43 -0800)
commita942fcd72e9736a0c49b60160f29dc5bb01d6f89
tree3bba42e1139c4e24c2a85a82c298390a81488446
parente073c118db0217e1dab14eb0088e7c6a8bf9ef63
selftest: tun: Introduce tuntap_helpers.h header for TUN/TAP testing

Introduce rtnetlink manipulation and packet construction helpers that
will simplify the later creation of more related test cases. This avoids
duplicating logic across different test cases.

This new header will contain:
 - YNL-based netlink management utilities.
 - Helpers for ip link, ip address, ip neighbor and ip route operations.
 - Packet construction and manipulation helpers.

Signed-off-by: Xu Du <xudu@redhat.com>
Link: https://patch.msgid.link/91f905715c69c75f7bf72d43388921fde6c34989.1768979440.git.xudu@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tuntap_helpers.h [new file with mode: 0644]