Lines Matching +full:total +full:- +full:timeout
1 # $NetBSD: t_ndp.sh,v 1.17 2016/11/25 08:51:17 ozaki-r Exp $
33 DEBUG=${DEBUG:-true}
34 TIMEOUT=1
79 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $IP6DST
81 atf_check -s exit:0 rump.ifconfig shmif0 up
82 atf_check -s exit:0 rump.ifconfig -w 10
85 $DEBUG && rump.ndp -n -a
90 $DEBUG && ulimit -c unlimited
95 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $IP6SRC
96 atf_check -s exit:0 rump.ifconfig shmif0 up
97 atf_check -s exit:0 rump.ifconfig -w 10
101 $DEBUG && rump.ndp -n -a
102 atf_check -s exit:0 -o ignore rump.ndp -n $IP6SRC
103 atf_check -s not-exit:0 -o ignore -e ignore rump.ndp -n $IP6DST
108 local timeout=$(env RUMP_SERVER=$SOCKSRC rump.ndp -n $IP6DST |grep $IP6DST|awk '{print $4;}')
109 timeout=${timeout%s}
110 echo $timeout
126 atf_check -s exit:0 -o ignore rump.ping6 -n -X $TIMEOUT -c 1 $IP6DST
128 $DEBUG && rump.ndp -n -a
129 atf_check -s exit:0 -o match:'permanent' rump.ndp -n $IP6SRC
131 atf_check -s exit:0 -o not-match:'permanent' rump.ndp -n $IP6DST
133 timeout=$(get_timeout $IP6DST)
135 atf_check -s exit:0 sleep $(($timeout + 1))
137 $DEBUG && rump.ndp -n -a
138 atf_check -s exit:0 -o match:'permanent' rump.ndp -n $IP6SRC
140 atf_check -s exit:0 -o match:'(1d0h0m|23h59m)' rump.ndp -n $IP6DST
148 atf_check -s exit:0 rump.ifconfig shmif0 down
164 atf_check -s exit:0 -o match:"$IP6SRC" rump.ndp -d $IP6SRC
167 $DEBUG && rump.ndp -n -a
168 atf_check -s exit:0 -o ignore rump.ndp -s fc00::10 b2:a0:20:00:00:10
169 $DEBUG && rump.ndp -n -a
170 atf_check -s exit:0 -o match:'permanent' rump.ndp -n fc00::10
171 atf_check -s exit:0 -o match:'deleted' rump.ndp -d fc00::10
172 $DEBUG && rump.ndp -n -a
173 atf_check -s not-exit:0 -o ignore -e ignore rump.ndp -n fc00::10
176 #cat - > ./list <<-EOF
183 #$DEBUG && rump.ndp -n -a
184 #atf_check -s exit:0 -o ignore rump.ndp -f ./list
185 #$DEBUG && rump.ndp -n -a
187 atf_check -s exit:0 -o ignore rump.ping6 -n -X $TIMEOUT -c 1 $IP6DST
188 atf_check -s exit:0 -o ignore rump.ndp -s fc00::11 b2:a0:20:00:00:11
189 atf_check -s exit:0 -o ignore rump.ndp -s fc00::12 b2:a0:20:00:00:12
191 atf_check -s exit:0 -o not-match:'permanent' rump.ndp -n $IP6DST
192 atf_check -s exit:0 -o match:'permanent' rump.ndp -n fc00::11
193 atf_check -s exit:0 -o match:'permanent' rump.ndp -n fc00::12
195 # Test ndp -a
196 atf_check -s exit:0 -o match:'fc00::11' rump.ndp -n -a
197 atf_check -s exit:0 -o match:'fc00::12' rump.ndp -n -a
202 # Flush all entries (-c)
203 $DEBUG && rump.ndp -n -a
204 atf_check -s exit:0 -o ignore rump.ndp -c
205 atf_check -s not-exit:0 -o ignore -e ignore rump.ndp -n $IP6SRC
206 atf_check -s not-exit:0 -o ignore -e ignore rump.ndp -n $IP6DST
208 atf_check -s exit:0 -o ignore -e ignore rump.ndp -n fc00::11
209 atf_check -s exit:0 -o ignore -e ignore rump.ndp -n fc00::12
211 $DEBUG && rump.ndp -n -a
212 atf_check -s exit:0 -o ignore rump.ndp -s fc00::10 b2:a0:20:00:00:10 temp
213 rump.ndp -s fc00::10 b2:a0:20:00:00:10 temp
214 $DEBUG && rump.ndp -n -a
215 atf_check -s exit:0 -o not-match:'permanent' rump.ndp -n fc00::10
232 atf_check -s not-exit:0 -e ignore rump.ndp -s $IP6SRC b2:a0:20:00:00:ff
233 $DEBUG && rump.ndp -n -a
235 atf_check -s exit:0 -o ignore rump.ping6 -n -X $TIMEOUT -c 1 $IP6DST
236 $DEBUG && rump.ndp -n -a
238 atf_check -s exit:0 -o ignore rump.ndp -s $IP6DST b2:a0:20:00:00:00
239 $DEBUG && rump.ndp -n -a
240 atf_check -s exit:0 -o match:'permanent' rump.ndp -n $IP6DST
243 #atf_check -s exit:0 -o ignore rump.ndp -s fc00::10 b2:a0:20:00:00:10 temp
244 #$DEBUG && rump.ndp -n -a
245 #atf_check -s exit:0 -o not-match:'permanent' rump.ndp -n fc00::10
247 #atf_check -s not-exit:0 -e ignore rump.ndp -s fc00::10 b2:a0:20:00:00:ff
248 #$DEBUG && rump.ndp -n -a
256 echo $(rump.ndp -a -n |grep -v -e Neighbor -e permanent |wc -l)
270 atf_check -s exit:0 rump.ifconfig shmif0 inet6 ${IP6DST}$i
276 $DEBUG && rump.ndp -n -a
278 atf_check -s exit:0 -o ignore rump.ping6 -n -X $TIMEOUT -c 1 \
281 $DEBUG && rump.ndp -n -a
288 atf_check -s exit:0 -o ignore rump.ping6 -n -X $TIMEOUT -c 1 \
291 $DEBUG && rump.ndp -n -a
293 # 6 caches should be created in total
297 atf_check -s exit:0 -o ignore rump.sysctl -w \
302 atf_check -s exit:0 -o ignore rump.ping6 -n -X $TIMEOUT -c 1 \
306 # More than 5 caches should be created in total, but exceeded caches
307 # should be GC-ed
308 if [ "$(get_n_caches)" -gt 5 ]; then
309 atf_fail "Neighbor caches are not GC-ed"
340 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 link \
343 atf_check -s exit:0 sleep 1
347 linklocal=$(rump.ifconfig shmif0 |awk '/fe80/ {print $2;}' |awk -F % '{print $1;}')
351 atf_check -s not-exit:0 -x "cat ./out |grep -q '$pkt'"
353 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 link \
356 atf_check -s exit:0 sleep 1
360 linklocal=$(rump.ifconfig shmif0 |awk '/fe80/ {print $2;}' |awk -F % '{print $1;}')
364 atf_check -s exit:0 -x "cat ./out |grep -q '$pkt'"