xref: /original-bsd/sys/netinet/icmp_var.h (revision 92d3de31)
1 /*	icmp_var.h	4.2	83/03/10	*/
2 
3 /*
4  * Variables related to this implementation
5  * of the internet control message protocol.
6  */
7 struct	icmpstat {
8 /* statistics related to icmp packets generated */
9 	int	icps_error;		/* # of calls to icmp_error */
10 	int	icps_oldshort;		/* no error 'cuz old ip too short */
11 	int	icps_oldicmp;		/* no error 'cuz old was icmp */
12 	int	icps_outhist[ICMP_IREQREPLY + 1];
13 /* statistics related to input messages processed */
14 	int	icps_tooshort;		/* packet < ICMP_MINLEN */
15 	int	icps_checksum;		/* bad checksum */
16 	int	icps_badlen;		/* calculated bound mismatch */
17 	int	icps_reflect;		/* number of responses */
18 	int	icps_inhist[ICMP_IREQREPLY + 1];
19 };
20 
21 #ifdef KERNEL
22 struct	icmpstat icmpstat;
23 #endif
24