Commit | Line | Data |
---|---|---|
7bcd1bb8 KB |
1 | /*- |
2 | * Copyright (c) 1991 The Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * %sccs.include.redist.c% | |
6 | * | |
7 | * @(#)clnp_stat.h 7.4 (Berkeley) %G% | |
8 | */ | |
9 | ||
6cc7b678 KS |
10 | /*********************************************************** |
11 | Copyright IBM Corporation 1987 | |
12 | ||
13 | All Rights Reserved | |
14 | ||
15 | Permission to use, copy, modify, and distribute this software and its | |
16 | documentation for any purpose and without fee is hereby granted, | |
17 | provided that the above copyright notice appear in all copies and that | |
18 | both that copyright notice and this permission notice appear in | |
19 | supporting documentation, and that the name of IBM not be | |
20 | used in advertising or publicity pertaining to distribution of the | |
21 | software without specific, written prior permission. | |
22 | ||
23 | IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | |
24 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | |
25 | IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | |
26 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
27 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | |
28 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | |
29 | SOFTWARE. | |
30 | ||
31 | ******************************************************************/ | |
32 | ||
33 | /* | |
34 | * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison | |
35 | */ | |
a50e2bc0 KS |
36 | /* $Header: /var/src/sys/netiso/RCS/clnp_stat.h,v 5.1 89/02/09 16:20:42 hagens Exp $ */ |
37 | /* $Source: /var/src/sys/netiso/RCS/clnp_stat.h,v $ */ | |
6cc7b678 KS |
38 | |
39 | ||
40 | #ifndef __CLNP_STAT__ | |
41 | #define __CLNP_STAT__ | |
42 | ||
43 | struct clnp_stat { | |
4f565be6 KS |
44 | int cns_total; /* total pkts received */ |
45 | int cns_toosmall; /* fixed part of header too small */ | |
46 | int cns_badhlen; /* header length is not reasonable */ | |
47 | int cns_badcsum; /* checksum on packet failed */ | |
48 | int cns_badaddr; /* address fields were not reasonable */ | |
49 | int cns_badvers; /* incorrect version */ | |
50 | int cns_noseg; /* segment information forgotten */ | |
51 | int cns_noproto; /* incorrect protocol id */ | |
52 | int cns_delivered; /* packets consumed by protocol */ | |
53 | int cns_ttlexpired; /* ttl has expired */ | |
54 | int cns_forward; /* forwarded packets */ | |
55 | int cns_sent; /* total packets sent */ | |
56 | int cns_odropped; /* o.k. packets discarded, e.g. ENOBUFS */ | |
57 | int cns_cantforward; /* non-forwarded packets */ | |
58 | int cns_fragmented; /* packets fragmented */ | |
59 | int cns_fragments; /* fragments received */ | |
60 | int cns_fragdropped; /* fragments discarded */ | |
61 | int cns_fragtimeout; /* fragments timed out */ | |
62 | int cns_ofragments; /* fragments generated */ | |
63 | int cns_cantfrag; /* fragmentation prohibited */ | |
64 | int cns_reassembled; /* packets reconstructed */ | |
65 | int cns_cachemiss; /* cache misses */ | |
66 | int cns_congest_set; /* congestion experienced bit set */ | |
67 | int cns_congest_rcvd; /* congestion experienced bit received */ | |
68 | int cns_er_inhist[CLNP_ERRORS + 1]; | |
69 | int cns_er_outhist[CLNP_ERRORS + 1]; | |
6cc7b678 KS |
70 | } clnp_stat ; |
71 | ||
72 | #ifdef INCSTAT | |
73 | #undef INCSTAT | |
74 | #endif INCSTAT | |
75 | #define INCSTAT(x) clnp_stat./**/x/**/++ | |
76 | ||
77 | #endif __CLNP_STAT__ |