aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2018-10-22 23:33:48 +0000
committerKristof Provost <kp@FreeBSD.org>2018-10-22 23:33:48 +0000
commitdb2380870c3cee82a99f139bb7108de4b024e681 (patch)
treeacc42098befab3b0ec845c43fbf964a7d31fcd05 /sbin
parentddf09ad64b7e028da37c69b6e91aaab353ad21aa (diff)
downloadsrc-db2380870c3cee82a99f139bb7108de4b024e681.tar.gz
src-db2380870c3cee82a99f139bb7108de4b024e681.zip
pf tests: Fix incorrect test for PR 231323
Fix r339466. The test result file did not list the rdr rule. Additionally, the route-to rule needs a redirection address. X-MFC-with: 339466
Notes
Notes: svn path=/head/; revision=339627
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/tests/files/pf1005.in4
-rw-r--r--sbin/pfctl/tests/files/pf1005.ok3
2 files changed, 4 insertions, 3 deletions
diff --git a/sbin/pfctl/tests/files/pf1005.in b/sbin/pfctl/tests/files/pf1005.in
index c99bb2b8f7f3..72e5c8f2a87d 100644
--- a/sbin/pfctl/tests/files/pf1005.in
+++ b/sbin/pfctl/tests/files/pf1005.in
@@ -1,3 +1,3 @@
rdr on em0 proto tcp from any to any -> 1.1.1.1 port 2121
-pass out log quick on lo0 route-to lo0 from any to any
-pass in log quick on lo0 route-to (lo0 localhost) from any to any
+pass out log quick on lo0 route-to (lo0 localhost) inet from any to any
+pass in log quick on lo0 route-to (lo0 localhost) inet6 from any to any
diff --git a/sbin/pfctl/tests/files/pf1005.ok b/sbin/pfctl/tests/files/pf1005.ok
index 0d4679d31d35..a1678f61d4ad 100644
--- a/sbin/pfctl/tests/files/pf1005.ok
+++ b/sbin/pfctl/tests/files/pf1005.ok
@@ -1,2 +1,3 @@
-pass out log quick on lo0 route-to (lo0 ?) all flags S/SA keep state
+rdr on em0 inet proto tcp all -> 1.1.1.1 port 2121
+pass out log quick on lo0 route-to (lo0 127.0.0.1) inet all flags S/SA keep state
pass in log quick on lo0 route-to (lo0 ::1) inet6 all flags S/SA keep state