Skip to contentSkip to conversation

selftests: Add udp_repair test

PATCH Superseded Bui Quang Minh 1 participant 1 message Aug 10, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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 79c9eb0034d5..cd20eae9275c 100644
@@ -38,6 +38,7 @@ TEST_GEN_FILES += hwtstamp_config rxtimestamp timestamping txtimestamp
 TEST_GEN_FILES += ipsec
 TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
 TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls
+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