icmp6.sh (89f6723288b0d27d3f14f93e6e83f672fa2b8aca) | icmp6.sh (d154dc21130b607d7903f276dd6d463b990f33f7) |
---|---|
1# 2# SPDX-License-Identifier: BSD-2-Clause 3# 4# Copyright (c) 2024 Rubicon Communications, LLC (Netgate) 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 135 unchanged lines hidden (view full) --- 144 jexec cl traceroute6 -I 2001:db8:1::1 145} 146 147ttl_exceeded_cleanup() 148{ 149 pft_cleanup 150} 151 | 1# 2# SPDX-License-Identifier: BSD-2-Clause 3# 4# Copyright (c) 2024 Rubicon Communications, LLC (Netgate) 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 135 unchanged lines hidden (view full) --- 144 jexec cl traceroute6 -I 2001:db8:1::1 145} 146 147ttl_exceeded_cleanup() 148{ 149 pft_cleanup 150} 151 |
152atf_test_case "repeat" "cleanup" 153repeat_head() 154{ 155 atf_set descr 'Ensure that repeated NDs work' 156 atf_set require.user root 157 atf_set require.progs ndisc6 158} 159 160repeat_body() 161{ 162 pft_init 163 164 epair=$(vnet_mkepair) 165 ifconfig ${epair}a inet6 2001:db8::2/64 up no_dad 166 167 vnet_mkjail alcatraz ${epair}b 168 jexec alcatraz ifconfig ${epair}b inet6 2001:db8::1/64 up no_dad 169 170 # Sanity check 171 atf_check -s exit:0 -o ignore \ 172 ping -c 1 2001:db8::1 173 174 jexec alcatraz pfctl -e 175 pft_set_rules alcatraz \ 176 "block all" \ 177 "pass quick inet6 proto ipv6-icmp all icmp6-type neighbrsol keep state (if-bound) ridentifier 1000000107" 178 179 jexec alcatraz pfctl -x loud 180 ndisc6 -m -n -r 1 2001:db8::1 ${epair}a 181 jexec alcatraz pfctl -ss -vv 182 183 atf_check -s exit:0 -o ignore \ 184 ndisc6 -m -n -r 1 2001:db8::1 ${epair}a 185 jexec alcatraz pfctl -ss -vv 186 atf_check -s exit:0 -o ignore \ 187 ndisc6 -m -n -r 1 2001:db8::1 ${epair}a 188 jexec alcatraz pfctl -ss -vv 189 atf_check -s exit:0 -o ignore \ 190 ndisc6 -m -n -r 1 2001:db8::1 ${epair}a 191 jexec alcatraz pfctl -ss -vv 192} 193 194repeat_cleanup() 195{ 196 pft_cleanup 197} 198 |
|
152atf_init_test_cases() 153{ 154 atf_add_test_case "zero_id" 155 atf_add_test_case "ttl_exceeded" | 199atf_init_test_cases() 200{ 201 atf_add_test_case "zero_id" 202 atf_add_test_case "ttl_exceeded" |
203 atf_add_test_case "repeat" |
|
156} | 204} |