freebsd-src/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
atacontrol
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
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
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
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
ipf
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
ipnat
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
kldunload
ldconfig
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
mount_cd9660
mount_ext2fs
mount_hpfs Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
mount_ifs
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
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
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
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
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