Date: Fri, 9 Nov 2018 15:24:25 +0000 (UTC) From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r340286 - head/tests/sys/netpfil/pf Message-ID: <201811091524.wA9FOPM9030128@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lwhsu Date: Fri Nov 9 15:24:24 2018 New Revision: 340286 URL: https://svnweb.freebsd.org/changeset/base/340286 Log: 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 Modified: head/tests/sys/netpfil/pf/pass_block.sh Modified: head/tests/sys/netpfil/pf/pass_block.sh ============================================================================== --- head/tests/sys/netpfil/pf/pass_block.sh Fri Nov 9 15:02:53 2018 (r340285) +++ head/tests/sys/netpfil/pf/pass_block.sh Fri Nov 9 15:24:24 2018 (r340286) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811091524.wA9FOPM9030128>