Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2005 13:35:29 GMT
From:      Gaspar Chilingarov <nm@web.am>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/79196: [PATCH] configurable dummynet loading  from /etc/rc.conf script
Message-ID:  <200503241335.j2ODZTDW045032@www.freebsd.org>
Resent-Message-ID: <200503241340.j2ODe8cc091986@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         79196
>Category:       conf
>Synopsis:       [PATCH] configurable dummynet loading  from /etc/rc.conf script
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 24 13:40:07 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Gaspar Chilingarov
>Release:        FreeBSD 6.0-CURRENT
>Organization:
Netter Ltd.
>Environment:
FreeBSD g.web.am 6.0-CURRENT FreeBSD 6.0-CURRENT #2: Tue Nov 30 16:16:20 AMT 2004
>Description:
if you use pipe/queue commands in your custom ipfw rules file, it will fail to load, because dummynet is not loaded. new config variable added to allow load dummynet module at same time, when ipfw module is loaded.
>How-To-Repeat:
set firewall_enable="yes" and feed ipfw with any file with pipe commands      
>Fix:
patch here

---cut---
diff -Bbw -r /etc/defaults/rc.conf ./etc/defaults/rc.conf
73a65
> dummynet_enable="NO"      # Set to YES to load dummynet functionality into firewall 
diff -Bbw -r /etc/rc.d/ipfw ./etc/rc.d/ipfw
26a26,31
>       if checkyesno dummynet_enable; then
>           if ! kldload dummynet; then
>           warn unable to load dummynet module\(firewall config may fail\).
>           return 1
>           fi
>       fi
---cut---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503241335.j2ODZTDW045032>