xref: /original-bsd/sys/netinet/icmp_var.h (revision baf24c0d)
1 /*
2  * Copyright (c) 1982, 1986 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)icmp_var.h	7.5 (Berkeley) 06/28/90
8  */
9 
10 /*
11  * Variables related to this implementation
12  * of the internet control message protocol.
13  */
14 struct	icmpstat {
15 /* statistics related to icmp packets generated */
16 	int	icps_error;		/* # of calls to icmp_error */
17 	int	icps_oldshort;		/* no error 'cuz old ip too short */
18 	int	icps_oldicmp;		/* no error 'cuz old was icmp */
19 	int	icps_outhist[ICMP_MAXTYPE + 1];
20 /* statistics related to input messages processed */
21  	int	icps_badcode;		/* icmp_code out of range */
22 	int	icps_tooshort;		/* packet < ICMP_MINLEN */
23 	int	icps_checksum;		/* bad checksum */
24 	int	icps_badlen;		/* calculated bound mismatch */
25 	int	icps_reflect;		/* number of responses */
26 	int	icps_inhist[ICMP_MAXTYPE + 1];
27 };
28 
29 #ifdef KERNEL
30 struct	icmpstat icmpstat;
31 #endif
32