1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00
freebsd/sys
Julian Elischer bb60f459a0 Add optional code to change the way that divert and ipfw work together.
Prior to this change, Accidental recursion protection was done by
the diverted daemon feeding back the divert port number it got
the packet on, as the port number on a sendto(). IPFW knew not to
redivert a packet to this port (again). Processing of the ruleset
started at the beginning again, skipping that divert port.

The new semantic (which is how we should have done it the first time)
is that the port number in the sendto() is the rule number AFTER which
processing should restart, and on a recvfrom(), the port number is the
rule number which caused the diversion. This is much more flexible,
and also more intuitive. If the user uses the same sockaddr received
when resending, processing resumes at the rule number following that
that caused the diversion. The user can however select to resume rule
processing at any rule. (0 is restart at the beginning)

To enable the new code use

option	IPFW_DIVERT_RESTART

This should become the default as soon as people have looked at it a bit
1998-05-25 10:37:48 +00:00
..
alpha libtcl expects to see ieeefp.h definitions through this header. 1998-05-13 22:40:42 +00:00
amd64 Use switch instead of if/else chain for 686 model identification. 1998-05-22 22:15:14 +00:00
compat s/nanoruntime/nanouptime/g 1998-05-17 11:53:46 +00:00
compile
conf Add optional code to change the way that divert and ipfw work together. 1998-05-25 10:37:48 +00:00
contrib/softupdates Bring up-to-date with Whistle's current version 1998-05-19 23:07:25 +00:00
ddb Redo the previous commit in a more Bruce-friendly fashion. 1998-05-19 18:42:09 +00:00
dev Reviewed by: hasty@freebsd.org 1998-05-24 18:29:20 +00:00
fs Make flushing dirty pages work correctly on filesystems that 1998-05-21 07:47:58 +00:00
geom Slightly more correct initialisation of the new buf struct for soft-updates. 1998-03-09 20:39:26 +00:00
gnu Don't use "ffs" in an ext2fs sleep message string. 1998-05-16 17:47:44 +00:00
i386 Use switch instead of if/else chain for 686 model identification. 1998-05-22 22:15:14 +00:00
isa LoadSoftModem() routine at sio.c does not trap general serial I/Os. 1998-05-20 06:46:58 +00:00
isofs/cd9660 As described by the submitter: 1998-05-06 05:29:41 +00:00
kern Make flushing dirty pages work correctly on filesystems that 1998-05-21 07:47:58 +00:00
libkern Support compiling with `gcc -ansi'. 1998-04-15 17:47:40 +00:00
miscfs Make flushing dirty pages work correctly on filesystems that 1998-05-21 07:47:58 +00:00
modules Removed reference to obsolete file "README.iBCS2". 1998-05-19 03:31:34 +00:00
msdosfs Fix priority bug in previous commit. 1998-05-18 10:24:26 +00:00
net Backed out last fix and fixed my typo: 1998-05-21 00:33:16 +00:00
netatalk Remove stray debug message. 1998-05-24 03:25:24 +00:00
netinet Add optional code to change the way that divert and ipfw work together. 1998-05-25 10:37:48 +00:00
netipx Don't depend on "implicit int". 1998-05-01 18:30:02 +00:00
netkey Really make this compile.. 1998-04-06 05:11:42 +00:00
netnatm Staticize. 1998-02-09 06:11:36 +00:00
netns
nfs Convert a couple of large allocations to use zones rather than malloc 1998-05-24 14:41:56 +00:00
nfsclient Convert a couple of large allocations to use zones rather than malloc 1998-05-24 14:41:56 +00:00
nfsserver Convert a couple of large allocations to use zones rather than malloc 1998-05-24 14:41:56 +00:00
pc98 Fixed missing semicolon and added space before semicolon. 1998-05-25 09:57:34 +00:00
pccard Include pc98.h instead of isa.h when PC98 is defined. 1998-05-05 13:21:08 +00:00
pci Reviewed by: hasty@freebsd.org 1998-05-24 18:29:20 +00:00
posix4 1. Add new defs for mins and maxs for the POSIX flavor priorities. They 1998-05-19 21:11:53 +00:00
powerpc/include Disallow reading the current kernel stack. Only the user structure and 1998-05-19 00:00:14 +00:00
rpc
scsi Reformat some comments to not overflow 80 chars. 1998-05-24 04:52:31 +00:00
sys Add GDB support for ELF shared libs. 1998-05-23 15:17:53 +00:00
tools
ufs Ensure that there is enough information here, so that people can use 1998-05-19 23:18:37 +00:00
vm Support a 16K first level cache for 512K 2nd level. Also, add support 1998-05-24 04:25:27 +00:00
Makefile Test for the existance of ${MACHINE}/boot before trying to build it. 1998-02-20 07:37:08 +00:00