1 /* 2 * Copyright (c) 1982, 1986 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that this notice is preserved and that due credit is given 7 * to the University of California at Berkeley. The name of the University 8 * may not be used to endorse or promote products derived from this 9 * software without specific prior written permission. This software 10 * is provided ``as is'' without express or implied warranty. 11 * 12 * @(#)icmp_var.h 7.3 (Berkeley) 12/07/87 13 */ 14 15 /* 16 * Variables related to this implementation 17 * of the internet control message protocol. 18 */ 19 struct icmpstat { 20 /* statistics related to icmp packets generated */ 21 int icps_error; /* # of calls to icmp_error */ 22 int icps_oldshort; /* no error 'cuz old ip too short */ 23 int icps_oldicmp; /* no error 'cuz old was icmp */ 24 int icps_outhist[ICMP_MAXTYPE + 1]; 25 /* statistics related to input messages processed */ 26 int icps_badcode; /* icmp_code out of range */ 27 int icps_tooshort; /* packet < ICMP_MINLEN */ 28 int icps_checksum; /* bad checksum */ 29 int icps_badlen; /* calculated bound mismatch */ 30 int icps_reflect; /* number of responses */ 31 int icps_inhist[ICMP_MAXTYPE + 1]; 32 }; 33 34 #ifdef KERNEL 35 struct icmpstat icmpstat; 36 #endif 37