Commit | Line | Data |
---|---|---|
8ae0e4b4 KM |
1 | /* |
2 | * Copyright (c) 1982 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
6 | * @(#)icmp_var.h 6.3 (Berkeley) %G% | |
7 | */ | |
3184272b SL |
8 | |
9 | /* | |
10 | * Variables related to this implementation | |
11 | * of the internet control message protocol. | |
12 | */ | |
13 | struct icmpstat { | |
14 | /* statistics related to icmp packets generated */ | |
15 | int icps_error; /* # of calls to icmp_error */ | |
16 | int icps_oldshort; /* no error 'cuz old ip too short */ | |
17 | int icps_oldicmp; /* no error 'cuz old was icmp */ | |
18 | int icps_outhist[ICMP_IREQREPLY + 1]; | |
19 | /* statistics related to input messages processed */ | |
a60889ab | 20 | int icps_badcode; /* icmp_code out of range */ |
3184272b SL |
21 | int icps_tooshort; /* packet < ICMP_MINLEN */ |
22 | int icps_checksum; /* bad checksum */ | |
23 | int icps_badlen; /* calculated bound mismatch */ | |
24 | int icps_reflect; /* number of responses */ | |
25 | int icps_inhist[ICMP_IREQREPLY + 1]; | |
26 | }; | |
27 | ||
28 | #ifdef KERNEL | |
f5f59dbd | 29 | struct icmpstat icmpstat; |
3184272b | 30 | #endif |