Lines Matching +full:hi +full:- +full:fi
2 # SPDX-License-Identifier: GPL-2.0
26 echo "Usage: $0 [ -i ] [ -h ]"
27 echo -e "\t-i: use 'ip mptcp' instead of 'pm_nl_ctl'"
28 echo -e "\t-h: help"
31 while getopts "hi" option;do
55 ip netns exec $ns $t -A OUTPUT -p tcp --syn -m mark --mark $m -j ACCEPT
58 ip netns exec $ns $t -A OUTPUT -p tcp --tcp-flags RST RST -m mark --mark 0 -j ACCEPT
60 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark $m -j ACCEPT
61 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark 0 -j DROP
72 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i
73 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad
74 ip -net "$ns1" link set ns1eth$i up
76 ip -net "$ns2" addr add 10.0.$i.2/24 dev ns2eth$i
77 ip -net "$ns2" addr add dead:beef:$i::2/64 dev ns2eth$i nodad
78 ip -net "$ns2" link set ns2eth$i up
81 ip -net "$ns2" route add default via 10.0.$i.1 dev ns2eth$i metric 10$i
102 rm -f "$cin" "$cout"
103 rm -f "$sin" "$sout"
117 if [ $af -eq 6 ];then
119 fi
122 counters=$(ip netns exec $ns $tables -v -L OUTPUT | grep DROP)
127 if [ $v -ne 0 ]; then
129 "not 0 - not all expected packets marked"
132 fi
156 local mptcp_connect="./mptcp_connect -r 20"
165 fi
170 fi
174 $mptcp_connect -t ${timeout_poll} -l -M 1 -p $port -s ${srv_proto} -c "${cmsg}" \
182 $mptcp_connect -t ${timeout_poll} -M 2 -p $port -s ${cl_proto} -c "${cmsg}" \
193 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
195 echo -e "\nnetns ${listener_ns} socket stat for ${port}:" 1>&2
196 ip netns exec ${listener_ns} ss -Menita 1>&2 -o "sport = :$port"
198 echo -e "\nnetns ${connector_ns} socket stat for ${port}:" 1>&2
199 ip netns exec ${connector_ns} ss -Menita 1>&2 -o "dport = :$port"
205 fi
210 fi
220 fi
224 if [ $retc -eq 0 ] && [ $rets -eq 0 ];then
227 fi
252 fi
258 if [ $lret -ne 0 ]; then
263 fi
267 ip netns exec "$ns_sbox" ./mptcp_sockopt -6
271 if [ $lret -ne 0 ]; then
276 fi
292 if [ $lret -ne 0 ]; then
295 fi
303 if [ $lret -ne 0 ];then
308 fi
323 fi
326 for args in "-t tcp" "-r tcp"; do
329 if [ $lret -ne 0 ] ; then
331 fi
332 do_tcpinq_test -6 $args
334 if [ $lret -ne 0 ] ; then
336 fi
339 do_tcpinq_test -r tcp -t tcp