diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2002-03-02 00:44:53 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2002-03-02 00:44:53 +0000 |
commit | 3841130e9eea84837afe61d60ced60051d68eb24 (patch) | |
tree | ca9c41c6e0a4667da0fda98e0beb5223ef36045a /sys/netinet/tcp_usrreq.c | |
parent | 8947d29f92fe14e732c743a3d75d85cb985c26a8 (diff) |
disable immediate ack on TH_PUSH. make behaviour sysctl tuneable.
from netbsd; also fix a bug where setting TF_ACKNOW didn't actually
result in an ack.
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index fa505bba5ab..d461a000965 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.56 2002/02/15 20:45:32 nordin Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.57 2002/03/02 00:44:52 provos Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -929,6 +929,9 @@ tcp_sysctl(name, namelen, oldp, oldlenp, newp, newlen) case TCPCTL_RSTPPSLIMIT: return (sysctl_int(oldp, oldlenp, newp, newlen, &tcp_rst_ppslim)); + case TCPCTL_ACK_ON_PUSH: + return (sysctl_int(oldp, oldlenp, newp, newlen, + &tcp_ack_on_push)); default: return (ENOPROTOOPT); } |