From owner-svn-src-user@FreeBSD.ORG Wed Oct 24 15:02:40 2012 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 54DC6958; Wed, 24 Oct 2012 15:02:40 +0000 (UTC) (envelope-from andre@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3A2188FC14; Wed, 24 Oct 2012 15:02:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9OF2eSh037599; Wed, 24 Oct 2012 15:02:40 GMT (envelope-from andre@svn.freebsd.org) Received: (from andre@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9OF2erf037597; Wed, 24 Oct 2012 15:02:40 GMT (envelope-from andre@svn.freebsd.org) Message-Id: <201210241502.q9OF2erf037597@svn.freebsd.org> From: Andre Oppermann Date: Wed, 24 Oct 2012 15:02:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r242003 - user/andre/tcp_workqueue/sys/netinet X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 15:02:40 -0000 Author: andre Date: Wed Oct 24 15:02:39 2012 New Revision: 242003 URL: http://svn.freebsd.org/changeset/base/242003 Log: Mark the tcpstat sysctl read-only instead of writeable. Userspace should not write into tcp statistics. Modified: user/andre/tcp_workqueue/sys/netinet/tcp_input.c Modified: user/andre/tcp_workqueue/sys/netinet/tcp_input.c ============================================================================== --- user/andre/tcp_workqueue/sys/netinet/tcp_input.c Wed Oct 24 14:36:26 2012 (r242002) +++ user/andre/tcp_workqueue/sys/netinet/tcp_input.c Wed Oct 24 15:02:39 2012 (r242003) @@ -121,7 +121,7 @@ __FBSDID("$FreeBSD$"); const int tcprexmtthresh = 3; VNET_DEFINE(struct tcpstat, tcpstat); -SYSCTL_VNET_STRUCT(_net_inet_tcp, TCPCTL_STATS, stats, CTLFLAG_RW, +SYSCTL_VNET_STRUCT(_net_inet_tcp, TCPCTL_STATS, stats, CTLFLAG_RD, &VNET_NAME(tcpstat), tcpstat, "TCP statistics (struct tcpstat, netinet/tcp_var.h)");