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 /* icmp_var.h 1.10 88/08/19 SMI; from UCB 7.2 1/13/87 */ 16*7c478bd9Sstevel@tonic-gate 17*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 18*7c478bd9Sstevel@tonic-gate extern "C" { 19*7c478bd9Sstevel@tonic-gate #endif 20*7c478bd9Sstevel@tonic-gate 21*7c478bd9Sstevel@tonic-gate struct icmpstat { 22*7c478bd9Sstevel@tonic-gate /* statistics related to icmp packets generated */ 23*7c478bd9Sstevel@tonic-gate int icps_error; /* # of calls to icmp_error */ 24*7c478bd9Sstevel@tonic-gate int icps_oldshort; /* no error 'cuz old ip too short */ 25*7c478bd9Sstevel@tonic-gate int icps_oldicmp; /* no error 'cuz old was icmp */ 26*7c478bd9Sstevel@tonic-gate int icps_outhist[ICMP_MAXTYPE + 1]; 27*7c478bd9Sstevel@tonic-gate /* statistics related to input messages processed */ 28*7c478bd9Sstevel@tonic-gate int icps_badcode; /* icmp_code out of range */ 29*7c478bd9Sstevel@tonic-gate int icps_tooshort; /* packet < ICMP_MINLEN */ 30*7c478bd9Sstevel@tonic-gate int icps_checksum; /* bad checksum */ 31*7c478bd9Sstevel@tonic-gate int icps_badlen; /* calculated bound mismatch */ 32*7c478bd9Sstevel@tonic-gate int icps_reflect; /* number of responses */ 33*7c478bd9Sstevel@tonic-gate int icps_inhist[ICMP_MAXTYPE + 1]; 34*7c478bd9Sstevel@tonic-gate }; 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 37*7c478bd9Sstevel@tonic-gate } 38*7c478bd9Sstevel@tonic-gate #endif 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gate #endif /* _NETINET_ICMP_VAR_H */ 41