Home
last modified time | relevance | path

Searched refs:link_num (Results 1 – 10 of 10) sorted by relevance

/external/ltp/testcases/network/stress/route/
Droute6-change-if116 link_num=0
117 while [ $link_num -lt $link_total ]; do
119 lhost_ifname=`get_ifname lhost ${link_num}`
127 rhost_ifname=`get_ifname rhost ${link_num}`
135 initialize_if rhost ${link_num}
138 add_ipv6addr rhost ${link_num} "${IPV6_NETWORK_PRE}:${link_num}" ${RHOST_IPV6_HOST}
144 link_num=`expr $link_num + 1`
164 link_num=0
165 while [ $link_num -lt $link_total ]; do
166 initialize_if lhost ${link_num}
[all …]
Droute4-change-if116 link_num=0
117 while [ $link_num -lt $link_total ]; do
119 lhost_ifname=`get_ifname lhost ${link_num}`
127 rhost_ifname=`get_ifname rhost ${link_num}`
135 initialize_if rhost ${link_num}
138 set_ipv4addr rhost ${link_num} "${IPV4_NETWORK_PRE}.${link_num}" ${RHOST_IPV4_HOST}
144 link_num=`expr $link_num + 1`
166 link_num=0
167 while [ $link_num -lt $link_total ]; do
168 initialize_if lhost ${link_num}
[all …]
/external/ltp/testcases/network/stress/icmp/multi-diffnic/
Dicmp4-multi-diffnic01108 link_num=0
109 while [ $link_num -lt $link_total ]; do
110 initialize_if lhost ${link_num}
111 initialize_if rhost ${link_num}
112 link_num=`expr $link_num + 1`
170 link_num=0
172 while [ $link_num -lt $link_total ]; do
174 lhost_ifname=`get_ifname lhost $link_num`
175 rhost_ifname=`get_ifname rhost $link_num`
180 network_part="10.0.${link_num}"
[all …]
/external/ltp/testcases/network/stress/udp/multi-diffnic/
Dudp4-multi-diffnic01107 link_num=0
108 while [ $link_num -lt $link_total ]; do
110 initialize_if lhost ${link_num}
111 initialize_if rhost ${link_num}
112 link_num=`expr $link_num + 1`
169 link_num=0
171 while [ $link_num -lt $link_total ]; do
173 lhost_ifname=`get_ifname lhost $link_num`
178 rhost_ifname=`get_ifname rhost $link_num`
187 network_part="10.0.${link_num}"
[all …]
/external/ltp/testcases/network/stress/tcp/multi-diffnic/
Dtcp4-multi-diffnic01117 link_num=0
118 while [ $link_num -lt $link_total ]; do
120 rhost_ifname=`get_ifname rhost $link_num`
124 initialize_if lhost ${link_num}
125 initialize_if rhost ${link_num}
127 link_num=`expr $link_num + 1`
194 link_num=0
196 while [ $link_num -lt $link_total ]; do
197 lhost_ifname=`get_ifname lhost $link_num`
203 rhost_ifname=`get_ifname rhost $link_num`
[all …]
/external/ltp/testcases/lib/
Dtest_net.sh151 local link_num="${2:-0}"
153 link_num=$(( $link_num + 1 ))
155 echo "$hwaddrs" | awk '{ print $'"$link_num"' }'
165 local link_num="${2:-0}"
166 link_num="$(( $link_num + 1 ))"
167 echo "$(tst_get_ifaces $type)" | awk '{ print $'"$link_num"' }'
215 local link_num="${2:-0}"
216 local iface="$(tst_iface $type $link_num)"
243 local link_num="${2:-0}"
248 local iface=$(tst_iface $type $link_num)
[all …]
/external/ltp/testcases/network/stress/ns-tools/
Dadd_ipv6addr66 link_num=$2
81 ifname=`get_ifname $host_type $link_num` || exit 1
Dset_ipv4addr66 link_num=$2
82 ifname=`get_ifname $host_type $link_num` || exit 1
Dinitialize_if61 link_num=$2
70 ifname=`get_ifname $host_type $link_num` || exit 1
Dget_ifname60 link_num=$2
79 field=`expr $link_num + 1`