FreeBSD Bugzilla – Attachment 13908 Details for
Bug 26275
ipfilter_enable in rc.conf does not load kld
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.11 KB, created by
thomas+freebsd
on 2001-04-01 22:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
thomas+freebsd
Created:
2001-04-01 22:20:01 UTC
Size:
1.11 KB
patch
obsolete
>--- /usr/src/etc/rc.network Tue Mar 20 17:52:05 2001 >+++ rc.network Sun Apr 1 16:15:04 2001 >@@ -62,10 +62,30 @@ > # > case "${ipfilter_enable}" in > [Yy][Ee][Ss]) >- if [ -r "${ipfilter_rules}" ]; then >- echo -n ' ipfilter'; >- ${ipfilter_program:-/sbin/ipf -Fa -f} \ >- "${ipfilter_rules}" ${ipfilter_flags} >+ # Some hackery to get just the bare program name. >+ ipfilter_binary=`echo ${ipfilter_program} | cut -d" " -f1` >+ >+ if ${ipfilter_binary} -Z > /dev/null 2>&1; then >+ ipf_loaded=1 >+ else >+ if kldload ipl > /dev/null; then >+ ipf_loaded=1 >+ echo 'IPFilter module loaded' >+ else >+ echo 'Warning: IPFilter kernel module failed to load' >+ fi >+ fi >+ >+ if [ ${ipf_loaded} ]; then >+ if [ -r "${ipfilter_rules}" ]; then >+ echo -n ' ipfilter'; >+ ${ipfilter_program:-/sbin/ipf -Fa -f} \ >+ "${ipfilter_rules}" ${ipfilter_flags} >+ else >+ ipfilter_enable="NO" >+ echo -n ' NO IPF RULES' >+ fi >+ > case "${ipmon_enable}" in > [Yy][Ee][Ss]) > echo -n ' ipmon' >@@ -83,9 +103,6 @@ > fi > ;; > esac >- else >- ipfilter_enable="NO" >- echo -n ' NO IPF RULES' > fi > ;; > esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26275
: 13908