xref: /csrg-svn/sys/netinet/icmp_var.h (revision 63218)
123171Smckusick /*
2*63218Sbostic  * Copyright (c) 1982, 1986, 1993
3*63218Sbostic  *	The Regents of the University of California.  All rights reserved.
423171Smckusick  *
544470Sbostic  * %sccs.include.redist.c%
632787Sbostic  *
7*63218Sbostic  *	@(#)icmp_var.h	8.1 (Berkeley) 06/10/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 */
1657433Sandrew 	u_long	icps_error;		/* # of calls to icmp_error */
1757433Sandrew 	u_long	icps_oldshort;		/* no error 'cuz old ip too short */
1857433Sandrew 	u_long	icps_oldicmp;		/* no error 'cuz old was icmp */
1957433Sandrew 	u_long	icps_outhist[ICMP_MAXTYPE + 1];
2011530Ssam /* statistics related to input messages processed */
2157433Sandrew  	u_long	icps_badcode;		/* icmp_code out of range */
2257433Sandrew 	u_long	icps_tooshort;		/* packet < ICMP_MINLEN */
2357433Sandrew 	u_long	icps_checksum;		/* bad checksum */
2457433Sandrew 	u_long	icps_badlen;		/* calculated bound mismatch */
2557433Sandrew 	u_long	icps_reflect;		/* number of responses */
2657433Sandrew 	u_long	icps_inhist[ICMP_MAXTYPE + 1];
2711530Ssam };
2811530Ssam 
2959131Smckusick /*
3059131Smckusick  * Names for ICMP sysctl objects
3159131Smckusick  */
3259131Smckusick #define	ICMPCTL_MASKREPL	1	/* allow replies to netmask requests */
3359131Smckusick #define ICMPCTL_MAXID		2
3459131Smckusick 
3559131Smckusick #define ICMPCTL_NAMES { \
3659131Smckusick 	{ 0, 0 }, \
3759131Smckusick 	{ "maskrepl", CTLTYPE_INT }, \
3859131Smckusick }
3959131Smckusick 
4011530Ssam #ifdef KERNEL
4111531Ssam struct	icmpstat icmpstat;
4211530Ssam #endif
43