From owner-freebsd-bugs Wed Jun 6 12: 0:10 2001 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 AB39037B403 for ; Wed, 6 Jun 2001 12:00:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f56J04a67038; Wed, 6 Jun 2001 12:00:04 -0700 (PDT) (envelope-from gnats) Received: from wumpus.wlcg.com (wumpus.wlcg.com [209.9.101.248]) by hub.freebsd.org (Postfix) with ESMTP id AFC0237B405 for ; Wed, 6 Jun 2001 11:54:12 -0700 (PDT) (envelope-from rsimmons@wumpus.wlcg.com) Received: (from rsimmons@localhost) by wumpus.wlcg.com (8.11.3/8.11.3) id f56IpVE11245; Wed, 6 Jun 2001 14:51:31 -0400 (EDT) (envelope-from rsimmons) Message-Id: <200106061851.f56IpVE11245@wumpus.wlcg.com> Date: Wed, 6 Jun 2001 14:51:31 -0400 (EDT) From: Rob Simmons Reply-To: rsimmons@wumpus.wlcg.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/27912: ipfilter state table limits are too small 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: 27912 >Category: kern >Synopsis: ipfilter state table limits are too small >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jun 06 12:00:04 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Rob Simmons >Release: FreeBSD 4.3-STABLE i386 >Organization: >Environment: System: FreeBSD wumpus 4.3-STABLE FreeBSD 4.3-STABLE #0: Fri May 11 09:42:50 EDT 2001 root@wumpus:/usr/obj/usr/src/sys/WUMPUS i386 >Description: The ipfilter state table limits are too small. Ideally there should be a sysctl knob for changing these limits on the fly. The second most ideal solution is to have a kernel configuration file knob. The last solution which is less than ideal, but would work for most people is to apply the patch supplied below. >How-To-Repeat: The state tables right now have the following values: #define IPSTATE_SIZE 5737 #define IPSTATE_MAX 4013 >Fix: *** /tmp/ip_state.h Wed Jun 6 14:55:56 2001 --- sys/netinet/ip_state.h Wed Jun 6 14:56:21 2001 *************** *** 18,25 **** # define SIOCDELST _IOW(r, 61, struct ipstate *) #endif ! #define IPSTATE_SIZE 5737 ! #define IPSTATE_MAX 4013 /* Maximum number of states held */ #define PAIRS(s1,d1,s2,d2) ((((s1) == (s2)) && ((d1) == (d2))) ||\ (((s1) == (d2)) && ((d1) == (s2)))) --- 18,25 ---- # define SIOCDELST _IOW(r, 61, struct ipstate *) #endif ! #define IPSTATE_SIZE 64747 ! #define IPSTATE_MAX 45322 /* Maximum number of states held */ #define PAIRS(s1,d1,s2,d2) ((((s1) == (s2)) && ((d1) == (d2))) ||\ (((s1) == (d2)) && ((d1) == (s2)))) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message