Lines Matching refs:icmpstat
43 static struct icmpstat icmpstat; variable
73 len = sizeof(icmpstat); in fetch_ipstat()
74 if (sysctlbyname("net.inet.icmp.stats", &icmpstat, &len, NULL, 0) == -1) { in fetch_ipstat()
78 if (len != sizeof(icmpstat)) { in fetch_ipstat()
388 value->v.integer += icmpstat.icps_inhist[i]; in op_icmpstat()
389 value->v.integer += icmpstat.icps_tooshort + in op_icmpstat()
390 icmpstat.icps_checksum; in op_icmpstat()
395 value->v.integer = icmpstat.icps_tooshort + in op_icmpstat()
396 icmpstat.icps_checksum + in op_icmpstat()
397 icmpstat.icps_badlen + in op_icmpstat()
398 icmpstat.icps_badcode + in op_icmpstat()
399 icmpstat.icps_bmcastecho + in op_icmpstat()
400 icmpstat.icps_bmcasttstamp; in op_icmpstat()
404 value->v.integer = icmpstat.icps_inhist[ICMP_UNREACH]; in op_icmpstat()
408 value->v.integer = icmpstat.icps_inhist[ICMP_TIMXCEED]; in op_icmpstat()
412 value->v.integer = icmpstat.icps_inhist[ICMP_PARAMPROB]; in op_icmpstat()
416 value->v.integer = icmpstat.icps_inhist[ICMP_SOURCEQUENCH]; in op_icmpstat()
420 value->v.integer = icmpstat.icps_inhist[ICMP_REDIRECT]; in op_icmpstat()
424 value->v.integer = icmpstat.icps_inhist[ICMP_ECHO]; in op_icmpstat()
428 value->v.integer = icmpstat.icps_inhist[ICMP_ECHOREPLY]; in op_icmpstat()
432 value->v.integer = icmpstat.icps_inhist[ICMP_TSTAMP]; in op_icmpstat()
436 value->v.integer = icmpstat.icps_inhist[ICMP_TSTAMPREPLY]; in op_icmpstat()
440 value->v.integer = icmpstat.icps_inhist[ICMP_MASKREQ]; in op_icmpstat()
444 value->v.integer = icmpstat.icps_inhist[ICMP_MASKREPLY]; in op_icmpstat()
450 value->v.integer += icmpstat.icps_outhist[i]; in op_icmpstat()
451 value->v.integer += icmpstat.icps_badaddr + in op_icmpstat()
452 icmpstat.icps_noroute; in op_icmpstat()
456 value->v.integer = icmpstat.icps_badaddr + in op_icmpstat()
457 icmpstat.icps_noroute; in op_icmpstat()
461 value->v.integer = icmpstat.icps_outhist[ICMP_UNREACH]; in op_icmpstat()
465 value->v.integer = icmpstat.icps_outhist[ICMP_TIMXCEED]; in op_icmpstat()
469 value->v.integer = icmpstat.icps_outhist[ICMP_PARAMPROB]; in op_icmpstat()
473 value->v.integer = icmpstat.icps_outhist[ICMP_SOURCEQUENCH]; in op_icmpstat()
477 value->v.integer = icmpstat.icps_outhist[ICMP_REDIRECT]; in op_icmpstat()
481 value->v.integer = icmpstat.icps_outhist[ICMP_ECHO]; in op_icmpstat()
485 value->v.integer = icmpstat.icps_outhist[ICMP_ECHOREPLY]; in op_icmpstat()
489 value->v.integer = icmpstat.icps_outhist[ICMP_TSTAMP]; in op_icmpstat()
493 value->v.integer = icmpstat.icps_outhist[ICMP_TSTAMPREPLY]; in op_icmpstat()
497 value->v.integer = icmpstat.icps_outhist[ICMP_MASKREQ]; in op_icmpstat()
501 value->v.integer = icmpstat.icps_outhist[ICMP_MASKREPLY]; in op_icmpstat()