svn commit: r340286 - head/tests/sys/netpfil/pf

Li-Wen Hsu lwhsu at FreeBSD.org
Fri Nov 9 15:24:26 UTC 2018


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


More information about the svn-src-head mailing list