Home
last modified time | relevance | path

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

/freebsd/usr.bin/netstat/
H A Dsctp.c576 struct sctpstat sctpstat; in sctp_stats() local
578 if (fetch_stats("net.inet.sctp.stats", off, &sctpstat, in sctp_stats()
579 sizeof(sctpstat), kread) != 0) in sctp_stats()
585 #define p(f, m) if (sctpstat.f || sflag <= 1) \ in sctp_stats()
586 xo_emit(m, (uintmax_t)sctpstat.f, plural(sctpstat.f)) in sctp_stats()
587 #define p1a(f, m) if (sctpstat.f || sflag <= 1) \ in sctp_stats()
588 xo_emit(m, (uintmax_t)sctpstat.f) in sctp_stats()
/freebsd/usr.bin/systat/
H A Dsctp.c45 static struct sctpstat curstat, initstat, oldstat;
121 domode(struct sctpstat *ret) in domode()
123 const struct sctpstat *sub; in domode()
273 struct sctpstat stats; in showsctp()
/freebsd/sys/netinet/
H A Dsctp_sysctl.c688 struct sctpstat *sarry;
689 struct sctpstat sb;
692 struct sctpstat sb_temp;
695 (req->newlen != sizeof(struct sctpstat))) {
698 memset(&sb_temp, 0, sizeof(struct sctpstat));
701 error = SYSCTL_IN(req, &sb_temp, sizeof(struct sctpstat));
837 memcpy(sarry, &sb_temp, sizeof(struct sctpstat));
840 error = SYSCTL_OUT(req, &sb, sizeof(struct sctpstat));
842 error = SYSCTL_OUT(req, &SCTP_BASE_STATS, sizeof(struct sctpstat));
847 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.c5589 SCTP_MALLOC(SCTP_BASE_STATS, struct sctpstat *, in sctp_pcb_init()
5590 ((mp_maxid + 1) * sizeof(struct sctpstat)), in sctp_pcb_init()
5595 memset(SCTP_BASE_STATS, 0, sizeof(struct sctpstat) * (mp_maxid + 1)); in sctp_pcb_init()
5599 memset(&SCTP_BASE_STATS, 0, sizeof(struct sctpstat)); in sctp_pcb_init()