fix profiling
[unix-history] / usr / src / sys / netinet / icmp_var.h
CommitLineData
8ae0e4b4 1/*
0880b18e 2 * Copyright (c) 1982, 1986 Regents of the University of California.
2b6b6284 3 * All rights reserved.
8ae0e4b4 4 *
dbf0c423 5 * %sccs.include.redist.c%
2b6b6284 6 *
69d96ae2 7 * @(#)icmp_var.h 7.6 (Berkeley) %G%
8ae0e4b4 8 */
3184272b
SL
9
10/*
11 * Variables related to this implementation
12 * of the internet control message protocol.
13 */
14struct icmpstat {
15/* statistics related to icmp packets generated */
69d96ae2
AC
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];
3184272b 20/* statistics related to input messages processed */
69d96ae2
AC
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];
3184272b
SL
27};
28
29#ifdef KERNEL
f5f59dbd 30struct icmpstat icmpstat;
3184272b 31#endif