Put TCPSTAT_ADD() and TCPSTAT_INC() behind _KERNEL.

MFC after:	3 days
This commit is contained in:
Robert Watson 2009-04-12 21:28:35 +00:00
parent 2983091e25
commit de231a063a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190978

View File

@ -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).