• Home
  • Raw
  • Download

Lines Matching +full:2 +full:ns

8 ns="ns1-$rndh"
12 timeout_test=$((timeout_poll * 2 + 1))
21 ip netns pids "${ns}" | xargs --no-run-if-empty kill -SIGUSR1 &>/dev/null
24 [ -z "$(ip netns pids "${ns}")" ] && break
31 ip netns pids "${ns}" | xargs --no-run-if-empty kill -SIGKILL &>/dev/null
33 ip netns del $ns
38 ip -Version > /dev/null 2>&1
51 ip netns exec $ns cat /proc/net/protocols | awk '$1~/^MPTCP$/{print $3}'
57 local expected=$2
86 __chk_nr "ss -inmHMN $ns | $condition" "$@"
107 nr=$(ss -inmHMN $ns | $condition)
143 local expected=$2
146 __chk_nr "ss -N $ns -Ml '$filter' | grep -c LISTEN" "$expected" "$msg" 0
169 local msg="....chk ${2:-${expected}} msk in use"
176 listen_nr=$(ss -N "${ns}" -Ml | grep -c LISTEN)
189 # $1: ns, $2: port
193 local port="${2}"
200 awk "BEGIN {rc=1} {if (\$2 ~ /:${port_hex}\$/ && \$4 ~ /0A/) {rc=0; exit}} END {exit rc}" &&
210 local msg="....chk ${2:-${expected}} cestab"
216 __chk_nr "mptcp_lib_get_counter ${ns} MPTcpExtMPCurrEstab" \
223 local port="${2}"
235 ip netns add $ns
236 ip -n $ns link set dev lo up
240 ip netns exec $ns \
243 wait_local_port_listen $ns 10000
249 ip netns exec $ns \
252 wait_connected $ns 10000
253 chk_msk_nr 2 "after MPC handshake "
254 chk_msk_remote_key_nr 2 "....chk remote_key"
256 chk_msk_inuse 2
257 chk_msk_cestab 2
260 chk_msk_inuse 0 "2->0"
261 chk_msk_cestab 0 "2->0"
265 ip netns exec $ns \
268 wait_local_port_listen $ns 10001
271 ip netns exec $ns \
274 wait_connected $ns 10001
287 ip netns exec $ns \
291 wait_local_port_listen $ns $((NR_CLIENTS + 10001))
296 ip netns exec $ns \
301 wait_msk_nr $((NR_CLIENTS*2)) "many msk socket present"
302 chk_msk_inuse $((NR_CLIENTS*2)) "many"
303 chk_msk_cestab $((NR_CLIENTS*2)) "many"