turn off debugging log/panics by default
[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 *
2b6b6284
KB
5 * Redistribution and use in source and binary forms are permitted
6 * provided that this notice is preserved and that due credit is given
7 * to the University of California at Berkeley. The name of the University
8 * may not be used to endorse or promote products derived from this
9 * software without specific prior written permission. This software
10 * is provided ``as is'' without express or implied warranty.
11 *
12 * @(#)icmp_var.h 7.3 (Berkeley) %G%
8ae0e4b4 13 */
3184272b
SL
14
15/*
16 * Variables related to this implementation
17 * of the internet control message protocol.
18 */
19struct icmpstat {
20/* statistics related to icmp packets generated */
21 int icps_error; /* # of calls to icmp_error */
22 int icps_oldshort; /* no error 'cuz old ip too short */
23 int icps_oldicmp; /* no error 'cuz old was icmp */
d360c192 24 int icps_outhist[ICMP_MAXTYPE + 1];
3184272b 25/* statistics related to input messages processed */
a60889ab 26 int icps_badcode; /* icmp_code out of range */
3184272b
SL
27 int icps_tooshort; /* packet < ICMP_MINLEN */
28 int icps_checksum; /* bad checksum */
29 int icps_badlen; /* calculated bound mismatch */
30 int icps_reflect; /* number of responses */
d360c192 31 int icps_inhist[ICMP_MAXTYPE + 1];
3184272b
SL
32};
33
34#ifdef KERNEL
f5f59dbd 35struct icmpstat icmpstat;
3184272b 36#endif