diff options
author | gnezdo <gnezdo@cvs.openbsd.org> | 2020-11-02 04:29:24 +0000 |
---|---|---|
committer | gnezdo <gnezdo@cvs.openbsd.org> | 2020-11-02 04:29:24 +0000 |
commit | 47bf7d1952bfea0c9d6b33cac9793f9ca0369fb2 (patch) | |
tree | 61a8eb512c918bf47307985ca7037f5a67d842c1 /sys | |
parent | b7b3c10a7a9db7389b86263b0613e7b2b20a309f (diff) |
Move TCPCTL_ALWAYS_KEEPALIVE into tcpctl_vars
OK deraadt
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 7b0aaac7bac..5057a6af44e 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.176 2020/08/18 18:19:30 gnezdo Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.177 2020/11/02 04:29:23 gnezdo Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -125,6 +125,7 @@ const struct sysctl_bounded_args tcpctl_vars[] = { { TCPCTL_SYN_CACHE_LIMIT, &tcp_syn_cache_limit, 1, 1000 * 1000 }, { TCPCTL_SYN_BUCKET_LIMIT, &tcp_syn_bucket_limit, 1, INT_MAX }, { TCPCTL_RFC3390, &tcp_do_rfc3390, 0, 2 }, + { TCPCTL_ALWAYS_KEEPALIVE, &tcp_always_keepalive, 0, 1 }, }; struct inpcbtable tcbtable; @@ -1027,13 +1028,6 @@ tcp_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, NET_UNLOCK(); return (error); - case TCPCTL_ALWAYS_KEEPALIVE: - NET_LOCK(); - error = sysctl_int(oldp, oldlenp, newp, newlen, - &tcp_always_keepalive); - NET_UNLOCK(); - return (error); - case TCPCTL_REASS_LIMIT: NET_LOCK(); nval = tcp_reass_limit; |