mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 03:55:09 +08:00
2c042e8e54
bhash2 split the bind() validation logic into wildcard and non-wildcard cases. Let's add a test to catch future regression. Before the previous patch: # ./bind_timewait TAP version 13 1..2 # Starting 2 tests from 3 test cases. # RUN bind_timewait.localhost.1 ... # bind_timewait.c:87:1:Expected ret (0) == -1 (-1) # 1: Test terminated by assertion # FAIL bind_timewait.localhost.1 not ok 1 bind_timewait.localhost.1 # RUN bind_timewait.addrany.1 ... # OK bind_timewait.addrany.1 ok 2 bind_timewait.addrany.1 # FAILED: 1 / 2 tests passed. # Totals: pass:1 fail:1 xfail:0 xpass:0 skip:0 error:0 After: # ./bind_timewait TAP version 13 1..2 # Starting 2 tests from 3 test cases. # RUN bind_timewait.localhost.1 ... # OK bind_timewait.localhost.1 ok 1 bind_timewait.localhost.1 # RUN bind_timewait.addrany.1 ... # OK bind_timewait.addrany.1 ok 2 bind_timewait.addrany.1 # PASSED: 2 / 2 tests passed. # Totals: pass:2 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Acked-by: Joanne Koong <joannelkoong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
50 lines
677 B
Plaintext
50 lines
677 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
bind_bhash
|
|
bind_timewait
|
|
csum
|
|
cmsg_sender
|
|
diag_uid
|
|
fin_ack_lat
|
|
gro
|
|
hwtstamp_config
|
|
ioam6_parser
|
|
ip_defrag
|
|
ipsec
|
|
ipv6_flowlabel
|
|
ipv6_flowlabel_mgr
|
|
msg_zerocopy
|
|
nettest
|
|
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
|
|
sk_bind_sendto_listen
|
|
sk_connect_zero_addr
|
|
socket
|
|
so_incoming_cpu
|
|
so_netns_cookie
|
|
so_txtime
|
|
stress_reuseport_listen
|
|
tap
|
|
tcp_fastopen_backup_key
|
|
tcp_inq
|
|
tcp_mmap
|
|
test_unix_oob
|
|
timestamping
|
|
tls
|
|
toeplitz
|
|
tun
|
|
txring_overwrite
|
|
txtimestamp
|
|
udpgso
|
|
udpgso_bench_rx
|
|
udpgso_bench_tx
|
|
unix_connect
|