summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-05-25 10:37:48 +0000
committerjulian <julian@FreeBSD.org>1998-05-25 10:37:48 +0000
commit8c304384d07abcd64cb1542078a26c103aca8a0c (patch)
tree86945df8f3fb0f7337ec7ff3582e6b50d430cb7c /usr.bin
parentbf79f2c5a4a882aa62556198a11b4823281da1f7 (diff)
downloadFreeBSD-src-8c304384d07abcd64cb1542078a26c103aca8a0c.zip
FreeBSD-src-8c304384d07abcd64cb1542078a26c103aca8a0c.tar.gz
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
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud