1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0-or-later 3 # Copyright (c) 2018 Oracle and/or its affiliates. 4 5 TST_TESTFUNC="test" 6 TST_MIN_KVER="4.2" 7 TST_NEEDS_TMPDIR=1 8 TST_TEST_DATA="tcp udp udp_lite dccp" 9 10 . tst_net.sh 11 12 test() 13 { 14 local type="$2" 15 16 tst_res TINFO "test IP_BIND_ADDRESS_NO_PORT with $type socket" 17 # when using '-S' parameter, netstress sets IP_BIND_ADDRESS_NO_PORT 18 tst_netload -T $type -S $(tst_ipaddr) -H $(tst_ipaddr rhost) 19 } 20 21 tst_run 22