From owner-freebsd-net@FreeBSD.ORG Sat Aug 23 21:29:30 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D710A106567D for ; Sat, 23 Aug 2008 21:29:30 +0000 (UTC) (envelope-from rik@inse.ru) Received: from mail.inse.ru (mail.inse.ru [144.206.128.1]) by mx1.freebsd.org (Postfix) with ESMTP id 8D0938FC24 for ; Sat, 23 Aug 2008 21:29:30 +0000 (UTC) (envelope-from rik@inse.ru) Received: from www.inse.ru (www.inse.ru [144.206.128.1]) by mail.inse.ru (Postfix) with ESMTPSA id 6787B33C73 for ; Sun, 24 Aug 2008 01:29:29 +0400 (MSD) Message-ID: <48B07DC5.2030203@localhost.inse.ru> Date: Sun, 24 Aug 2008 01:14:45 +0400 From: Roman Kurakin User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: multipart/mixed; boundary="------------020709070808060601010408" Subject: [Fwd: IPFW PATCH: make the IPFW_DEFUALT_RULE number constant non private] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2008 21:29:30 -0000 This is a multi-part message in MIME format. --------------020709070808060601010408 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, The IPFW_DEFAULT_RULE is also the max allowed rule number. This value should be definitely public, so here is the patch, if there is no objections I'll commit it within a couple of days. After that, I plan to fix a couple of tools that need to know this value. Best regards, rik --------------020709070808060601010408 Content-Type: text/plain; name="patch_fbsd_2" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch_fbsd_2" Index: ip_fw.h =================================================================== --- ip_fw.h (revision 182080) +++ ip_fw.h (working copy) @@ -29,6 +29,11 @@ #define _IPFW2_H /* + * The default rule number. It is also the max possible rule number. + */ +#define IPFW_DEFAULT_RULE 65535 + +/* * The kernel representation of ipfw rules is made of a list of * 'instructions' (for all practical purposes equivalent to BPF * instructions), which specify which fields of the packet Index: ip_fw2.c =================================================================== --- ip_fw2.c (revision 182080) +++ ip_fw2.c (working copy) @@ -122,7 +122,6 @@ static struct callout ipfw_timeout; static uma_zone_t ipfw_dyn_rule_zone; -#define IPFW_DEFAULT_RULE 65535 /* * Data structure to cache our ucred related --------------020709070808060601010408--