diff options
author | 1997-06-06 11:22:18 +0000 | |
---|---|---|
committer | 1997-06-06 11:22:18 +0000 | |
commit | 0ab1fc182be4518be411cf9f5c1ed98f8b93ae27 (patch) | |
tree | 185bdac4a7e674ce61d7fd712d99831b2c28d007 /sys/netinet/tcp_usrreq.c | |
parent | SO_SNDTIMEO tv_usec calc error; stevens, vol2, p548 (diff) | |
download | wireguard-openbsd-0ab1fc182be4518be411cf9f5c1ed98f8b93ae27.tar.xz wireguard-openbsd-0ab1fc182be4518be411cf9f5c1ed98f8b93ae27.zip |
add net.inet.tcp.{keepidle,keepintvl,slowhz}; mouse@Rodents.Montreal.QC.CA
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 19647d2695f..1812cdb9280 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.8 1997/02/05 15:48:27 deraadt Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.9 1997/06/06 11:22:18 deraadt Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -580,6 +580,17 @@ tcp_sysctl(name, namelen, oldp, oldlenp, newp, newlen) return (sysctl_int(oldp, oldlenp, newp, newlen, &tcptv_keep_init)); + case TCPCTL_KEEPIDLE: + return (sysctl_int(oldp, oldlenp, newp, newlen, + &tcp_keepidle)); + + case TCPCTL_KEEPINTVL: + return (sysctl_int(oldp, oldlenp, newp, newlen, + &tcp_keepintvl)); + + case TCPCTL_SLOWHZ: + return (sysctl_rdint(oldp, oldlenp, newp, PR_SLOWHZ)); + default: return (ENOPROTOOPT); } |