Lines Matching +full:conf +full:- +full:rst
2 # SPDX-License-Identifier: GPL-2.0
19 rndh=$(printf %x $sec)-$(mktemp -u XXXXXX)
20 ns1="ns1-$rndh"
21 ns2="ns2-$rndh"
22 ns_sbox="ns_sbox-$rndh"
32 ip netns exec $ns $t -A OUTPUT -p tcp --syn -m mark --mark $m -j ACCEPT
34 # RST packets might be handled by a internal dummy socket
35 ip netns exec $ns $t -A OUTPUT -p tcp --tcp-flags RST RST -m mark --mark 0 -j ACCEPT
37 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark $m -j ACCEPT
38 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark 0 -j DROP
47 ip -net $netns link set lo up
48 ip netns exec $netns sysctl -q net.mptcp.enabled=1
49 ip netns exec $netns sysctl -q net.ipv4.conf.all.rp_filter=0
50 ip netns exec $netns sysctl -q net.ipv4.conf.default.rp_filter=0
56 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i
57 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad
58 ip -net "$ns1" link set ns1eth$i up
60 ip -net "$ns2" addr add 10.0.$i.2/24 dev ns2eth$i
61 ip -net "$ns2" addr add dead:beef:$i::2/64 dev ns2eth$i nodad
62 ip -net "$ns2" link set ns2eth$i up
65 ip -net "$ns2" route add default via 10.0.$i.1 dev ns2eth$i metric 10$i
87 rm -f "$cin" "$cout"
88 rm -f "$sin" "$sout"
94 ip -Version > /dev/null 2>&1
95 if [ $? -ne 0 ];then
101 if iptables-legacy -V &> /dev/null; then
102 iptables="iptables-legacy"
103 ip6tables="ip6tables-legacy"
104 elif ! iptables -V &> /dev/null; then
107 elif ! ip6tables -V &> /dev/null; then
119 if [ $af -eq 6 ];then
124 counters=$(ip netns exec $ns $tables -v -L OUTPUT | grep DROP)
129 if [ $v -ne 0 ]; then
130 echo "FAIL: got $tables $values in ns $ns , not 0 - not all expected packets marked" 1>&2
141 ls -l "$1" 1>&2
143 tail -c 27 "$1"
153 if [ $? -ne 0 ] ;then
178 local mptcp_connect="./mptcp_connect -r 20"
196 $mptcp_connect -t ${timeout_poll} -l -M 1 -p $port -s ${srv_proto} -c "${cmsg}" \
204 $mptcp_connect -t ${timeout_poll} -M 2 -p $port -s ${cl_proto} -c "${cmsg}" \
214 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
216 echo -e "\nnetns ${listener_ns} socket stat for ${port}:" 1>&2
217 ip netns exec ${listener_ns} ss -Menita 1>&2 -o "sport = :$port"
219 echo -e "\nnetns ${connector_ns} socket stat for ${port}:" 1>&2
220 ip netns exec ${connector_ns} ss -Menita 1>&2 -o "dport = :$port"
242 if [ $retc -eq 0 ] && [ $rets -eq 0 ];then
256 echo -e "\nMPTCP_TEST_FILE_END_MARKER" >> "$name"
274 if [ $lret -ne 0 ]; then
282 ip netns exec "$ns_sbox" ./mptcp_sockopt -6
285 if [ $lret -ne 0 ]; then
305 if [ $lret -ne 0 ]; then
315 if [ $lret -ne 0 ];then
338 for args in "-t tcp" "-r tcp"; do
341 if [ $lret -ne 0 ] ; then
344 do_tcpinq_test -6 $args
346 if [ $lret -ne 0 ] ; then
351 do_tcpinq_test -r tcp -t tcp
368 if [ $ret -eq 0 ];then
373 if [ $ret -eq 0 ];then