Lines Matching defs:tcpstat
576 struct tcpstat tcpstat;
586 if (fetch_stats("net.inet.tcp.stats", off, &tcpstat,
587 sizeof(tcpstat), kread_counters) != 0)
597 #define p(f, m) if (tcpstat.f || sflag <= 1) \
598 xo_emit(m, (uintmax_t )tcpstat.f, plural(tcpstat.f))
599 #define p1a(f, m) if (tcpstat.f || sflag <= 1) \
600 xo_emit(m, (uintmax_t )tcpstat.f)
601 #define p2(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \
602 xo_emit(m, (uintmax_t )tcpstat.f1, plural(tcpstat.f1), \
603 (uintmax_t )tcpstat.f2, plural(tcpstat.f2))
604 #define p2a(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \
605 xo_emit(m, (uintmax_t )tcpstat.f1, plural(tcpstat.f1), \
606 (uintmax_t )tcpstat.f2)
607 #define p3(f, m) if (tcpstat.f || sflag <= 1) \
608 xo_emit(m, (uintmax_t )tcpstat.f, pluralies(tcpstat.f))