• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2018 Oracle and/or its affiliates.
4
5TST_TESTFUNC="test"
6TST_MIN_KVER="4.2"
7TST_NEEDS_TMPDIR=1
8TST_TEST_DATA="tcp udp udp_lite dccp"
9
10. tst_net.sh
11
12test()
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
21tst_run
22