Home
last modified time | relevance | path

Searched refs:arpstat (Results 1 – 4 of 4) sorted by relevance

/src/tools/regression/netinet/arphold/
H A Darphold.c67 struct arpstat arpstat; in main() local
68 size_t len = sizeof(arpstat); in main()
97 if (sysctlbyname("net.link.ether.arp.stats", &arpstat, &len, in main()
103 dropped = arpstat.dropped; in main()
122 if (sysctlbyname("net.link.ether.arp.stats", &arpstat, &len, in main()
129 printf("dropped after %ld\n", arpstat.dropped); in main()
132 if (arpstat.dropped != dropped) { in main()
134 "before %ld after %ld\n", dropped, arpstat.dropped); in main()
138 dropped = arpstat.dropped; in main()
147 if (sysctlbyname("net.link.ether.arp.stats", &arpstat, &len, in main()
[all …]
/src/sys/net/
H A Dif_arp.h98 struct arpstat { struct
119 VNET_PCPUSTAT_DECLARE(struct arpstat, arpstat); argument
125 VNET_PCPUSTAT_ADD(struct arpstat, arpstat, name, (val))
/src/usr.bin/netstat/
H A Dinet.c1132 struct arpstat arpstat; in arp_stats() local
1134 if (fetch_stats("net.link.ether.arp.stats", off, &arpstat, in arp_stats()
1135 sizeof(arpstat), kread_counters) != 0) in arp_stats()
1141 #define p(f, m) if (arpstat.f || sflag <= 1) \ in arp_stats()
1142 xo_emit("\t" m, (uintmax_t)arpstat.f, plural(arpstat.f)) in arp_stats()
1143 #define p2(f, m) if (arpstat.f || sflag <= 1) \ in arp_stats()
1144 xo_emit("\t" m, (uintmax_t)arpstat.f, pluralies(arpstat.f)) in arp_stats()
/src/sys/netinet/
H A Dif_ether.c106 VNET_PCPUSTAT_DEFINE(struct arpstat, arpstat); /* ARP statistics, see if_arp.h */
107 VNET_PCPUSTAT_SYSINIT(arpstat);
110 VNET_PCPUSTAT_SYSUNINIT(arpstat);
134 SYSCTL_VNET_PCPUSTAT(_net_link_ether_arp, OID_AUTO, stats, struct arpstat,
135 arpstat, "ARP statistics (struct arpstat, net/if_arp.h)");