diff options
author | 2020-11-02 04:29:23 +0000 | |
---|---|---|
committer | 2020-11-02 04:29:23 +0000 | |
commit | fd016bb1fafaa3cf355dfeaf8d6211fc2f3e1a40 (patch) | |
tree | 31d6460dbd6c1776c12181fbff941e35b1a24bfa /sys/netinet/tcp_usrreq.c | |
parent | print "depend on" information when available in "ospfctl sh int" output. (diff) | |
download | wireguard-openbsd-fd016bb1fafaa3cf355dfeaf8d6211fc2f3e1a40.tar.xz wireguard-openbsd-fd016bb1fafaa3cf355dfeaf8d6211fc2f3e1a40.zip |
Move TCPCTL_ALWAYS_KEEPALIVE into tcpctl_vars
OK deraadt
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-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; |