Skip to contentSkip to conversation

selftests: Add udp_repair test

PATCH In review Bui Quang Minh 1 participant 1 message Aug 11, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 selftests: Add udp_repair test

This is a simple test for UDP_REPAIR in 3 cases:
- Socket is an udp4 socket
- Socket is an udp6 socket with pending ipv4 packets
- Socket is an udp6 socket with pending ipv6 packets

---
 tools/testing/selftests/net/.gitignore   |   1 +
 tools/testing/selftests/net/Makefile     |   1 +
 tools/testing/selftests/net/udp_repair.c | 218 +++++++++++++++++++++++
 3 files changed, 220 insertions(+)
 create mode 100644 tools/testing/selftests/net/udp_repair.c
tools/testing/selftests/net/.gitignore +1 -0
index 19deb9cdf72f..c9daab1721d5 100644
@@ -31,3 +31,4 @@ rxtimestamp
 timestamping
 txtimestamp
 so_netns_cookie
+udp_repair
tools/testing/selftests/net/Makefile +1 -0
index 4f9f73e7a299..602f798c8880 100644
@@ -42,6 +42,7 @@ TEST_GEN_FILES += gro
 TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
 TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls
 TEST_GEN_FILES += toeplitz
+TEST_GEN_PROGS += udp_repair
 
 TEST_FILES := settings
 
tools/testing/selftests/net/udp_repair.c new file +218 -0

218 lines not on this page · raw message

Signature · 1 line
2.17.1