]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r316810, r316814, r316816, r316991:
authorcy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Apr 2017 02:37:25 +0000 (02:37 +0000)
committercy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Apr 2017 02:37:25 +0000 (02:37 +0000)
commit8bbec60f6bba3fbcb7fbe69fd8b08bc75242789a
tree466a76478e547daa42782f9285aea80b2504522c
parentfd63d0a521c9109d748e7fc89d135226fce06efd
MFC r316810, r316814, r316816, r316991:

Keep state incorrectly assumes keep frags. This is counter to the
ipfilter man pages. This also currently restricts keep frags to only when
keep state is used, which is redundant because keep state currently
assumes keep frags. This commit fixes this.

To the user this change means that to maintain the current behaviour
one must add keep frags to any ipfilter keep state rule (as documented
in the man pages).

This patch also allows the flexability to specify and use keep frags
separate from keep state, as documented in an example in ipf.conf.5,
instead of the currently broken behaviour.

MFC suggested by: rgrimes
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@317434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
UPDATING
sys/contrib/ipfilter/netinet/fil.c
sys/contrib/ipfilter/netinet/ip_state.c