Home
last modified time | relevance | path

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

/freebsd-13.1/tools/regression/netinet/arphold/
H A Darphold.c69 struct arpstat arpstat; in main() local
70 size_t len = sizeof(arpstat); in main()
99 if (sysctlbyname("net.link.ether.arp.stats", &arpstat, &len, in main()
105 dropped = arpstat.dropped; in main()
124 if (sysctlbyname("net.link.ether.arp.stats", &arpstat, &len, in main()
131 printf("dropped after %ld\n", arpstat.dropped); in main()
134 if (arpstat.dropped != dropped) { in main()
136 "before %ld after %ld\n", dropped, arpstat.dropped); in main()
140 dropped = arpstat.dropped; in main()
155 if (arpstat.dropped != (dropped + 1)) { in main()
[all …]
/freebsd-13.1/sys/net/
H A Dif_arp.h101 struct arpstat { struct
122 VNET_PCPUSTAT_DECLARE(struct arpstat, arpstat); argument
128 VNET_PCPUSTAT_ADD(struct arpstat, arpstat, name, (val))
/freebsd-13.1/usr.bin/netstat/
H A Dinet.c1105 struct arpstat arpstat; in arp_stats() local
1107 if (fetch_stats("net.link.ether.arp.stats", off, &arpstat, in arp_stats()
1108 sizeof(arpstat), kread_counters) != 0) in arp_stats()
1114 #define p(f, m) if (arpstat.f || sflag <= 1) \ in arp_stats()
1115 xo_emit("\t" m, (uintmax_t)arpstat.f, plural(arpstat.f)) in arp_stats()
1116 #define p2(f, m) if (arpstat.f || sflag <= 1) \ in arp_stats()
1117 xo_emit("\t" m, (uintmax_t)arpstat.f, pluralies(arpstat.f)) in arp_stats()
/freebsd-13.1/sys/netinet/
H A Dif_ether.c110 VNET_PCPUSTAT_DEFINE(struct arpstat, arpstat); /* ARP statistics, see if_arp.h */
111 VNET_PCPUSTAT_SYSINIT(arpstat);
114 VNET_PCPUSTAT_SYSUNINIT(arpstat);
138 SYSCTL_VNET_PCPUSTAT(_net_link_ether_arp, OID_AUTO, stats, struct arpstat,
139 arpstat, "ARP statistics (struct arpstat, net/if_arp.h)");