Lines Matching refs:ns1
27 ns1="ns1-$rndh"
34 ip netns del $ns1
45 ip netns add $ns1 || exit $ksft_skip
46 ip -net $ns1 link set lo up
47 ip netns exec $ns1 sysctl -q net.mptcp.enabled=1
71 check "ip netns exec $ns1 ./pm_nl_ctl dump" "" "defaults addr list"
72 check "ip netns exec $ns1 ./pm_nl_ctl limits" "accept 0
75 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1
76 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.2 flags subflow dev lo
77 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.3 flags signal,backup
78 check "ip netns exec $ns1 ./pm_nl_ctl get 1" "id 1 flags 10.0.1.1" "simple add/get addr"
80 check "ip netns exec $ns1 ./pm_nl_ctl dump" \
85 ip netns exec $ns1 ./pm_nl_ctl del 2
86 check "ip netns exec $ns1 ./pm_nl_ctl get 2" "" "simple del addr"
87 check "ip netns exec $ns1 ./pm_nl_ctl dump" \
91 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.3
92 check "ip netns exec $ns1 ./pm_nl_ctl get 4" "" "duplicate addr"
94 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.4 flags signal
95 check "ip netns exec $ns1 ./pm_nl_ctl get 4" "id 4 flags signal 10.0.1.4" "id addr increment"
98 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.$i flags signal >/dev/null 2>&1
100 check "ip netns exec $ns1 ./pm_nl_ctl get 9" "id 9 flags signal 10.0.1.9" "hard addr limit"
101 check "ip netns exec $ns1 ./pm_nl_ctl get 10" "" "above hard addr limit"
103 ip netns exec $ns1 ./pm_nl_ctl del 9
105 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.9 id $i
106 ip netns exec $ns1 ./pm_nl_ctl del $i
108 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags 10.0.1.1
116 ip netns exec $ns1 ./pm_nl_ctl flush
117 check "ip netns exec $ns1 ./pm_nl_ctl dump" "" "flush addrs"
119 ip netns exec $ns1 ./pm_nl_ctl limits 9 1
120 check "ip netns exec $ns1 ./pm_nl_ctl limits" "accept 0
123 ip netns exec $ns1 ./pm_nl_ctl limits 1 9
124 check "ip netns exec $ns1 ./pm_nl_ctl limits" "accept 0
127 ip netns exec $ns1 ./pm_nl_ctl limits 8 8
128 check "ip netns exec $ns1 ./pm_nl_ctl limits" "accept 8
131 ip netns exec $ns1 ./pm_nl_ctl flush
132 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1
133 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.2
134 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.3 id 100
135 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.4
136 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.5 id 254
137 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.6
138 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.7
139 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.8
140 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags 10.0.1.1
149 ip netns exec $ns1 ./pm_nl_ctl flush
150 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.1
151 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.2 id 254
152 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.3
153 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.4
154 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.5 id 253
155 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.6
156 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.7
157 ip netns exec $ns1 ./pm_nl_ctl add 10.0.0.8
158 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags 10.0.0.1
167 ip netns exec $ns1 ./pm_nl_ctl flush
168 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1 flags subflow
169 ip netns exec $ns1 ./pm_nl_ctl set 10.0.1.1 flags backup
170 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \
172 ip netns exec $ns1 ./pm_nl_ctl set 10.0.1.1 flags nobackup
173 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \
175 ip netns exec $ns1 ./pm_nl_ctl set id 1 flags fullmesh
176 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \
178 ip netns exec $ns1 ./pm_nl_ctl set id 1 flags nofullmesh
179 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \
181 ip netns exec $ns1 ./pm_nl_ctl set id 1 flags backup,fullmesh
182 check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \