]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Access the syncache secret directly from the V_tcp_syncache variable,
authorJonathan T. Looney <jtl@FreeBSD.org>
Thu, 26 Sep 2019 15:06:46 +0000 (15:06 +0000)
committerJonathan T. Looney <jtl@FreeBSD.org>
Thu, 26 Sep 2019 15:06:46 +0000 (15:06 +0000)
commit0bee4d631a16bddf55b44beff1bba5fab1c08f11
tree2bb9d3c87c16f65eb888d19cdbf49bdb8de15ddf
parent867e98f8ee02f00d822f6f7068e506f7ccf9cc65
Access the syncache secret directly from the V_tcp_syncache variable,
rather than indirectly through the backpointer to the tcp_syncache
structure stored in the hashtable bucket.

This also allows us to remove the requirement in syncookie_generate()
and syncookie_lookup() that the syncache hashtable bucket must be
locked.

Reviewed by: gallatin, rrs
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D21644
sys/netinet/tcp_syncache.c