From nobody@FreeBSD.org  Tue Jan  1 03:36:05 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 2FFCB37B420
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Jan 2002 03:36:05 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g01Ba5Q16415;
	Tue, 1 Jan 2002 03:36:05 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201011136.g01Ba5Q16415@freefall.freebsd.org>
Date: Tue, 1 Jan 2002 03:36:05 -0800 (PST)
From: Hendrik scholz <hendrik@scholz.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipf/kernel patch so IPLLOGISZE could be set from the kernel configuration file
X-Send-Pr-Version: www-1.0

>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:    darrenr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 01 03:40:00 PST 2002
>Closed-Date:    Sat Apr 27 13:07:03 PDT 2002
>Last-Modified:  Sat Apr 27 13:07:03 PDT 2002
>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:
Responsible-Changed-From-To: freebsd-bugs->darrenr 
Responsible-Changed-By: cjc 
Responsible-Changed-When: Tue Jan 1 13:49:48 PST 2002 
Responsible-Changed-Why:  
Over to IPFilter author/maintainer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33442 
State-Changed-From-To: open->feedback 
State-Changed-By: darrenr 
State-Changed-When: Tue Mar 12 06:54:40 PST 2002 
State-Changed-Why:  
the first part of the patch (to ip_log.c) will be integrated with the next 
ipfilter merge 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33442 
State-Changed-From-To: feedback->closed 
State-Changed-By: darrenr 
State-Changed-When: Sat Apr 27 13:06:26 PDT 2002 
State-Changed-Why:  
this is now available on -current and -stable 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33442 
>Unformatted:
