From owner-freebsd-bugs Tue Jan 1 3:40: 6 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 203B637B427 for ; Tue, 1 Jan 2002 03:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g01Be1V16622; Tue, 1 Jan 2002 03:40:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2FFCB37B420 for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/33442: ipf/kernel patch so IPLLOGISZE could be set from the kernel configuration file Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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