summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-04-12 21:28:35 +0000
committerrwatson <rwatson@FreeBSD.org>2009-04-12 21:28:35 +0000
commit67227c12c0e0a27755a06861b476815955bd8b2b (patch)
tree35d65244575c98974af52810da6153780138e0d6
parent3773a370f12a761c30ee1aa30e4eb23fb689731d (diff)
downloadFreeBSD-src-67227c12c0e0a27755a06861b476815955bd8b2b.zip
FreeBSD-src-67227c12c0e0a27755a06861b476815955bd8b2b.tar.gz
Put TCPSTAT_ADD() and TCPSTAT_INC() behind _KERNEL.
MFC after: 3 days
-rw-r--r--sys/netinet/tcp_var.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index d3d32c5..268db7c 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -458,8 +458,10 @@ struct tcpstat {
u_long tcps_ecn_rcwnd; /* # times ECN reduced the cwnd */
};
+#ifdef _KERNEL
#define TCPSTAT_ADD(name, val) V_tcpstat.name += (val)
#define TCPSTAT_INC(name) TCPSTAT_ADD(name, 1)
+#endif
/*
* TCB structure exported to user-land via sysctl(3).
OpenPOWER on IntegriCloud