Lines Matching refs:newstat
65 static uint64_t newstat[ICMP_NSTATS];
164 size_t i, size = sizeof(newstat);
166 if (sysctlbyname("net.inet.icmp.stats", newstat, &size, NULL, 0) == -1)
169 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_BADCODE);
170 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_BADLEN);
171 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_CHECKSUM);
172 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_TOOSHORT);
173 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_ERROR);
174 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_OLDSHORT);
175 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_OLDICMP);
176 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_REFLECT);
179 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_INHIST + i);
180 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_OUTHIST + i);
184 memcpy(oldstat, newstat, sizeof(oldstat));
200 memcpy(oldstat, newstat, sizeof(oldstat));
210 memcpy(oldstat, newstat, sizeof(oldstat));
220 memcpy(oldstat, newstat, sizeof(oldstat));