Files
linux/tools/testing/selftests/net/.gitignore
Sunday Adelodun 45a1cd8346 selftests: af_unix: Add tests for ECONNRESET and EOF semantics
Add selftests to verify and document Linux’s intended behaviour for
UNIX domain sockets (SOCK_STREAM and SOCK_DGRAM) when a peer closes.
The tests verify that:

 1. SOCK_STREAM returns EOF when the peer closes normally.
 2. SOCK_STREAM returns ECONNRESET if the peer closes with unread data.
 3. SOCK_SEQPACKET returns EOF when the peer closes normally.
 4. SOCK_SEQPACKET returns ECONNRESET if the peer closes with unread data.
 5. SOCK_DGRAM does not return ECONNRESET when the peer closes.

This follows up on review feedback suggesting a selftest to clarify
Linux’s semantics.

Suggested-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Sunday Adelodun <adelodunolaoluwa@yahoo.com>
Link: https://patch.msgid.link/20251113112802.44657-1-adelodunolaoluwa@yahoo.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-11-18 11:33:17 +01:00

69 lines
929 B
Plaintext

# SPDX-License-Identifier: GPL-2.0-only
bind_bhash
bind_timewait
bind_wildcard
busy_poller
cmsg_sender
diag_uid
epoll_busy_poll
fin_ack_lat
gro
hwtstamp_config
io_uring_zerocopy_tx
ioam6_parser
ip_defrag
ip_local_port_range
ipsec
ipv6_flowlabel
ipv6_flowlabel_mgr
ipv6_fragmentation
log.txt
msg_oob
msg_zerocopy
netlink-dumps
nettest
proc_net_pktgen
psock_fanout
psock_snd
psock_tpacket
reuseaddr_conflict
reuseaddr_ports_exhausted
reuseport_addr_any
reuseport_bpf
reuseport_bpf_cpu
reuseport_bpf_numa
reuseport_dualstack
rxtimestamp
sctp_hello
scm_inq
scm_pidfd
scm_rights
sk_bind_sendto_listen
sk_connect_zero_addr
sk_so_peek_off
skf_net_off
socket
so_incoming_cpu
so_netns_cookie
so_txtime
so_rcv_listener
stress_reuseport_listen
tap
tcp_fastopen_backup_key
tcp_inq
tcp_mmap
tcp_port_share
tfo
timestamping
tls
toeplitz
tools
tun
txring_overwrite
txtimestamp
udpgso
udpgso_bench_rx
udpgso_bench_tx
unix_connect
unix_connreset