Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102685639
D37451.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
D37451.diff
View Options
diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf
--- a/libexec/rc/rc.conf
+++ b/libexec/rc/rc.conf
@@ -244,6 +244,9 @@
pflog_logfile="/var/log/pflog" # where pflogd should store the logfile
pflog_program="/sbin/pflogd" # where the pflogd program lives
pflog_flags="" # additional flags for pflogd
+dnctl_enable="NO"
+dnctl_program="/sbin/dnctl"
+dnctl_rules="/etc/dnctl.conf"
ftpproxy_enable="NO" # Set to YES to enable ftp-proxy(8) for pf
ftpproxy_flags="" # additional flags for ftp-proxy(8)
pfsync_enable="NO" # Expose pf state to other hosts for syncing
diff --git a/libexec/rc/rc.d/Makefile b/libexec/rc/rc.d/Makefile
--- a/libexec/rc/rc.d/Makefile
+++ b/libexec/rc/rc.d/Makefile
@@ -216,7 +216,8 @@
.endif
.if ${MK_IPFW} != "no"
-CONFS+= ipfw
+CONFS+= ipfw \
+ dnctl
.if ${MK_NETGRAPH} != "no"
CONFS+= ipfw_netflow
.endif
diff --git a/libexec/rc/rc.d/dnctl b/libexec/rc/rc.d/dnctl
new file mode 100644
--- /dev/null
+++ b/libexec/rc/rc.d/dnctl
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: dnctl
+# BEFORE: pf ipfw
+# KEYWORD: nojailvnet
+
+. /etc/rc.subr
+
+name="dnctl"
+desc="Dummynet packet queuing and scheduling"
+rcvar="${name}_enable"
+load_rc_config $name
+start_cmd="${name}_start"
+required_files="$dnctl_rules"
+required_modules="dummynet"
+
+dnctl_start()
+{
+ startmsg -n "Enabling ${name}"
+ $dnctl_program "$dnctl_rules"
+ startmsg '.'
+}
+
+run_rc_command $*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 8:44 PM (21 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14664259
Default Alt Text
D37451.diff (1 KB)
Attached To
Mode
D37451: Add dnctl rc.d service
Attached
Detach File
Event Timeline
Log In to Comment