Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2012 15:02:40 +0000 (UTC)
From:      Andre Oppermann <andre@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r242003 - user/andre/tcp_workqueue/sys/netinet
Message-ID:  <201210241502.q9OF2erf037597@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210241502.q9OF2erf037597>