123171Smckusick /* 229133Smckusick * Copyright (c) 1982, 1986 Regents of the University of California. 3*32787Sbostic * All rights reserved. 423171Smckusick * 5*32787Sbostic * Redistribution and use in source and binary forms are permitted 6*32787Sbostic * provided that this notice is preserved and that due credit is given 7*32787Sbostic * to the University of California at Berkeley. The name of the University 8*32787Sbostic * may not be used to endorse or promote products derived from this 9*32787Sbostic * software without specific prior written permission. This software 10*32787Sbostic * is provided ``as is'' without express or implied warranty. 11*32787Sbostic * 12*32787Sbostic * @(#)icmp_var.h 7.3 (Berkeley) 12/07/87 1323171Smckusick */ 1411530Ssam 1511530Ssam /* 1611530Ssam * Variables related to this implementation 1711530Ssam * of the internet control message protocol. 1811530Ssam */ 1911530Ssam struct icmpstat { 2011530Ssam /* statistics related to icmp packets generated */ 2111530Ssam int icps_error; /* # of calls to icmp_error */ 2211530Ssam int icps_oldshort; /* no error 'cuz old ip too short */ 2311530Ssam int icps_oldicmp; /* no error 'cuz old was icmp */ 2430382Skarels int icps_outhist[ICMP_MAXTYPE + 1]; 2511530Ssam /* statistics related to input messages processed */ 2615028Smckusick int icps_badcode; /* icmp_code out of range */ 2711530Ssam int icps_tooshort; /* packet < ICMP_MINLEN */ 2811530Ssam int icps_checksum; /* bad checksum */ 2911530Ssam int icps_badlen; /* calculated bound mismatch */ 3011530Ssam int icps_reflect; /* number of responses */ 3130382Skarels int icps_inhist[ICMP_MAXTYPE + 1]; 3211530Ssam }; 3311530Ssam 3411530Ssam #ifdef KERNEL 3511531Ssam struct icmpstat icmpstat; 3611530Ssam #endif 37