Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177946085
D61962.1795619679.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61962.1795619679.diff
View Options
diff --git a/sys/netpfil/ipfw/ip_dummynet.c b/sys/netpfil/ipfw/ip_dummynet.c
--- a/sys/netpfil/ipfw/ip_dummynet.c
+++ b/sys/netpfil/ipfw/ip_dummynet.c
@@ -980,7 +980,7 @@
memcpy(&dn.s, _o, sizeof(dn.s));
dn.s.sch.oid.id = (dn.s.sch.flags & DN_HAVE_MASK) ?
dn_ht_entries(dn.s.siht) : (dn.s.siht ? 1 : 0);
- memcpy(*start, &dn.s, sizeof(dn.s));
+ memcpy(*start, &dn.s.sch, sizeof(dn.s.sch));
} else
memcpy(*start, _o, o.len);
*start += o.len;
diff --git a/tests/sys/netpfil/common/dummynet.sh b/tests/sys/netpfil/common/dummynet.sh
--- a/tests/sys/netpfil/common/dummynet.sh
+++ b/tests/sys/netpfil/common/dummynet.sh
@@ -118,6 +118,30 @@
firewall_cleanup $1
}
+pipe_show_head()
+{
+ atf_set descr 'List pipes and schedulers'
+ atf_set require.user root
+}
+
+pipe_show_body()
+{
+ fw=$1
+ firewall_init $fw
+ dummynet_init $fw
+
+ vnet_mkjail alcatraz
+
+ jexec alcatraz dnctl pipe 1 config bw 1Mbit/s
+ atf_check -s exit:0 -o match:'^00001:' jexec alcatraz dnctl pipe show
+ atf_check -s exit:0 -o match:'^00001:' jexec alcatraz dnctl sched show
+}
+
+pipe_show_cleanup()
+{
+ firewall_cleanup $1
+}
+
pipe_v6_head()
{
atf_set descr 'Basic IPv6 pipe test'
@@ -617,6 +641,9 @@
pipe \
ipfw \
pf \
+ pipe_show \
+ ipfw \
+ pf \
pipe_v6 \
ipfw \
pf \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 3:14 PM (21 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41993395
Default Alt Text
D61962.1795619679.diff (1 KB)
Attached To
Mode
D61962: dummynet: copy only the user-visible scheduler in copy_obj()
Attached
Detach File
Event Timeline