Home
last modified time | relevance | path

Searched refs:ipstat (Results 1 – 5 of 5) sorted by relevance

/openbsd-src/lib/libcrypto/arc4random/
H A Dgetentropy_osx.c223 struct ipstat ipstat; in getentropy_fallback() local
268 ii = sizeof(ipstat); in getentropy_fallback()
270 &ipstat, &ii, NULL, 0) == -1, ipstat); in getentropy_fallback()
/openbsd-src/libexec/snmpd/snmpd_metrics/
H A Dmib.c2564 int mib_getipstat(struct ipstat *);
2611 mib_getipstat(struct ipstat *ipstat) in mib_getipstat() argument
2614 size_t len = sizeof(*ipstat); in mib_getipstat()
2616 return (sysctl(mib, nitems(mib), ipstat, &len, NULL, 0)); in mib_getipstat()
2623 struct ipstat ipstat; in mib_ipstat() local
2625 if (mib_getipstat(&ipstat) == -1) { in mib_ipstat()
2633 agentx_varbind_counter32(vb, ipstat.ips_total); in mib_ipstat()
2635 agentx_varbind_counter32(vb, ipstat.ips_noproto); in mib_ipstat()
2637 agentx_varbind_counter32(vb, ipstat.ips_delivered); in mib_ipstat()
2639 agentx_varbind_counter32(vb, ipstat.ips_localout); in mib_ipstat()
[all …]
/openbsd-src/sys/netinet/
H A Dip_var.h57 struct ipstat { struct
214 extern struct ipstat ipstat;
H A Dip_input.c1836 struct ipstat ipstat;
1837 u_long *words = (u_long *)&ipstat;
1840 CTASSERT(sizeof(ipstat) == (nitems(counters) * sizeof(u_long))); in ip_savecontrol()
1841 memset(&ipstat, 0, sizeof ipstat); in ip_savecontrol()
1847 return (sysctl_rdstruct(oldp, oldlenp, newp, &ipstat, sizeof(ipstat))); in ip_savecontrol()
1823 struct ipstat ipstat; ip_sysctl_ipstat() local
/openbsd-src/usr.bin/netstat/
H A Dinet.c575 struct ipstat ipstat; in ip_stats() local
577 size_t len = sizeof(ipstat); in ip_stats()
580 &ipstat, &len, NULL, 0) == -1) { in ip_stats()
587 #define p(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats()
588 printf(m, ipstat.f, plural(ipstat.f)) in ip_stats()
589 #define p1(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats()
590 printf(m, ipstat.f) in ip_stats()