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

/freebsd-13-stable/usr.bin/netstat/
H A Dsctp.c586 struct sctpstat sctpstat; local
588 if (fetch_stats("net.inet.sctp.stats", off, &sctpstat,
589 sizeof(sctpstat), kread) != 0)
595 #define p(f, m) if (sctpstat.f || sflag <= 1) \
596 xo_emit(m, (uintmax_t)sctpstat.f, plural(sctpstat.f))
597 #define p1a(f, m) if (sctpstat.f || sflag <= 1) \
598 xo_emit(m, (uintmax_t)sctpstat.f)
/freebsd-13-stable/usr.bin/systat/
H A Dsctp.c48 static struct sctpstat curstat, initstat, oldstat;
124 domode(struct sctpstat *ret)
126 const struct sctpstat *sub;
276 struct sctpstat stats;
317 error("sysctl getting sctpstat size failed");
321 error("sctpstat structure has grown--recompile systat!");
325 error("sysctl getting sctpstat failed");
340 error("sysctl getting sctpstat failed");
354 error("sysctl getting sctpstat failed");
/freebsd-13-stable/sys/netinet/
H A Dsctp_pcb.h248 struct sctpstat *sctpstat; member in struct:sctp_base_info
250 struct sctpstat sctpstat; member in struct:sctp_base_info
H A Dsctp_sysctl.c656 struct sctpstat *sarry;
657 struct sctpstat sb;
660 struct sctpstat sb_temp;
663 (req->newlen != sizeof(struct sctpstat))) {
666 memset(&sb_temp, 0, sizeof(struct sctpstat));
669 error = SYSCTL_IN(req, &sb_temp, sizeof(struct sctpstat));
802 memcpy(sarry, &sb_temp, sizeof(struct sctpstat));
805 error = SYSCTL_OUT(req, &sb, sizeof(struct sctpstat));
807 error = SYSCTL_OUT(req, &SCTP_BASE_STATS, sizeof(struct sctpstat));
812 memcpy(&SCTP_BASE_STATS, &sb_temp, sizeof(struct sctpstat));
[all...]
H A Dsctp_os_bsd.h146 #define SCTP_BASE_STATS V_system_base_info.sctpstat
147 #define SCTP_BASE_STAT(__m) V_system_base_info.sctpstat.__m
H A Dsctp_uio.h944 struct sctpstat { struct
H A Dsctp_pcb.c5708 SCTP_MALLOC(SCTP_BASE_STATS, struct sctpstat *,
5709 ((mp_maxid + 1) * sizeof(struct sctpstat)),
5714 memset(SCTP_BASE_STATS, 0, sizeof(struct sctpstat) * (mp_maxid + 1));
5718 memset(&SCTP_BASE_STATS, 0, sizeof(struct sctpstat));

Completed in 123 milliseconds