]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
A bunch of minor changes to the code (see below) for readability, code size
authorluigi <luigi@FreeBSD.org>
Thu, 20 Sep 2001 13:52:49 +0000 (13:52 +0000)
committerluigi <luigi@FreeBSD.org>
Thu, 20 Sep 2001 13:52:49 +0000 (13:52 +0000)
commit571d41f16011722ff95afd59b4546c5a48ac1012
tree4f7e4a76577dadc8b3a56fdfc60d112bf59dffc0
parent785a826aae4983f7e57dcbdc604162c156ceace5
A bunch of minor changes to the code (see below) for readability, code size
and speed. No new functionality added (yet) apart from a bugfix.
MFC will occur in due time and probably in stages.

BUGFIX: fix a problem in old code which prevented reallocation of
the hash table for dynamic rules (there is a PR on this).

OTHER CHANGES: minor changes to the internal struct for static and dynamic rules.
Requires rebuild of ipfw binary.

Add comments to show how data structures are linked together.
(It probably makes no sense to keep the chain pointers separate
from actual rule descriptors. They will be hopefully merged soon.

keep a (sysctl-readable) counter for the number of static rules,
to speed up IP_FW_GET operations

initial support for a "grace time" for expired connections, so we
can set timeouts for closing connections to much shorter times.

merge zero_entry() and resetlog_entry(), they use basically the
same code.

clean up and reduce replication of code for removing rules,
both for readability and code size.

introduce a separate lifetime for dynamic UDP rules.

fix a problem in old code which prevented reallocation of
the hash table for dynamic rules (PR ...)

restructure dynamic rule descriptors

introduce some local variables to avoid multiple dereferencing of
pointer chains (reduces code size and hopefully increases speed).
sbin/ipfw/ipfw.c
sys/netinet/ip_fw.c
sys/netinet/ip_fw.h