Home
last modified time | relevance | path

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

/freebsd-14.2/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()
153 if (arpstat.dropped != (dropped + 1)) { in main()
[all …]
/freebsd-14.2/sys/net/
H A Dif_arp.h100 struct arpstat { struct
121 VNET_PCPUSTAT_DECLARE(struct arpstat, arpstat); argument
127 VNET_PCPUSTAT_ADD(struct arpstat, arpstat, name, (val))
/freebsd-14.2/usr.bin/netstat/
H A Dinet.c1113 struct arpstat arpstat; in arp_stats() local
1115 if (fetch_stats("net.link.ether.arp.stats", off, &arpstat, in arp_stats()
1116 sizeof(arpstat), kread_counters) != 0) in arp_stats()
1122 #define p(f, m) if (arpstat.f || sflag <= 1) \ in arp_stats()
1123 xo_emit("\t" m, (uintmax_t)arpstat.f, plural(arpstat.f)) in arp_stats()
1124 #define p2(f, m) if (arpstat.f || sflag <= 1) \ in arp_stats()
1125 xo_emit("\t" m, (uintmax_t)arpstat.f, pluralies(arpstat.f)) in arp_stats()
/freebsd-14.2/sys/netinet/
H A Dif_ether.c108 VNET_PCPUSTAT_DEFINE(struct arpstat, arpstat); /* ARP statistics, see if_arp.h */
109 VNET_PCPUSTAT_SYSINIT(arpstat);
112 VNET_PCPUSTAT_SYSUNINIT(arpstat);
136 SYSCTL_VNET_PCPUSTAT(_net_link_ether_arp, OID_AUTO, stats, struct arpstat,
137 arpstat, "ARP statistics (struct arpstat, net/if_arp.h)");