summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2018-10-20 18:18:28 +0000
committerKristof Provost <kp@FreeBSD.org>2018-10-20 18:18:28 +0000
commit63488b6e4e138287b02d81c90aa1978664b120da (patch)
tree87b530bdcde953a2fec9283800b4a0bcfaab5535 /sbin/pfctl
parentb4d24263c25b996a8858d69ed21549ed958a7db3 (diff)
downloadsrc-test2-63488b6e4e138287b02d81c90aa1978664b120da.tar.gz
src-test2-63488b6e4e138287b02d81c90aa1978664b120da.zip
Notes
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/tests/files/pf1005.in3
-rw-r--r--sbin/pfctl/tests/files/pf1005.ok2
-rwxr-xr-xsbin/pfctl/tests/files/pfctl_test_descr.sh1
-rwxr-xr-xsbin/pfctl/tests/pfctl_test.sh2
4 files changed, 7 insertions, 1 deletions
diff --git a/sbin/pfctl/tests/files/pf1005.in b/sbin/pfctl/tests/files/pf1005.in
new file mode 100644
index 000000000000..c99bb2b8f7f3
--- /dev/null
+++ b/sbin/pfctl/tests/files/pf1005.in
@@ -0,0 +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
diff --git a/sbin/pfctl/tests/files/pf1005.ok b/sbin/pfctl/tests/files/pf1005.ok
new file mode 100644
index 000000000000..0d4679d31d35
--- /dev/null
+++ b/sbin/pfctl/tests/files/pf1005.ok
@@ -0,0 +1,2 @@
+pass out log quick on lo0 route-to (lo0 ?) all flags S/SA keep state
+pass in log quick on lo0 route-to (lo0 ::1) inet6 all flags S/SA keep state
diff --git a/sbin/pfctl/tests/files/pfctl_test_descr.sh b/sbin/pfctl/tests/files/pfctl_test_descr.sh
index 5e6e7cbcdee7..1f164c8c2596 100755
--- a/sbin/pfctl/tests/files/pfctl_test_descr.sh
+++ b/sbin/pfctl/tests/files/pfctl_test_descr.sh
@@ -79,3 +79,4 @@ pf1001_descr () { echo "Binat" ; }
pf1002_descr () { echo "Set timeout interval" ; }
pf1003_descr () { echo "ALTQ" ; }
pf1004_descr () { echo "ALTQ with Codel" ; }
+pf1005_descr () { echo "PR 231323" ; }
diff --git a/sbin/pfctl/tests/pfctl_test.sh b/sbin/pfctl/tests/pfctl_test.sh
index fef6d15a7edb..23cc755f5db7 100755
--- a/sbin/pfctl/tests/pfctl_test.sh
+++ b/sbin/pfctl/tests/pfctl_test.sh
@@ -22,7 +22,7 @@ pftests="0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012
0032 0034 0035 0038 0039 0040 0041 0047 0048 0049 0050 0052 0053 0055
0056 0057 0060 0061 0065 0067 0069 0070 0071 0072 0074 0075 0077 0078
0079 0081 0082 0084 0085 0087 0088 0089 0090 0091 0092 0094 0095 0096
-0097 0098 0100 0101 0102 0104 1001 1002 1003 1004"
+0097 0098 0100 0101 0102 0104 1001 1002 1003 1004 1005"
. $(atf_get_srcdir)/files/pfctl_test_descr.sh