aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2018-11-09 15:24:24 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2018-11-09 15:24:24 +0000
commitb0e9618e689860c2c9d3b276df89f9966edcacf6 (patch)
treea87d9573ed02653e18aec196ae955e2659caa419 /tests
parentb6274d17755d7e0d9c7a18225bf56f60907b1ca2 (diff)
downloadsrc-b0e9618e689860c2c9d3b276df89f9966edcacf6.tar.gz
src-b0e9618e689860c2c9d3b276df89f9966edcacf6.zip
Fix test: sys.netpfil.pf.pass_block.noalias
Replace hard-coded epair0b with the variable holds the real epair interface used for testing. Reviewed by: kp Approved by: emaste, markj (mentors) MFC with: r339836 Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=340286
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sys/netpfil/pf/pass_block.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sys/netpfil/pf/pass_block.sh b/tests/sys/netpfil/pf/pass_block.sh
index bb49036235d9..d0d1e426378e 100755
--- a/tests/sys/netpfil/pf/pass_block.sh
+++ b/tests/sys/netpfil/pf/pass_block.sh
@@ -111,14 +111,14 @@ noalias_body()
atf_check -s exit:0 -o ignore ping6 -c 1 -x 1 ${linklocaladdr}%${epair}a
jexec alcatraz pfctl -e
- pft_set_rules alcatraz "block out inet6 from (epair0b:0) to any"
+ pft_set_rules alcatraz "block out inet6 from (${epair}b:0) to any"
atf_check -s exit:2 -o ignore ping6 -c 1 -x 1 2001:db8:42::2
# We should still be able to ping the link-local address
atf_check -s exit:0 -o ignore ping6 -c 1 -x 1 ${linklocaladdr}%${epair}a
- pft_set_rules alcatraz "block out inet6 from (epair0b) to any"
+ pft_set_rules alcatraz "block out inet6 from (${epair}b) to any"
# We cannot ping to the link-local address
atf_check -s exit:2 -o ignore ping6 -c 1 -x 1 ${linklocaladdr}%${epair}a