xref: /csrg-svn/sys/netinet/icmp_var.h (revision 23171)
1*23171Smckusick /*
2*23171Smckusick  * Copyright (c) 1982 Regents of the University of California.
3*23171Smckusick  * All rights reserved.  The Berkeley software License Agreement
4*23171Smckusick  * specifies the terms and conditions for redistribution.
5*23171Smckusick  *
6*23171Smckusick  *	@(#)icmp_var.h	6.3 (Berkeley) 06/08/85
7*23171Smckusick  */
811530Ssam 
911530Ssam /*
1011530Ssam  * Variables related to this implementation
1111530Ssam  * of the internet control message protocol.
1211530Ssam  */
1311530Ssam struct	icmpstat {
1411530Ssam /* statistics related to icmp packets generated */
1511530Ssam 	int	icps_error;		/* # of calls to icmp_error */
1611530Ssam 	int	icps_oldshort;		/* no error 'cuz old ip too short */
1711530Ssam 	int	icps_oldicmp;		/* no error 'cuz old was icmp */
1811530Ssam 	int	icps_outhist[ICMP_IREQREPLY + 1];
1911530Ssam /* statistics related to input messages processed */
2015028Smckusick  	int	icps_badcode;		/* icmp_code out of range */
2111530Ssam 	int	icps_tooshort;		/* packet < ICMP_MINLEN */
2211530Ssam 	int	icps_checksum;		/* bad checksum */
2311530Ssam 	int	icps_badlen;		/* calculated bound mismatch */
2411530Ssam 	int	icps_reflect;		/* number of responses */
2511530Ssam 	int	icps_inhist[ICMP_IREQREPLY + 1];
2611530Ssam };
2711530Ssam 
2811530Ssam #ifdef KERNEL
2911531Ssam struct	icmpstat icmpstat;
3011530Ssam #endif
31