Lines Matching defs:tcpstat
588 struct tcpstat tcpstat, zerostat;
589 size_t len = sizeof tcpstat;
601 if (sysctlbyname("net.inet.tcp.stats", &tcpstat, &len,
607 kread_counters(off, &tcpstat, len);
611 #define p(f, m) if (tcpstat.f || sflag <= 1) \
612 printf(m, (uintmax_t )tcpstat.f, plural(tcpstat.f))
614 #define p1a(f, m) if (tcpstat.f || sflag <= 1) \
615 printf(m, (uintmax_t )tcpstat.f)
617 #define p2(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \
618 printf(m, (uintmax_t )tcpstat.f1, plural(tcpstat.f1), \
619 (uintmax_t )tcpstat.f2, plural(tcpstat.f2))
621 #define p2a(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \
622 printf(m, (uintmax_t )tcpstat.f1, plural(tcpstat.f1), \
623 (uintmax_t )tcpstat.f2)
625 #define p3(f, m) if (tcpstat.f || sflag <= 1) \
626 printf(m, (uintmax_t )tcpstat.f, pluralies(tcpstat.f))