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