SCTP_BASE_STATS
SCTP_MALLOC(SCTP_BASE_STATS, struct sctpstat *,
memset(SCTP_BASE_STATS, 0, sizeof(struct sctpstat) * (mp_maxid + 1));
SCTP_BASE_STATS[PCPU_GET(cpuid)].sctps_discontinuitytime.tv_sec = (uint32_t)tv.tv_sec;
SCTP_BASE_STATS[PCPU_GET(cpuid)].sctps_discontinuitytime.tv_usec = (uint32_t)tv.tv_usec;
memset(&SCTP_BASE_STATS, 0, sizeof(struct sctpstat));
SCTP_FREE(SCTP_BASE_STATS, SCTP_M_MCORE);
sarry = &SCTP_BASE_STATS[cpu];
error = SYSCTL_OUT(req, &SCTP_BASE_STATS, sizeof(struct sctpstat));
memcpy(&SCTP_BASE_STATS, &sb_temp, sizeof(struct sctpstat));
#define SCTP_STAT_INCR_BY(_x,_d) (SCTP_BASE_STATS[PCPU_GET(cpuid)]._x += _d)
#define SCTP_STAT_DECR_BY(_x,_d) (SCTP_BASE_STATS[PCPU_GET(cpuid)]._x -= _d)