From owner-cvs-all Thu Sep 27 16:44:32 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2BD8137B40F; Thu, 27 Sep 2001 16:44:28 -0700 (PDT) Received: (from luigi@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8RNiSV40274; Thu, 27 Sep 2001 16:44:28 -0700 (PDT) (envelope-from luigi) Message-Id: <200109272344.f8RNiSV40274@freefall.freebsd.org> From: Luigi Rizzo Date: Thu, 27 Sep 2001 16:44:27 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_dummynet.c ip_dummynet.h ip_fw.c ip_fw.h ip_input.c ip_output.c src/sys/net bridge.c src/sbin/ipfw ipfw.8 ipfw.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG luigi 2001/09/27 16:44:27 PDT Modified files: sys/netinet ip_dummynet.c ip_dummynet.h ip_fw.c ip_fw.h ip_input.c ip_output.c sys/net bridge.c sbin/ipfw ipfw.8 ipfw.c Log: Two main changes here: + implement "limit" rules, which permit to limit the number of sessions between certain host pairs (according to masks). These are a special type of stateful rules, which might be of interest in some cases. See the ipfw manpage for details. + merge the list pointers and ipfw rule descriptors in the kernel, so the code is smaller, faster and more readable. This patch basically consists in replacing "foo->rule->bar" with "rule->bar" all over the place. I have been willing to do this for ages! MFC after: 1 week Revision Changes Path 1.90 +42 -18 src/sbin/ipfw/ipfw.8 1.111 +62 -20 src/sbin/ipfw/ipfw.c 1.38 +3 -3 src/sys/net/bridge.c 1.42 +21 -21 src/sys/netinet/ip_dummynet.c 1.15 +3 -3 src/sys/netinet/ip_dummynet.h 1.170 +243 -165 src/sys/netinet/ip_fw.c 1.59 +66 -63 src/sys/netinet/ip_fw.h 1.179 +3 -3 src/sys/netinet/ip_input.c 1.136 +3 -3 src/sys/netinet/ip_output.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message