1 /* 2 * Copyright (c) 1982, 1986 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 */ 6 7 /* 8 * Variables related to this implementation 9 * of the internet control message protocol. 10 */ 11 12 #ifndef _NETINET_ICMP_VAR_H 13 #define _NETINET_ICMP_VAR_H 14 15 /* icmp_var.h 1.10 88/08/19 SMI; from UCB 7.2 1/13/87 */ 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 struct icmpstat { 22 /* statistics related to icmp packets generated */ 23 int icps_error; /* # of calls to icmp_error */ 24 int icps_oldshort; /* no error 'cuz old ip too short */ 25 int icps_oldicmp; /* no error 'cuz old was icmp */ 26 int icps_outhist[ICMP_MAXTYPE + 1]; 27 /* statistics related to input messages processed */ 28 int icps_badcode; /* icmp_code out of range */ 29 int icps_tooshort; /* packet < ICMP_MINLEN */ 30 int icps_checksum; /* bad checksum */ 31 int icps_badlen; /* calculated bound mismatch */ 32 int icps_reflect; /* number of responses */ 33 int icps_inhist[ICMP_MAXTYPE + 1]; 34 }; 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif /* _NETINET_ICMP_VAR_H */ 41