summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_syncache.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-04-21 20:24:43 +0000
committerps <ps@FreeBSD.org>2005-04-21 20:24:43 +0000
commitebae7f1bff2e5883b998c2cb2781f97dc310961c (patch)
tree1e09cd68dfc02b0913e33c2791769c60121c81fe /sys/netinet/tcp_syncache.c
parenta61b20503e3588f6845f8ccaae377a75c7e6d8f0 (diff)
downloadFreeBSD-src-ebae7f1bff2e5883b998c2cb2781f97dc310961c.zip
FreeBSD-src-ebae7f1bff2e5883b998c2cb2781f97dc310961c.tar.gz
Undo rev 1.71 as it is the wrong change.
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r--sys/netinet/tcp_syncache.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index e2e9254..b95efb6 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -977,17 +977,14 @@ syncache_add(inc, to, th, sop, m)
sc->sc_flags = SCF_NOOPT;
#ifdef TCP_SIGNATURE
/*
- * If listening socket requested TCP digests, flag this in the
- * syncache so that syncache_respond() will do the right thing
- * with the SYN+ACK.
- *
- * RFC 2395, Section 2.0, says
- * "Unlike other TCP extensions (e.g., the Window Scale option
- * [RFC1323]), the absence of the option in the SYN,ACK segment must not
- * cause the sender to disable its sending of signatures".
+ * If listening socket requested TCP digests, and received SYN
+ * contains the option, flag this in the syncache so that
+ * syncache_respond() will do the right thing with the SYN+ACK.
+ * XXX Currently we always record the option by default and will
+ * attempt to use it in syncache_respond().
*/
- if (tp->t_flags & TF_SIGNATURE)
- sc->sc_flags |= SCF_SIGNATURE;
+ if (to->to_flags & TOF_SIGNATURE)
+ sc->sc_flags = SCF_SIGNATURE;
#endif
if (to->to_flags & TOF_SACK)
OpenPOWER on IntegriCloud