xref: /original-bsd/sys/netinet/icmp_var.h (revision fe400021)
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.6 (Berkeley) 01/08/93
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 	u_long	icps_error;		/* # of calls to icmp_error */
17 	u_long	icps_oldshort;		/* no error 'cuz old ip too short */
18 	u_long	icps_oldicmp;		/* no error 'cuz old was icmp */
19 	u_long	icps_outhist[ICMP_MAXTYPE + 1];
20 /* statistics related to input messages processed */
21  	u_long	icps_badcode;		/* icmp_code out of range */
22 	u_long	icps_tooshort;		/* packet < ICMP_MINLEN */
23 	u_long	icps_checksum;		/* bad checksum */
24 	u_long	icps_badlen;		/* calculated bound mismatch */
25 	u_long	icps_reflect;		/* number of responses */
26 	u_long	icps_inhist[ICMP_MAXTYPE + 1];
27 };
28 
29 #ifdef KERNEL
30 struct	icmpstat icmpstat;
31 #endif
32