svn commit: r242003 - user/andre/tcp_workqueue/sys/netinet
Andre Oppermann
andre at FreeBSD.org
Wed Oct 24 15:02:40 UTC 2012
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)");
More information about the svn-src-user
mailing list