]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
syncache: accept packet with no SA when TCP_MD5SIG is set
authorRobert Wing <rew@FreeBSD.org>
Sun, 9 Jan 2022 01:07:50 +0000 (16:07 -0900)
committerRobert Wing <rew@FreeBSD.org>
Thu, 10 Feb 2022 19:31:33 +0000 (10:31 -0900)
commit7205809809e70db0abf2cecaf7f5e056650315bb
tree6ebac0074b4cede50e401368ce93d15a85880bf4
parent90aacac54b8336c5c36f64001d62ab2dd581c0c2
syncache: accept packet with no SA when TCP_MD5SIG is set

When TCP_MD5SIG is set on a socket, all packets are dropped that don't
contain an MD5 signature. Relax this behavior to accept a non-signed
packet when a security association doesn't exist with the peer.

This is useful when a listen socket set with TCP_MD5SIG wants to handle
connections protected with and without MD5 signatures.

Reviewed by: bz (previous version)
Sponsored by:   nepustil.net
Sponsored by:   Klara Inc.
Differential Revision: https://reviews.freebsd.org/D33227

(cherry picked from commit eb18708ec8c7e1de6a05aba41971659549991b10)
share/man/man4/tcp.4
sys/netinet/tcp_syncache.c
sys/netipsec/xform_tcp.c