freebsd-nq/sbin
Luigi Rizzo 32f967a3c0 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).
2001-09-20 13:52:49 +00:00
..
adjkerntz Fix a prototype and set WARNS=2. 2001-07-15 05:41:57 +00:00
atacontrol mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
atm Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
badsect Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
bsdlabel The defaults for bsize and fsize were interchanged. 2001-09-05 08:51:21 +00:00
camcontrol mdoc(7) police: replace \*(Ba' with a simple |', it's handled specially. 2001-08-16 11:09:00 +00:00
ccdconfig Removed -M and -N from getopt(3) call as well. 2001-09-11 09:49:36 +00:00
clri Set WARNS=2 on programs which compile cleanly. 2001-07-15 10:30:46 +00:00
comcontrol mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
cxconfig mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
dhclient beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
disklabel The defaults for bsize and fsize were interchanged. 2001-09-05 08:51:21 +00:00
dmesg mdoc(7) police: compute the exact tag width. 2001-08-10 10:09:00 +00:00
dump SECURITY. 2001-09-05 15:37:01 +00:00
dumpfs mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
dumpon Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
fdisk mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
fdisk_pc98 mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
ffsinfo Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
fsck mdoc(7) police: Fixed broken xrefs. 2001-08-22 14:16:31 +00:00
fsck_ffs Silence non-constant format string warnings by marking functions 2001-08-19 08:19:37 +00:00
fsck_ifs Silence non-constant format string warnings by marking functions 2001-08-19 08:19:37 +00:00
fsck_msdosfs Document "-F". 2001-07-19 17:06:19 +00:00
fsdb Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
fsirand - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
growfs Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
i386 mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
ifconfig Split hwcsum into rxcsum and txcsum components. 2001-09-18 20:13:48 +00:00
init Silence non-constant format string warnings by marking functions 2001-08-19 08:19:37 +00:00
ip6fw mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
ipf Pick up the correct headers from sys/contrib/ipfilter/netinet. 2001-06-18 15:55:28 +00:00
ipfstat IPFilter source code in contrib/ipfilter apparently can't make up its mind 2001-09-03 16:37:16 +00:00
ipfw A bunch of minor changes to the code (see below) for readability, code size 2001-09-20 13:52:49 +00:00
ipmon Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
ipnat Pick up the correct headers from sys/contrib/ipfilter/netinet. 2001-06-18 15:55:28 +00:00
kget Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
kldconfig This is actually making its enterance in FreeBSD 4.4. 2001-08-01 05:53:12 +00:00
kldload Set WARNS=2 on programs which compile cleanly. 2001-07-15 10:30:46 +00:00
kldstat Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
kldunload mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
ldconfig mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
md5 mdoc(7) police: removed hard sentence breaks. 2001-09-04 09:28:48 +00:00
mdconfig mdoc(7) police: removed (now gratuitous) .Xo/.Xc brackets. 2001-08-10 10:41:30 +00:00
mdmfs mdoc(7) police: Section cross-references are marked with .Sx. 2001-08-16 07:43:16 +00:00
mknod Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mount mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
mount_cd9660 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
mount_ext2fs mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
mount_hpfs Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
mount_ifs Nuke unused variables. 2001-06-24 23:31:07 +00:00
mount_msdosfs Add KOI8-U tables 2001-07-28 20:50:21 +00:00
mount_nfs Userland part of nfs client/server split and cleanup. 2001-09-18 23:34:44 +00:00
mount_ntfs mdoc(7) police: markup nits, improve -W option text, 2001-09-11 09:57:31 +00:00
mount_nullfs Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
mount_nwfs mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
mount_portalfs Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00
mount_std Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mount_umapfs Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
mount_unionfs Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mountd Deal with module name changes and autoloading. 2001-09-20 02:15:17 +00:00
natd mdoc(7) police: 2001-08-07 15:48:51 +00:00
newfs Handle snprintf() returning < 0 (not just -1) 2001-08-20 14:53:05 +00:00
newfs_msdos mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
nextboot Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
nfsd Deal with nfs server module changes for autoloading. 2001-09-20 02:18:06 +00:00
nfsiod mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
nologin Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
nos-tun s/adress/address/ 2001-07-23 12:05:27 +00:00
pc98 mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
ping Set BINOWN=root explicitly for setuid root binaries. 2001-09-13 06:48:18 +00:00
ping6 Set BINOWN=root explicitly for setuid root binaries. 2001-09-13 06:48:18 +00:00
quotacheck Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
rcorder Import the NetBSD 1.5 RC system. 2001-06-16 07:16:14 +00:00
reboot Use ${MACHINE}, it works with cross-builds. 2001-09-12 12:21:08 +00:00
restore restore(8) doesn't need to be setgid `tty', and never did. 2001-08-30 09:18:55 +00:00
route Synch with NetBSD and OpenBSD. 2001-08-31 12:31:09 +00:00
routed ftrace is already initialized 2001-08-13 21:56:09 +00:00
rtsol Sync with recent KAME. 2001-06-11 12:39:29 +00:00
savecore fix savecore so that it works on the alpha after the size change 2001-09-13 21:19:13 +00:00
setkey mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
shutdown Set BINOWN=root explicitly for setuid root binaries. 2001-09-13 06:48:18 +00:00
slattach Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
spppcontrol Set WARNS=2 on programs which compile cleanly. 2001-07-15 10:30:46 +00:00
startslip mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
swapon Set WARNS=2 on programs which compile cleanly. 2001-07-15 10:30:46 +00:00
sysctl Document the deprecated `-w' option in the COMPATIBILITY section. 2001-08-02 12:38:23 +00:00
tunefs sprintf -> snprintf 2001-07-24 11:40:18 +00:00
umount Fix some bugs and general brain damage in mounttab: 2001-07-22 12:17:51 +00:00
vinum mdoc(7) police: restore fix in rev. 1.52; .Dt should be in CAPITALS. 2001-09-11 10:00:48 +00:00
Makefile Userland part of nfs client/server split and cleanup. 2001-09-18 23:34:44 +00:00
Makefile.inc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00