Unleashed v1.4
[unleashed.git] / usr / src / uts / common / netinet / icmp_var.h
blobb67429f0f5d25adbdcb15f9e4d6c59726687ca89
1 /*
2 * Copyright (c) 1982, 1986 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
7 /*
8 * Variables related to this implementation
9 * of the internet control message protocol.
12 #ifndef _NETINET_ICMP_VAR_H
13 #define _NETINET_ICMP_VAR_H
15 #pragma ident "%Z%%M% %I% %E% SMI"
16 /* icmp_var.h 1.10 88/08/19 SMI; from UCB 7.2 1/13/87 */
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
22 struct icmpstat {
23 /* statistics related to icmp packets generated */
24 int icps_error; /* # of calls to icmp_error */
25 int icps_oldshort; /* no error 'cuz old ip too short */
26 int icps_oldicmp; /* no error 'cuz old was icmp */
27 int icps_outhist[ICMP_MAXTYPE + 1];
28 /* statistics related to input messages processed */
29 int icps_badcode; /* icmp_code out of range */
30 int icps_tooshort; /* packet < ICMP_MINLEN */
31 int icps_checksum; /* bad checksum */
32 int icps_badlen; /* calculated bound mismatch */
33 int icps_reflect; /* number of responses */
34 int icps_inhist[ICMP_MAXTYPE + 1];
37 #ifdef __cplusplus
39 #endif
41 #endif /* _NETINET_ICMP_VAR_H */