xref: /csrg-svn/sys/netinet/icmp_var.h (revision 57433)
123171Smckusick /*
229133Smckusick  * Copyright (c) 1982, 1986 Regents of the University of California.
332787Sbostic  * All rights reserved.
423171Smckusick  *
544470Sbostic  * %sccs.include.redist.c%
632787Sbostic  *
7*57433Sandrew  *	@(#)icmp_var.h	7.6 (Berkeley) 01/08/93
823171Smckusick  */
911530Ssam 
1011530Ssam /*
1111530Ssam  * Variables related to this implementation
1211530Ssam  * of the internet control message protocol.
1311530Ssam  */
1411530Ssam struct	icmpstat {
1511530Ssam /* statistics related to icmp packets generated */
16*57433Sandrew 	u_long	icps_error;		/* # of calls to icmp_error */
17*57433Sandrew 	u_long	icps_oldshort;		/* no error 'cuz old ip too short */
18*57433Sandrew 	u_long	icps_oldicmp;		/* no error 'cuz old was icmp */
19*57433Sandrew 	u_long	icps_outhist[ICMP_MAXTYPE + 1];
2011530Ssam /* statistics related to input messages processed */
21*57433Sandrew  	u_long	icps_badcode;		/* icmp_code out of range */
22*57433Sandrew 	u_long	icps_tooshort;		/* packet < ICMP_MINLEN */
23*57433Sandrew 	u_long	icps_checksum;		/* bad checksum */
24*57433Sandrew 	u_long	icps_badlen;		/* calculated bound mismatch */
25*57433Sandrew 	u_long	icps_reflect;		/* number of responses */
26*57433Sandrew 	u_long	icps_inhist[ICMP_MAXTYPE + 1];
2711530Ssam };
2811530Ssam 
2911530Ssam #ifdef KERNEL
3011531Ssam struct	icmpstat icmpstat;
3111530Ssam #endif
32