Commit | Line | Data |
---|---|---|
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 | * |
dbf0c423 | 7 | * @(#)icmp_var.h 7.5 (Berkeley) %G% |
8ae0e4b4 | 8 | */ |
3184272b SL |
9 | |
10 | /* | |
11 | * Variables related to this implementation | |
12 | * of the internet control message protocol. | |
13 | */ | |
14 | struct icmpstat { | |
15 | /* statistics related to icmp packets generated */ | |
16 | int icps_error; /* # of calls to icmp_error */ | |
17 | int icps_oldshort; /* no error 'cuz old ip too short */ | |
18 | int icps_oldicmp; /* no error 'cuz old was icmp */ | |
d360c192 | 19 | int icps_outhist[ICMP_MAXTYPE + 1]; |
3184272b | 20 | /* statistics related to input messages processed */ |
a60889ab | 21 | int icps_badcode; /* icmp_code out of range */ |
3184272b SL |
22 | int icps_tooshort; /* packet < ICMP_MINLEN */ |
23 | int icps_checksum; /* bad checksum */ | |
24 | int icps_badlen; /* calculated bound mismatch */ | |
25 | int icps_reflect; /* number of responses */ | |
d360c192 | 26 | int icps_inhist[ICMP_MAXTYPE + 1]; |
3184272b SL |
27 | }; |
28 | ||
29 | #ifdef KERNEL | |
f5f59dbd | 30 | struct icmpstat icmpstat; |
3184272b | 31 | #endif |