]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r317208:
authortuexen <tuexen@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 9 Aug 2017 13:26:12 +0000 (13:26 +0000)
committertuexen <tuexen@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 9 Aug 2017 13:26:12 +0000 (13:26 +0000)
commit110e98f4c5f12623eb8bb9f696287bc921c166fe
tree49f4c556a9a5869d3c1a04780230bc7f8a410a8d
parent4e86dda61f18ff99a57ab1f11d485f8dd2f5f2ec
MFC r317208:

Syncoockies can be used in combination with the syncache. If the cache
overflows, syncookies are used.
This patch restricts the usage of syncookies in this case: accept
syncookies only if there was an overflow of the syncache recently.
This mitigates a problem reported in PR217637, where is syncookie was
accepted without any recent drops.
Thanks to glebius@ for suggesting an improvement.

PR: 217637
Reviewed by: gnn, glebius
Differential Revision: https://reviews.freebsd.org/D10272

git-svn-id: svn://svn.freebsd.org/base/stable/10@322315 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/tcp_syncache.c
sys/netinet/tcp_syncache.h