Lines Matching refs:ns1
29 ns1="ns1-$rndh"
36 ip netns del $ns1
49 ip netns add $ns1 || exit $ksft_skip
50 ip -net $ns1 link set lo up
51 ip netns exec $ns1 sysctl -q net.mptcp.enabled=1
78 check "ip netns exec $ns1 ./pm_nl_ctl dump" "" "defaults addr list"
80 default_limits="$(ip netns exec $ns1 ./pm_nl_ctl limits)"
82 check "ip netns exec $ns1 ./pm_nl_ctl limits" "accept 0
86 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1
87 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.2 flags subflow dev lo
88 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.3 flags signal,backup
89 check "ip netns exec $ns1 ./pm_nl_ctl get 1" "id 1 flags 10.0.1.1" "simple add/get addr"
91 check "ip netns exec $ns1 ./pm_nl_ctl dump" \
96 ip netns exec $ns1 ./pm_nl_ctl del 2
97 check "ip netns exec $ns1 ./pm_nl_ctl get 2" "" "simple del addr"
98 check "ip netns exec $ns1 ./pm_nl_ctl dump" \
102 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.3 2>/dev/null
103 check "ip netns exec $ns1 ./pm_nl_ctl get 4" "" "duplicate addr"
105 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.4 flags signal
106 check "ip netns exec $ns1 ./pm_nl_ctl get 4" "id 4 flags signal 10.0.1.4" "id addr increment"
109 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.$i flags signal >/dev/null 2>&1
111 check "ip netns exec $ns1 ./pm_nl_ctl get 9" "id 9 flags signal 10.0.1.9" "hard addr limit"
112 check "ip netns exec $ns1 ./pm_nl_ctl get 10" "" "above hard addr limit"
114 ip netns exec $ns1 ./pm_nl_ctl del 9
116 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.9 id $i
117 ip netns exec $ns1 ./pm_nl_ctl del $i
119 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags 10.0.1.1
127 ip netns exec $ns1 ./pm_nl_ctl flush
128 check "ip netns exec $ns1 ./pm_nl_ctl dump" "" "flush addrs"
130 ip netns exec $ns1 ./pm_nl_ctl limits 9 1 2>/dev/null
131 check "ip netns exec $ns1 ./pm_nl_ctl limits" "$default_limits" "rcv addrs above hard limit"
133 ip netns exec $ns1 ./pm_nl_ctl limits 1 9 2>/dev/null
134 check "ip netns exec $ns1 ./pm_nl_ctl limits" "$default_limits" "subflows above hard limit"
136 ip netns exec $ns1 ./pm_nl_ctl limits 8 8
137 check "ip netns exec $ns1 ./pm_nl_ctl limits" "accept 8
140 ip netns exec $ns1 ./pm_nl_ctl flush
141 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1
142 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.2
143 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.3 id 100
144 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.4
145 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.5 id 254
146 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.6
147 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.7
148 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.8
149 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags 10.0.1.1
158 ip netns exec $ns1 ./pm_nl_ctl flush
159 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.1
160 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.2 id 254
161 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.3
162 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.4
163 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.5 id 253
164 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.6
165 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.7
166 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.8
167 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags 10.0.0.1
176 ip netns exec $ns1 ./pm_nl_ctl flush
177 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1 flags subflow
178 ip netns exec $ns1 ./pm_nl_ctl set 10.0.1.1 flags backup
179 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \
181 ip netns exec $ns1 ./pm_nl_ctl set 10.0.1.1 flags nobackup
182 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \
186 ip netns exec $ns1 ./pm_nl_ctl set id 1 flags fullmesh 2>/dev/null
187 if ip netns exec $ns1 ./pm_nl_ctl dump | grep -q "fullmesh" ||
189 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \
191 ip netns exec $ns1 ./pm_nl_ctl set id 1 flags nofullmesh
192 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \
194 ip netns exec $ns1 ./pm_nl_ctl set id 1 flags backup,fullmesh
195 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \