Lines Matching refs:icmpstat
62 static struct icmpstat icmpstat, initstat, oldstat;
135 domode(struct icmpstat *ret)
137 const struct icmpstat *sub;
152 *ret = icmpstat;
155 #define DO(stat) ret->stat = (icmpstat.stat - sub->stat) / divisor
178 struct icmpstat stats;
233 error("sysctl getting icmpstat size failed");
236 if (len > sizeof icmpstat) {
237 error("icmpstat structure has grown--recompile systat!");
241 error("sysctl getting icmpstat size failed");
261 error("sysctl getting icmpstat size failed");
272 oldstat = icmpstat;
277 len = sizeof icmpstat;
279 if (sysctl(name, 4, &icmpstat, &len, 0, 0) < 0)