From b0e9618e689860c2c9d3b276df89f9966edcacf6 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Fri, 9 Nov 2018 15:24:24 +0000 Subject: [PATCH] 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 --- tests/sys/netpfil/pf/pass_block.sh | 4 ++-- 1 file 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