Home
last modified time | relevance | path

Searched refs:sctpstat (Results 1 – 7 of 7) sorted by relevance

/freebsd-14.2/usr.bin/netstat/
H A Dsctp.c584 struct sctpstat sctpstat; in sctp_stats() local
586 if (fetch_stats("net.inet.sctp.stats", off, &sctpstat, in sctp_stats()
587 sizeof(sctpstat), kread) != 0) in sctp_stats()
593 #define p(f, m) if (sctpstat.f || sflag <= 1) \ in sctp_stats()
594 xo_emit(m, (uintmax_t)sctpstat.f, plural(sctpstat.f)) in sctp_stats()
595 #define p1a(f, m) if (sctpstat.f || sflag <= 1) \ in sctp_stats()
596 xo_emit(m, (uintmax_t)sctpstat.f) in sctp_stats()
/freebsd-14.2/usr.bin/systat/
H A Dsctp.c46 static struct sctpstat curstat, initstat, oldstat;
122 domode(struct sctpstat *ret) in domode()
124 const struct sctpstat *sub; in domode()
274 struct sctpstat stats; in showsctp()
/freebsd-14.2/sys/netinet/
H A Dsctp_sysctl.c684 struct sctpstat *sarry;
685 struct sctpstat sb;
688 struct sctpstat sb_temp;
691 (req->newlen != sizeof(struct sctpstat))) {
694 memset(&sb_temp, 0, sizeof(struct sctpstat));
697 error = SYSCTL_IN(req, &sb_temp, sizeof(struct sctpstat));
833 memcpy(sarry, &sb_temp, sizeof(struct sctpstat));
836 error = SYSCTL_OUT(req, &sb, sizeof(struct sctpstat));
838 error = SYSCTL_OUT(req, &SCTP_BASE_STATS, sizeof(struct sctpstat));
843 memcpy(&SCTP_BASE_STATS, &sb_temp, sizeof(struct sctpstat));
H A Dsctp_pcb.h245 struct sctpstat *sctpstat; member
247 struct sctpstat sctpstat; member
H A Dsctp_os_bsd.h142 #define SCTP_BASE_STATS V_system_base_info.sctpstat
143 #define SCTP_BASE_STAT(__m) V_system_base_info.sctpstat.__m
H A Dsctp_uio.h945 struct sctpstat { struct
H A Dsctp_pcb.c5577 SCTP_MALLOC(SCTP_BASE_STATS, struct sctpstat *, in sctp_pcb_init()
5578 ((mp_maxid + 1) * sizeof(struct sctpstat)), in sctp_pcb_init()
5583 memset(SCTP_BASE_STATS, 0, sizeof(struct sctpstat) * (mp_maxid + 1)); in sctp_pcb_init()
5587 memset(&SCTP_BASE_STATS, 0, sizeof(struct sctpstat)); in sctp_pcb_init()