Lines Matching refs:route
46 atf_set "descr" "Change a reject route to blackhole"
56 rump.route add 207.46.197.32 127.0.0.1 -reject
58 "rump.route -n show -inet | grep ^207.46"
60 rump.route change 207.46.197.32 127.0.0.1 -blackhole
75 atf_set "descr" "Change the gateway of a route"
89 rump.route add -net 192.168.0.0/24 10.0.0.1
91 "rump.route -n show -inet | grep ^192.168"
93 rump.route change -net 192.168.0.0/24 10.0.0.254
95 "rump.route -n show -inet | grep ^192.168"
108 atf_set "descr" "Change the ifa (local address) of a route"
124 rump.route add -net 192.168.0.0/24 10.0.0.1
126 "rump.route -n show -inet | grep ^192.168"
127 $DEBUG && rump.route -n show -inet
129 route to: 192.168.0.1
138 rump.route -n get 192.168.0.1 > ./output
143 # Change the local address of the route
145 rump.route change -net 192.168.0.0/24 10.0.0.1 -ifa 10.0.0.11
146 $DEBUG && rump.route -n show -inet
148 route to: 192.168.0.1
157 rump.route -n get 192.168.0.1 > ./output
173 atf_set "descr" "Change a route based on an interface (ifp)"
191 rump.route add -net 192.168.0.0/24 10.0.0.1
193 "rump.route -n show -inet | grep ^192.168"
194 $DEBUG && rump.route -n show -inet
196 route to: 192.168.0.1
205 rump.route -n get 192.168.0.1 > ./output
210 # Change a route based on an interface
212 rump.route change -net 192.168.0.0/24 10.0.0.1 -ifp shmif1
213 $DEBUG && rump.route -n show -inet
215 route to: 192.168.0.1
224 rump.route -n get 192.168.0.1 > ./output
240 atf_set "descr" "Change a route with -ifp and -ifa"
258 rump.route add -net 192.168.0.0/24 10.0.0.1
260 "rump.route -n show -inet | grep ^192.168"
261 $DEBUG && rump.route -n show -inet
263 route to: 192.168.0.1
272 rump.route -n get 192.168.0.1 > ./output
277 # Change a route with -ifa and -ifp
279 rump.route change -net 192.168.0.0/24 -ifa 10.0.0.1 -ifp shmif1
280 $DEBUG && rump.route -n show -inet
282 route to: 192.168.0.1
291 rump.route -n get 192.168.0.1 > ./output
307 atf_set "descr" "Change flags of a route"
323 rump.route change -net 10.0.0.0/24 -reject
327 rump.route change -net 10.0.0.0/24 -noreject
343 atf_set "descr" "Change flags of the default route"
356 atf_check -s exit:0 -o ignore rump.route add default 10.0.0.1
359 atf_check -s exit:0 -o ignore rump.route change default -reject
362 atf_check -s exit:0 -o ignore rump.route change default -noreject