Lines Matching full:ns2
28 ns2=""
98 mptcp_lib_ns_init ns1 ns2
101 for netns in "$ns1" "$ns2"; do
111 # ns1 ns2
119 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
124 ip -net "$ns2" addr add 10.0.$i.2/24 dev ns2eth$i
125 ip -net "$ns2" addr add dead:beef:$i::2/64 dev ns2eth$i nodad
126 ip -net "$ns2" link set ns2eth$i up
128 # let $ns2 reach any $ns1 address from any interface
129 ip -net "$ns2" route add default via 10.0.$i.1 dev ns2eth$i metric 10$i
130 ip -net "$ns2" route add default via dead:beef:$i::1 dev ns2eth$i metric 10$i
139 tc -n $ns2 qdisc add dev ns2eth$i root netem rate 20mbit delay 1ms
147 mptcp_lib_ns_exit "${ns1}" "${ns2}"
331 for netns in "$ns1" "$ns2"; do
351 if ! ip netns exec $ns2 $tables -A OUTPUT -p tcp \
370 ip netns exec $ns2 sysctl -q net.mptcp.checksum_enabled=$ns2_enable
383 ip netns exec $ns2 sysctl -q net.mptcp.allow_join_initial_addr_port=$ns2_enable
415 ip netns exec $ns2 $tables \
424 tc -n $ns2 qdisc add dev ns2eth$i clsact || return ${KSFT_SKIP}
425 tc -n $ns2 filter add dev ns2eth$i egress \
439 ip netns exec $ns2 sysctl -q net.mptcp.checksum_enabled=1
453 mptcp_lib_events "${ns2}" "${evts_ns2}" evts_ns2_pid
792 pm_nl_add_endpoint $ns2 $addr flags $flags
842 for netns in "$ns1" "$ns2"; do
1136 ip netns exec $ns2 nstat -as | grep Tcp
1172 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtDataCsumErr")
1174 extra_msg+=" ns2=$count"
1195 local ns_rx=$ns2
1203 ns_tx=$ns2
1255 local ns_tx=$ns2
1262 ns_rx=$ns2
1295 local ns_rx=$ns2
1300 ns_tx=$ns2
1338 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtInfiniteMapTx")
1367 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynTx")
1376 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynTxCreatSkErr")
1385 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynTxBindErr")
1394 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynTxConnectErr")
1434 with_cookie=$(ip netns exec $ns2 sysctl -n net.ipv4.tcp_syncookies)
1435 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynAckRx")
1522 local ns_rx=$ns2
1529 ns_tx=$ns2
1649 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtEchoAddTx")
1667 local subflow_ns=$ns2
1680 addr_ns=$ns2
1732 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtRmAddrTx")
1781 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynAckBackupRx")
1802 cnt2=$(ss -N $ns2 -tOni | grep -c token)
1830 cnt2=$(ss -N $ns2 -inmHM | mptcp_lib_get_info_value "$info2" "$info2")
1844 ss -N $ns2 -inmHM
1848 # $1: subflows in ns1 ; $2: subflows in ns2
1868 cnt2=$(ss -N $ns2 -ti state established state syn-sent state syn-recv |
1880 ss -N $ns2 -ti
1934 run_tests $ns1 $ns2 10.0.1.1
1941 pm_nl_set_limits $ns2 0 0
1942 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1943 run_tests $ns1 $ns2 10.0.1.1
1950 pm_nl_set_limits $ns2 0 1
1951 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1952 run_tests $ns1 $ns2 10.0.1.1
1959 pm_nl_set_limits $ns2 0 1
1960 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1961 run_tests $ns1 $ns2 10.0.1.1
1968 pm_nl_set_limits $ns2 0 2
1969 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1970 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
1971 run_tests $ns1 $ns2 10.0.1.1
1978 pm_nl_set_limits $ns2 0 2
1979 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1980 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
1981 run_tests $ns1 $ns2 10.0.1.1
1988 pm_nl_set_limits $ns2 0 1
1989 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow dev ns2eth3
1990 run_tests $ns1 $ns2 10.0.1.1
2001 pm_nl_set_limits $ns2 0 1
2002 pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow
2003 pm_nl_add_endpoint $ns2 10.0.12.2 flags subflow
2005 run_tests $ns1 $ns2 10.0.1.1
2014 pm_nl_set_limits $ns2 0 2
2015 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2016 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
2018 run_tests $ns1 $ns2 10.0.1.1
2027 pm_nl_set_limits $ns2 0 2
2028 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2029 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
2031 run_tests $ns1 $ns2 10.0.1.1
2042 pm_nl_set_limits $ns2 0 1
2043 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2045 run_tests $ns1 $ns2 10.0.1.1 &
2048 wait_attempt_fail $ns2
2049 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
2064 run_tests $ns1 $ns2 10.0.1.1
2073 pm_nl_set_limits $ns2 1 1
2075 run_tests $ns1 $ns2 10.0.1.1
2087 pm_nl_set_limits $ns2 1 2
2088 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2089 run_tests $ns1 $ns2 10.0.1.1
2099 pm_nl_set_limits $ns2 0 2
2100 pm_nl_add_endpoint $ns2 10.0.3.2 flags signal,subflow
2101 run_tests $ns1 $ns2 10.0.1.1
2103 chk_add_nr 1 1 0 invert # only initiated by ns2
2113 pm_nl_set_limits $ns2 1 3
2114 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2115 pm_nl_add_endpoint $ns2 10.0.4.2 flags subflow
2116 run_tests $ns1 $ns2 10.0.1.1
2127 pm_nl_set_limits $ns2 3 3
2128 run_tests $ns1 $ns2 10.0.1.1
2139 pm_nl_set_limits $ns2 3 3
2140 run_tests $ns1 $ns2 10.0.1.1
2149 pm_nl_set_limits $ns2 4 4
2154 pm_nl_add_endpoint $ns2 10.0.1.2 flags signal
2155 pm_nl_add_endpoint $ns2 10.0.2.2 flags signal
2156 pm_nl_add_endpoint $ns2 10.0.3.2 flags signal
2157 pm_nl_add_endpoint $ns2 10.0.4.2 flags signal
2162 run_tests $ns1 $ns2 10.0.1.1
2191 pm_nl_set_limits $ns2 1 3
2192 pm_nl_add_endpoint $ns2 10.0.3.2 dev ns2eth3 flags subflow
2193 pm_nl_add_endpoint $ns2 10.0.4.2 dev ns2eth4 flags subflow
2195 run_tests $ns1 $ns2 10.0.1.1
2198 chk_stale_nr $ns2 1 5 1
2207 pm_nl_set_limits $ns2 1 3
2208 pm_nl_add_endpoint $ns2 10.0.3.2 dev ns2eth3 flags subflow
2209 pm_nl_add_endpoint $ns2 10.0.4.2 dev ns2eth4 flags subflow
2211 run_tests $ns1 $ns2 10.0.1.1
2214 chk_stale_nr $ns2 1 -1 1
2223 pm_nl_set_limits $ns2 1 2
2224 pm_nl_add_endpoint $ns2 10.0.3.2 dev ns2eth3 flags subflow,backup
2226 run_tests $ns1 $ns2 10.0.1.1
2229 chk_link_usage $ns2 ns2eth3 $cinsent 0
2238 pm_nl_set_limits $ns2 1 2
2239 pm_nl_add_endpoint $ns2 10.0.3.2 dev ns2eth3 flags subflow,backup
2241 run_tests $ns1 $ns2 10.0.1.1
2244 chk_stale_nr $ns2 2 4 2
2245 chk_link_usage $ns2 ns2eth3 $cinsent 50
2254 pm_nl_set_limits $ns2 1 3
2255 pm_nl_add_endpoint $ns2 10.0.3.2 dev ns2eth3 flags subflow,backup
2257 run_tests $ns1 $ns2 10.0.1.1
2260 chk_stale_nr $ns2 1 -1 2
2261 chk_link_usage $ns2 ns2eth3 $cinsent 50
2270 pm_nl_set_limits $ns2 1 1
2273 run_tests $ns1 $ns2 10.0.1.1
2282 pm_nl_set_limits $ns2 1 1
2285 run_tests $ns1 $ns2 dead:beef:1::1
2295 pm_nl_set_limits $ns2 2 2
2297 run_tests $ns1 $ns2 10.0.1.1
2307 pm_nl_set_limits $ns2 2 2
2309 run_tests $ns1 $ns2 10.0.1.1
2321 pm_nl_set_limits $ns2 0 1
2322 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2324 run_tests $ns1 $ns2 10.0.1.1
2334 pm_nl_set_limits $ns2 0 2
2335 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
2336 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2338 run_tests $ns1 $ns2 10.0.1.1
2348 pm_nl_set_limits $ns2 1 1
2350 run_tests $ns1 $ns2 10.0.1.1
2361 pm_nl_set_limits $ns2 1 2
2362 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2364 run_tests $ns1 $ns2 10.0.1.1
2375 pm_nl_set_limits $ns2 1 3
2376 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2377 pm_nl_add_endpoint $ns2 10.0.4.2 flags subflow
2379 run_tests $ns1 $ns2 10.0.1.1
2392 pm_nl_set_limits $ns2 3 3
2394 run_tests $ns1 $ns2 10.0.1.1
2408 pm_nl_set_limits $ns2 2 2
2410 run_tests $ns1 $ns2 10.0.1.1
2422 pm_nl_set_limits $ns2 1 3
2423 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2424 pm_nl_add_endpoint $ns2 10.0.4.2 flags subflow
2426 run_tests $ns1 $ns2 10.0.1.1
2436 pm_nl_set_limits $ns2 3 3
2437 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow id 150
2438 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2439 pm_nl_add_endpoint $ns2 10.0.4.2 flags subflow
2441 run_tests $ns1 $ns2 10.0.1.1
2459 pm_nl_set_limits $ns2 3 3
2461 run_tests $ns1 $ns2 10.0.1.1
2474 pm_nl_set_limits $ns2 3 3
2476 run_tests $ns1 $ns2 10.0.1.1
2487 pm_nl_set_limits $ns2 0 1
2488 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2490 run_tests $ns1 $ns2 10.0.1.1
2500 pm_nl_set_limits $ns2 1 1
2502 run_tests $ns1 $ns2 10.0.1.1
2515 pm_nl_set_limits $ns2 0 1
2517 run_tests $ns1 $ns2 10.0.1.1
2519 chk_cestab_nr $ns2 0
2525 pm_nl_set_limits $ns2 1 1
2527 run_tests $ns1 $ns2 10.0.1.1
2536 pm_nl_set_limits $ns2 0 2
2538 run_tests $ns1 $ns2 10.0.1.1
2540 chk_cestab_nr $ns2 0
2546 pm_nl_set_limits $ns2 0 2
2548 run_tests $ns1 $ns2 dead:beef:1::1
2550 chk_cestab_nr $ns2 0
2556 pm_nl_set_limits $ns2 2 2
2558 run_tests $ns1 $ns2 dead:beef:1::1
2570 pm_nl_set_limits $ns2 0 1
2571 pm_nl_add_endpoint $ns2 dead:beef:3::2 dev ns2eth3 flags subflow
2573 run_tests $ns1 $ns2 dead:beef:1::1
2581 run_tests $ns1 $ns2 dead:beef:1::1
2590 pm_nl_set_limits $ns2 1 1
2592 run_tests $ns1 $ns2 dead:beef:1::1
2601 pm_nl_set_limits $ns2 1 1
2603 run_tests $ns1 $ns2 dead:beef:1::1
2613 pm_nl_set_limits $ns2 1 2
2614 pm_nl_add_endpoint $ns2 dead:beef:3::2 dev ns2eth3 flags subflow
2616 run_tests $ns1 $ns2 dead:beef:1::1
2628 pm_nl_set_limits $ns2 0 1
2629 pm_nl_add_endpoint $ns2 "::ffff:10.0.3.2" flags subflow
2630 run_tests $ns1 $ns2 "::ffff:10.0.1.1"
2637 pm_nl_set_limits $ns2 1 1
2639 run_tests $ns1 $ns2 "::ffff:10.0.1.1"
2647 pm_nl_set_limits $ns2 0 1
2648 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2649 run_tests $ns1 $ns2 "::ffff:10.0.1.1"
2656 pm_nl_set_limits $ns2 1 1
2658 run_tests $ns1 $ns2 "::ffff:10.0.1.1"
2666 pm_nl_set_limits $ns2 0 1
2667 pm_nl_add_endpoint $ns2 "::ffff:10.0.3.2" flags subflow
2668 run_tests $ns1 $ns2 10.0.1.1
2675 pm_nl_set_limits $ns2 1 1
2677 run_tests $ns1 $ns2 10.0.1.1
2685 pm_nl_set_limits $ns2 0 1
2686 pm_nl_add_endpoint $ns2 dead:beef:2::2 flags subflow
2687 run_tests $ns1 $ns2 10.0.1.1
2694 pm_nl_set_limits $ns2 0 1
2695 pm_nl_add_endpoint $ns2 dead:beef:2::10.0.3.2 flags subflow
2696 run_tests $ns1 $ns2 10.0.1.1
2703 pm_nl_set_limits $ns2 0 1
2704 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2705 run_tests $ns1 $ns2 dead:beef:1::1
2715 pm_nl_set_limits $ns2 1 1
2718 run_tests $ns1 $ns2 10.0.1.1
2726 pm_nl_set_limits $ns2 1 1
2729 run_tests $ns1 $ns2 dead:beef:2::1
2737 pm_nl_set_limits $ns2 1 4
2738 pm_nl_add_endpoint $ns2 dead:beef:2::2 flags subflow,fullmesh
2741 run_tests $ns1 $ns2 dead:beef:2::1
2750 pm_nl_set_limits $ns2 2 4
2754 run_tests $ns1 $ns2 dead:beef:1::1
2765 pm_nl_set_limits $ns2 0 1
2766 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow,backup
2768 run_tests $ns1 $ns2 10.0.1.1
2778 pm_nl_set_limits $ns2 1 1
2780 run_tests $ns1 $ns2 10.0.1.1
2791 pm_nl_set_limits $ns2 1 1
2793 run_tests $ns1 $ns2 10.0.1.1
2804 pm_nl_set_limits $ns2 1 1
2806 run_tests $ns1 $ns2 10.0.1.1
2814 pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow,backup
2816 run_tests $ns1 $ns2 10.0.1.1
2824 pm_nl_set_limits $ns2 1 2
2826 pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow,backup
2829 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
2832 ip -net "$ns2" route add 10.0.2.1 via 10.0.1.1 dev ns2eth1 # force this path
2835 run_tests $ns1 $ns2 10.0.1.1
2842 pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow
2844 run_tests $ns1 $ns2 10.0.1.1
2852 pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow
2854 run_tests $ns1 $ns2 10.0.1.1
2920 pm_nl_set_limits $ns2 1 1
2922 run_tests $ns1 $ns2 10.0.1.1
2931 pm_nl_set_limits $ns2 1 2
2932 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2933 run_tests $ns1 $ns2 10.0.1.1
2943 pm_nl_set_limits $ns2 1 1
2945 run_tests $ns1 $ns2 10.0.1.1
2961 pm_nl_set_limits $ns2 1 2
2962 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2964 run_tests $ns1 $ns2 10.0.1.1
2974 pm_nl_set_limits $ns2 1 3
2975 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
2976 pm_nl_add_endpoint $ns2 10.0.4.2 flags subflow
2978 run_tests $ns1 $ns2 10.0.1.1
2989 pm_nl_set_limits $ns2 2 2
2990 run_tests $ns1 $ns2 10.0.1.1
3000 pm_nl_set_limits $ns2 2 2
3001 run_tests $ns1 $ns2 10.0.1.1
3014 timeout 1 ip netns exec ${ns2} \
3028 pm_nl_set_limits $ns2 0 1
3029 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3030 run_tests $ns1 $ns2 10.0.1.1
3037 pm_nl_set_limits $ns2 0 2
3038 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3039 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
3040 run_tests $ns1 $ns2 10.0.1.1
3047 pm_nl_set_limits $ns2 0 2
3048 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3049 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
3050 run_tests $ns1 $ns2 10.0.1.1
3057 pm_nl_set_limits $ns2 1 1
3059 run_tests $ns1 $ns2 10.0.1.1
3068 pm_nl_set_limits $ns2 1 2
3069 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3070 run_tests $ns1 $ns2 10.0.1.1
3079 pm_nl_set_limits $ns2 1 3
3080 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3081 pm_nl_add_endpoint $ns2 10.0.4.2 flags subflow
3082 run_tests $ns1 $ns2 10.0.1.1
3095 pm_nl_set_limits $ns2 0 1
3096 run_tests $ns1 $ns2 10.0.1.1
3107 pm_nl_set_limits $ns2 1 1
3108 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3109 run_tests $ns1 $ns2 10.0.1.1
3113 # subflow allow join id0 ns2
3114 if reset_with_allow_join_id0 "single subflow allow join id0 ns2" 0 1; then
3116 pm_nl_set_limits $ns2 1 1
3117 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3118 run_tests $ns1 $ns2 10.0.1.1
3126 pm_nl_set_limits $ns2 1 1
3128 run_tests $ns1 $ns2 10.0.1.1
3133 # signal address allow join id0 ns2
3135 if reset_with_allow_join_id0 "signal address allow join id0 ns2" 0 1; then
3137 pm_nl_set_limits $ns2 1 1
3139 run_tests $ns1 $ns2 10.0.1.1
3147 pm_nl_set_limits $ns2 2 2
3149 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3150 run_tests $ns1 $ns2 10.0.1.1
3154 # subflow and address allow join id0 ns2
3157 pm_nl_set_limits $ns2 2 2
3159 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3160 run_tests $ns1 $ns2 10.0.1.1
3168 # 2 fullmesh addrs in ns2, added before the connection,
3172 pm_nl_set_limits $ns2 1 4
3173 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow,fullmesh
3174 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow,fullmesh
3176 run_tests $ns1 $ns2 10.0.1.1
3183 # 1 fullmesh addr in ns2, added during the connection.
3186 pm_nl_set_limits $ns2 1 3
3189 pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow,fullmesh
3192 run_tests $ns1 $ns2 10.0.1.1
3199 # 2 fullmesh addrs in ns2, added during the connection.
3202 pm_nl_set_limits $ns2 1 5
3205 run_tests $ns1 $ns2 10.0.1.1
3212 # 2 fullmesh addrs in ns2, added during the connection,
3216 pm_nl_set_limits $ns2 1 4
3219 run_tests $ns1 $ns2 10.0.1.1
3229 pm_nl_set_limits $ns2 4 4
3231 run_tests $ns1 $ns2 10.0.1.1
3241 pm_nl_set_limits $ns2 4 4
3243 run_tests $ns1 $ns2 10.0.1.1
3253 pm_nl_set_limits $ns2 4 4
3255 run_tests $ns1 $ns2 10.0.1.1
3265 pm_nl_set_limits $ns2 4 4
3266 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow,backup,fullmesh
3268 run_tests $ns1 $ns2 10.0.1.1
3280 run_tests $ns1 $ns2 10.0.1.1
3289 run_tests $ns1 $ns2 10.0.1.1
3299 tc -n $ns2 -j -s action show action pedit index 100 | \
3309 run_tests $ns1 $ns2 10.0.1.1
3320 tc -n $ns2 qdisc add dev ns2eth1 root netem rate 1mbit delay 5ms
3322 pm_nl_set_limits $ns2 0 1
3323 pm_nl_add_endpoint $ns2 10.0.2.2 dev ns2eth2 flags subflow
3325 run_tests $ns1 $ns2 10.0.1.1
3339 [ "$1" == "$ns2" ] && evts=$evts_ns2
3353 [ "$1" == "$ns2" ] && evts=$evts_ns2
3367 [ "$1" == "$ns2" ] && evts=$evts_ns2
3386 [ "$1" == "$ns2" ] && evts=$evts_ns2
3423 [ "$1" == "$ns2" ] && evts=$evts_ns2
3435 [ "$1" == "$ns2" ] && evts=$evts_ns2
3483 [ "${ns}" == "ns2" ] && evts="${evts_ns2}"
3508 pm_nl_set_limits $ns2 0 2
3510 run_tests $ns1 $ns2 10.0.1.1
3518 set_userspace_pm $ns2
3520 pm_nl_set_limits $ns2 0 2
3522 run_tests $ns1 $ns2 10.0.1.1
3532 pm_nl_set_limits $ns2 1 1
3533 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3534 run_tests $ns1 $ns2 10.0.1.1
3541 set_userspace_pm $ns2
3543 pm_nl_set_limits $ns2 1 1
3544 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3545 run_tests $ns1 $ns2 10.0.1.1
3554 pm_nl_set_limits $ns2 1 1
3555 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3557 run_tests $ns1 $ns2 10.0.1.1
3566 set_userspace_pm $ns2
3568 pm_nl_set_limits $ns2 0 1
3569 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
3571 run_tests $ns1 $ns2 10.0.1.1
3580 pm_nl_set_limits $ns2 2 2
3582 run_tests $ns1 $ns2 10.0.1.1 & } 2>/dev/null
3612 set_userspace_pm $ns2
3615 run_tests $ns1 $ns2 10.0.1.1 & } 2>/dev/null
3617 wait_mpj $ns2
3618 userspace_pm_add_sf $ns2 10.0.3.2 20
3622 userspace_pm_chk_dump_addr "${ns2}" \
3625 userspace_pm_chk_get_addr "${ns2}" "20" "id 20 flags subflow 10.0.3.2"
3626 userspace_pm_rm_sf $ns2 10.0.3.2 $MPTCP_LIB_EVENT_SUB_ESTABLISHED
3627 userspace_pm_chk_dump_addr "${ns2}" \
3640 set_userspace_pm $ns2
3643 run_tests $ns1 $ns2 10.0.1.1 & } 2>/dev/null
3645 wait_mpj $ns2
3648 userspace_pm_add_sf $ns2 10.0.3.2 0
3649 userspace_pm_chk_dump_addr "${ns2}" \
3661 set_userspace_pm $ns2
3664 run_tests $ns1 $ns2 10.0.1.1 & } 2>/dev/null
3666 wait_mpj $ns2
3667 userspace_pm_add_sf $ns2 10.0.3.2 20
3671 userspace_pm_rm_sf $ns2 10.0.1.2
3686 pm_nl_set_limits $ns2 1 1
3688 run_tests $ns1 $ns2 10.0.1.1 & } 2>/dev/null
3716 pm_nl_set_limits $ns2 2 2
3719 run_tests $ns1 $ns2 10.0.1.1 & } 2>/dev/null
3724 $ns2 10.0.2.2 id 1 flags implicit
3728 pm_nl_add_endpoint $ns2 10.0.2.2 id 33 2>/dev/null
3730 $ns2 10.0.2.2 id 1 flags implicit
3732 pm_nl_add_endpoint $ns2 10.0.2.2 flags signal
3734 $ns2 10.0.2.2 id 1 flags signal
3738 if reset_with_tcp_filter "delete and re-add" ns2 10.0.3.2 REJECT OUTPUT &&
3742 pm_nl_set_limits $ns2 0 3
3743 pm_nl_add_endpoint $ns2 10.0.1.2 id 1 dev ns2eth1 flags subflow
3744 pm_nl_add_endpoint $ns2 10.0.2.2 id 2 dev ns2eth2 flags subflow
3746 run_tests $ns1 $ns2 10.0.1.1 & } 2>/dev/null
3749 wait_mpj $ns2
3751 $ns2 10.0.2.2 id 2 flags subflow dev ns2eth2
3755 pm_nl_del_endpoint $ns2 2 10.0.2.2
3760 pm_nl_add_endpoint $ns2 10.0.2.2 id 2 dev ns2eth2 flags subflow
3761 wait_mpj $ns2
3765 pm_nl_add_endpoint $ns2 10.0.3.2 id 3 flags subflow
3766 wait_attempt_fail $ns2
3770 ip netns exec "${ns2}" ${iptables} -D OUTPUT -s "10.0.3.2" -p tcp -j REJECT
3771 pm_nl_del_endpoint $ns2 3 10.0.3.2
3772 pm_nl_add_endpoint $ns2 10.0.3.2 id 3 flags subflow
3773 wait_mpj $ns2
3779 pm_nl_del_endpoint $ns2 1 10.0.1.2
3784 pm_nl_add_endpoint $ns2 10.0.1.2 id 1 dev ns2eth1 flags subflow
3785 wait_mpj $ns2
3801 chk_evt_nr ns2 MPTCP_LIB_EVENT_CREATED 1
3802 chk_evt_nr ns2 MPTCP_LIB_EVENT_ESTABLISHED 1
3803 chk_evt_nr ns2 MPTCP_LIB_EVENT_ANNOUNCED 0
3804 chk_evt_nr ns2 MPTCP_LIB_EVENT_REMOVED 0
3805 chk_evt_nr ns2 MPTCP_LIB_EVENT_SUB_ESTABLISHED 6
3806 chk_evt_nr ns2 MPTCP_LIB_EVENT_SUB_CLOSED 5 # one has been closed before estab
3817 pm_nl_set_limits $ns2 3 3
3823 run_tests $ns1 $ns2 10.0.1.1 & } 2>/dev/null
3826 wait_mpj $ns2
3840 wait_mpj $ns2
3850 wait_mpj $ns2
3860 wait_mpj $ns2
3874 chk_evt_nr ns2 MPTCP_LIB_EVENT_CREATED 1
3875 chk_evt_nr ns2 MPTCP_LIB_EVENT_ESTABLISHED 1
3876 chk_evt_nr ns2 MPTCP_LIB_EVENT_ANNOUNCED 6
3877 chk_evt_nr ns2 MPTCP_LIB_EVENT_REMOVED 4
3878 chk_evt_nr ns2 MPTCP_LIB_EVENT_SUB_ESTABLISHED 5
3879 chk_evt_nr ns2 MPTCP_LIB_EVENT_SUB_CLOSED 3
3888 if reset_with_tcp_filter "flush re-add" ns2 10.0.3.2 REJECT OUTPUT &&
3891 pm_nl_set_limits $ns2 1 2
3894 pm_nl_add_endpoint $ns2 10.0.3.2 id 3 flags subflow
3896 run_tests $ns1 $ns2 10.0.1.1 & } 2>/dev/null
3899 wait_attempt_fail $ns2
3903 pm_nl_flush_endpoint $ns2
3905 wait_rm_addr $ns2 0
3906 ip netns exec "${ns2}" ${iptables} -D OUTPUT -s "10.0.3.2" -p tcp -j REJECT
3907 pm_nl_add_endpoint $ns2 10.0.3.2 id 3 flags subflow
3908 wait_mpj $ns2
3910 wait_mpj $ns2