|
Lines 213-218
Link Here
|
| 213 |
} |
213 |
} |
| 214 |
|
214 |
|
| 215 |
|
215 |
|
|
|
216 |
# Regression test for a panic introduced in change 264887 |
| 217 |
# Create two tap interfaces and assign them both the same IP address but with |
| 218 |
# different netmasks, and both on the default FIB. Then remove one's IP |
| 219 |
# address. Hopefully the machine won't panic. |
| 220 |
atf_test_case same_ip_multiple_ifaces_fib0 cleanup |
| 221 |
same_ip_multiple_ifaces_fib0_head() |
| 222 |
{ |
| 223 |
atf_set "descr" "Can remove an IP alias from an interface when the same IP is also assigned to another interface." |
| 224 |
atf_set "require.user" "root" |
| 225 |
atf_set "require.config" "fibs" |
| 226 |
} |
| 227 |
same_ip_multiple_ifaces_fib0_body() |
| 228 |
{ |
| 229 |
ADDR="192.0.2.2" |
| 230 |
MASK0="24" |
| 231 |
MASK1="32" |
| 232 |
|
| 233 |
# Unlike most of the tests in this file, this is applicable regardless |
| 234 |
# of net.add_addr_allfibs |
| 235 |
|
| 236 |
# Setup the interfaces, then remove one alias. It should not panic. |
| 237 |
setup_tap 0 ${ADDR} ${MASK0} |
| 238 |
TAP0=${TAP} |
| 239 |
setup_tap 0 ${ADDR} ${MASK1} |
| 240 |
TAP1=${TAP} |
| 241 |
ifconfig ${TAP1} -alias ${ADDR} |
| 242 |
|
| 243 |
# Do it again, in the opposite order. It should not panic. |
| 244 |
setup_tap 0 ${ADDR} ${MASK0} |
| 245 |
TAP0=${TAP} |
| 246 |
setup_tap 0 ${ADDR} ${MASK1} |
| 247 |
TAP1=${TAP} |
| 248 |
ifconfig ${TAP0} -alias ${ADDR} |
| 249 |
} |
| 250 |
same_ip_multiple_ifaces_fib0_cleanup() |
| 251 |
{ |
| 252 |
cleanup_tap |
| 253 |
} |
| 254 |
|
| 216 |
# Regression test for kern/187550 |
255 |
# Regression test for kern/187550 |
| 217 |
atf_test_case subnet_route_with_multiple_fibs_on_same_subnet cleanup |
256 |
atf_test_case subnet_route_with_multiple_fibs_on_same_subnet cleanup |
| 218 |
subnet_route_with_multiple_fibs_on_same_subnet_head() |
257 |
subnet_route_with_multiple_fibs_on_same_subnet_head() |
|
Lines 309-314
Link Here
|
| 309 |
atf_add_test_case arpresolve_checks_interface_fib |
348 |
atf_add_test_case arpresolve_checks_interface_fib |
| 310 |
atf_add_test_case loopback_and_network_routes_on_nondefault_fib |
349 |
atf_add_test_case loopback_and_network_routes_on_nondefault_fib |
| 311 |
atf_add_test_case default_route_with_multiple_fibs_on_same_subnet |
350 |
atf_add_test_case default_route_with_multiple_fibs_on_same_subnet |
|
|
351 |
atf_add_test_case same_ip_multiple_ifaces_fib0 |
| 312 |
atf_add_test_case subnet_route_with_multiple_fibs_on_same_subnet |
352 |
atf_add_test_case subnet_route_with_multiple_fibs_on_same_subnet |
| 313 |
atf_add_test_case udp_dontroute |
353 |
atf_add_test_case udp_dontroute |
| 314 |
} |
354 |
} |