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