Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jan 2002 03:36:05 -0800 (PST)
From:      Hendrik scholz <hendrik@scholz.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/33442: ipf/kernel patch so IPLLOGISZE could be set from the kernel configuration file
Message-ID:  <200201011136.g01Ba5Q16415@freefall.freebsd.org>

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

>Number:         33442
>Category:       kern
>Synopsis:       ipf/kernel patch so IPLLOGISZE could be set from the kernel configuration file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 01 03:40:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik scholz
>Release:        4.5-PRERELEASE
>Organization:
NetUSE AG
>Environment:
FreeBSD dionysus.lan.raisdorf.net 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #0: Mon Dec 31 12:52:16 CET 2001     hscholz@dionysus.lan.raisdorf.net:/usr/src/sys/compile/DIONYSUS  i386

>Description:
This patch allows the IPLLOGSIZE found in contrib/ipfilter/ip_fil.h
to be set in the kernel configuration file.
>How-To-Repeat:
Try to set a different log size without the patch.
It is easier with this one :)
>Fix:
The patch is also at http://www.raisdorf.net/index.php?page=misc

--- sys/conf/options.orig	Tue Jan  1 12:09:13 2002
+++ sys/conf/options	Tue Jan  1 12:09:33 2002
@@ -248,6 +248,7 @@
 IPFILTER		opt_ipfilter.h
 IPFILTER_LOG		opt_ipfilter.h
 IPFILTER_DEFAULT_BLOCK	opt_ipfilter.h
+IPFILTER_LOGSIZE  opt_ipfilter.h
 IPFIREWALL		opt_ipfw.h
 IPFIREWALL_VERBOSE	opt_ipfw.h
 IPFIREWALL_VERBOSE_LIMIT	opt_ipfw.h
--- contrib/ipfilter/ip_log.c.orig	Tue Jan  1 12:10:38 2002
+++ contrib/ipfilter/ip_log.c	Tue Jan  1 12:11:45 2002
@@ -16,6 +16,11 @@
 # if defined(_KERNEL) && !defined(IPFILTER_LKM)
 #  if defined(__FreeBSD_version) && (__FreeBSD_version >= 300000)
 #   include "opt_ipfilter.h"
+#   if defined(IPFILTER_LOGSIZE)
+#    if IPFILTER_LOGSIZE > 0
+#     define IPLLOGSIZE IPFILTER_LOGSIZE
+#    endif
+#   endif
 #  endif
 # else
 #  ifdef KLD_MODULE
--- sys/i386/conf/LINT.orig	Tue Jan  1 12:19:37 2002
+++ sys/i386/conf/LINT	Tue Jan  1 12:23:46 2002
@@ -572,6 +572,7 @@
 options 	IPFILTER		#ipfilter support
 options 	IPFILTER_LOG		#ipfilter logging
 options		IPFILTER_DEFAULT_BLOCK	#block all packets by default
+options     IPFILTER_LOGSIZE=8192   #specify IPLLOGSIZE
 options 	IPSTEALTH		#support for stealth forwarding
 options 	TCPDEBUG
 

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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