summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2005-11-02 22:17:21 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2005-11-02 22:17:21 +0000
commita99bfe46a16e863f5074e6a07a358f7f06cc89c4 (patch)
tree0743d5a0042af8b8acd3031688851a5d9f9dccaf
parent1e95237e2a7cedfa051cfa903a869b1411ff3580 (diff)
inherit sack_enable from the listen socket, this should allow connections
with both sack and md5 options in SYN.
-rw-r--r--sys/netinet/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index d95fd196561..174aa1333d3 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.191 2005/10/17 08:43:34 henning Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.192 2005/11/02 22:17:20 markus Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -3976,7 +3976,7 @@ syn_cache_add(src, dst, th, iphlen, so, m, optp, optlen, oi)
#endif
tb.pf = tp->pf;
#ifdef TCP_SACK
- tb.sack_enable = tcp_do_sack;
+ tb.sack_enable = tp->sack_enable;
#endif
tb.t_flags = tcp_do_rfc1323 ? (TF_REQ_SCALE|TF_REQ_TSTMP) : 0;
#ifdef TCP_SIGNATURE