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