Lines Matching +full:route +full:- +full:up

1 #	$NetBSD: t_flags6.sh,v 1.12 2016/12/21 02:46:08 ozaki-r Exp $
37 DEBUG=${DEBUG:-false}
46 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 inet6 $IP6_LOCAL
47 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up
48 atf_check -s exit:0 -o ignore rump.ifconfig -w 10
51 $DEBUG && rump.netstat -rn -f inet6
61 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 inet6 $IP6_PEER
62 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up
63 atf_check -s exit:0 -o ignore rump.ifconfig -w 10
66 $DEBUG && rump.netstat -rn -f inet6
74 # Up, Host, local
77 # Up, Host, local
86 # Up, Host, local
89 # Up, Connected
98 atf_check -s exit:0 -o ignore rump.route add -inet6 default $IP6_PEER
99 $DEBUG && rump.netstat -rn -f inet6
101 # Up, Gateway, Static
110 # Static route to host
111 atf_check -s exit:0 -o ignore \
112 rump.route add -inet6 fc00::1:1 $IP6_PEER
113 $DEBUG && rump.netstat -rn -f inet6
115 # Up, Gateway, Host, Static
118 # Static route to network
119 atf_check -s exit:0 -o ignore \
120 rump.route add -inet6 -net fc00::/24 $IP6_PEER
121 $DEBUG && rump.netstat -rn -f inet6
123 # Up, Gateway, Static
132 atf_check -s exit:0 -o ignore rump.ping6 -n -X 1 -c 1 $IP6_PEER
134 # Delete an existing route first
135 atf_check -s exit:0 -o ignore \
136 rump.route delete -inet6 -net fc00::/64
139 atf_check -s exit:0 -o ignore \
140 rump.route add -inet6 -net fc00::/64 ::1 -blackhole
141 $DEBUG && rump.netstat -rn -f inet6
143 # Up, Gateway, Blackhole, Static
146 atf_check -s not-exit:0 -o match:'100.0% packet loss' \
147 rump.ping6 -n -X 1 -c 1 $IP6_PEER
148 $DEBUG && rump.netstat -rn -f inet6
159 # Delete an existing route first
160 atf_check -s exit:0 -o ignore \
161 rump.route delete -inet6 -net fc00::/64
163 atf_check -s exit:0 -o ignore \
164 rump.route add -inet6 -net fc00::/64 $IP6_PEER -reject
165 $DEBUG && rump.netstat -rn -f inet6
167 # Up, Gateway, Reject, Static
170 atf_check -s not-exit:0 -o ignore -e match:'No route to host' \
171 rump.ping6 -n -X 1 -c 1 $IP6_PEER
172 $DEBUG && rump.netstat -rn -f inet6
179 # Delete an existing route first
180 atf_check -s exit:0 -o ignore \
181 rump.route delete -inet6 -net fc00::/64
183 atf_check -s exit:0 -o ignore \
184 rump.route add -inet6 -net fc00::/64 ::1 -reject
185 $DEBUG && rump.netstat -rn -f inet6
187 # Up, Gateway, Reject, Static
190 atf_check -s not-exit:0 -o ignore -e match:'Network is unreachable' \
191 rump.ping6 -n -X 1 -c 1 $IP6_PEER
192 $DEBUG && rump.netstat -rn -f inet6
199 # Delete an existing route first
200 atf_check -s exit:0 -o ignore \
201 rump.route delete -inet6 -net fc00::/64
203 atf_check -s exit:0 -o ignore \
204 rump.route add -inet6 -host fc00::/64 ::1 -iface -reject
205 $DEBUG && rump.netstat -rn -f inet6
207 # Up, Host, Reject, Static
210 atf_check -s not-exit:0 -o ignore -e match:'No route to host' \
211 rump.ping6 -n -X 1 -c 1 $IP6_PEER
212 $DEBUG && rump.netstat -rn -f inet6
221 # Delete an existing route first
222 atf_check -s exit:0 -o ignore \
223 rump.route delete -inet6 -net fc00::/64
225 atf_check -s exit:0 -o ignore \
226 rump.route add -inet6 -net fc00::/64 $IP6_PEER -proxy
227 $DEBUG && rump.netstat -rn -f inet6
229 # Up, Gateway, Static, proxy
261 add_test lo6 "Tests route flags: loop back interface"
262 add_test connected6 "Tests route flags: connected route"
263 add_test default_gateway6 "Tests route flags: default gateway"
264 add_test static6 "Tests route flags: static route"
265 add_test blackhole6 "Tests route flags: blackhole route"
266 add_test reject6 "Tests route flags: reject route"
267 add_test announce6 "Tests route flags: announce flag"