Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108148161
D32893.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32893.diff
View Options
diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c
--- a/lib/libpfctl/libpfctl.c
+++ b/lib/libpfctl/libpfctl.c
@@ -294,7 +294,7 @@
if (addr->type == PF_ADDR_DYNIFTL) {
strlcpy(addr->v.ifname, nvlist_get_string(nvl, "ifname"),
IFNAMSIZ);
- addr->p.dyncnt = nvlist_get_number(nvl, "dynctl");
+ addr->p.dyncnt = nvlist_get_number(nvl, "dyncnt");
}
if (addr->type == PF_ADDR_TABLE) {
strlcpy(addr->v.tblname, nvlist_get_string(nvl, "tblname"),
diff --git a/tests/sys/netpfil/pf/table.sh b/tests/sys/netpfil/pf/table.sh
--- a/tests/sys/netpfil/pf/table.sh
+++ b/tests/sys/netpfil/pf/table.sh
@@ -214,6 +214,34 @@
pft_cleanup
}
+atf_test_case "pr259689" "cleanup"
+pr259689_head()
+{
+ atf_set descr 'Test PR 259689'
+ atf_set require.user root
+}
+
+pr259689_body()
+{
+ pft_init
+
+ vnet_mkjail alcatraz
+ jexec alcatraz pfctl -e
+
+ pft_set_rules alcatraz \
+ "pass in" \
+ "block in inet from { 1.1.1.1, 1.1.1.2, 2.2.2.2, 2.2.2.3, 4.4.4.4, 4.4.4.5 }"
+
+ atf_check -o match:'block drop in inet from <__automatic_.*:6> to any' \
+ -e ignore \
+ jexec alcatraz pfctl -sr -vv
+}
+
+pr259689_cleanup()
+{
+ pft_cleanup
+}
+
atf_init_test_cases()
{
atf_add_test_case "v4_counters"
@@ -221,4 +249,5 @@
atf_add_test_case "pr251414"
atf_add_test_case "automatic"
atf_add_test_case "network"
+ atf_add_test_case "pr259689"
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 9:41 PM (18 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16039450
Default Alt Text
D32893.diff (1 KB)
Attached To
Mode
D32893: pf tests: Test PR259689
Attached
Detach File
Event Timeline
Log In to Comment