123171Smckusick /* 229133Smckusick * Copyright (c) 1982, 1986 Regents of the University of California. 332787Sbostic * All rights reserved. 423171Smckusick * 5*44470Sbostic * %sccs.include.redist.c% 632787Sbostic * 7*44470Sbostic * @(#)icmp_var.h 7.5 (Berkeley) 06/28/90 823171Smckusick */ 911530Ssam 1011530Ssam /* 1111530Ssam * Variables related to this implementation 1211530Ssam * of the internet control message protocol. 1311530Ssam */ 1411530Ssam struct icmpstat { 1511530Ssam /* statistics related to icmp packets generated */ 1611530Ssam int icps_error; /* # of calls to icmp_error */ 1711530Ssam int icps_oldshort; /* no error 'cuz old ip too short */ 1811530Ssam int icps_oldicmp; /* no error 'cuz old was icmp */ 1930382Skarels int icps_outhist[ICMP_MAXTYPE + 1]; 2011530Ssam /* statistics related to input messages processed */ 2115028Smckusick int icps_badcode; /* icmp_code out of range */ 2211530Ssam int icps_tooshort; /* packet < ICMP_MINLEN */ 2311530Ssam int icps_checksum; /* bad checksum */ 2411530Ssam int icps_badlen; /* calculated bound mismatch */ 2511530Ssam int icps_reflect; /* number of responses */ 2630382Skarels int icps_inhist[ICMP_MAXTYPE + 1]; 2711530Ssam }; 2811530Ssam 2911530Ssam #ifdef KERNEL 3011531Ssam struct icmpstat icmpstat; 3111530Ssam #endif 32