xref: /csrg-svn/sys/netiso/clnp_stat.h (revision 39195)
136374Ssklower /***********************************************************
236374Ssklower 		Copyright IBM Corporation 1987
336374Ssklower 
436374Ssklower                       All Rights Reserved
536374Ssklower 
636374Ssklower Permission to use, copy, modify, and distribute this software and its
736374Ssklower documentation for any purpose and without fee is hereby granted,
836374Ssklower provided that the above copyright notice appear in all copies and that
936374Ssklower both that copyright notice and this permission notice appear in
1036374Ssklower supporting documentation, and that the name of IBM not be
1136374Ssklower used in advertising or publicity pertaining to distribution of the
1236374Ssklower software without specific, written prior permission.
1336374Ssklower 
1436374Ssklower IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
1536374Ssklower ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
1636374Ssklower IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
1736374Ssklower ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
1836374Ssklower WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
1936374Ssklower ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
2036374Ssklower SOFTWARE.
2136374Ssklower 
2236374Ssklower ******************************************************************/
2336374Ssklower 
2436374Ssklower /*
2536374Ssklower  * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
2636374Ssklower  */
2737469Ssklower /* $Header: /var/src/sys/netiso/RCS/clnp_stat.h,v 5.1 89/02/09 16:20:42 hagens Exp $ */
2837469Ssklower /* $Source: /var/src/sys/netiso/RCS/clnp_stat.h,v $ */
2936374Ssklower 
3036374Ssklower 
3136374Ssklower #ifndef __CLNP_STAT__
3236374Ssklower #define __CLNP_STAT__
3336374Ssklower 
3436374Ssklower struct clnp_stat {
35*39195Ssklower 	int cns_total;			/* total pkts received */
36*39195Ssklower 	int	cns_toosmall;		/* fixed part of header too small */
37*39195Ssklower 	int	cns_badhlen;		/* header length is not reasonable */
38*39195Ssklower 	int	cns_badcsum;		/* checksum on packet failed */
39*39195Ssklower 	int cns_badaddr;		/* address fields were not reasonable */
40*39195Ssklower 	int	cns_badvers;		/* incorrect version */
41*39195Ssklower 	int cns_noseg;			/* segment information forgotten */
42*39195Ssklower 	int cns_noproto;		/* incorrect protocol id */
43*39195Ssklower 	int	cns_delivered;		/* packets consumed by protocol */
44*39195Ssklower 	int	cns_ttlexpired;		/* ttl has expired */
45*39195Ssklower 	int cns_forward;		/* forwarded packets */
46*39195Ssklower 	int cns_sent;			/* total packets sent */
47*39195Ssklower 	int cns_odropped;		/* o.k. packets discarded, e.g. ENOBUFS */
48*39195Ssklower 	int cns_cantforward;	/* non-forwarded packets */
49*39195Ssklower 	int cns_fragmented;		/* packets fragmented */
50*39195Ssklower 	int cns_fragments;		/* fragments received */
51*39195Ssklower 	int cns_fragdropped;	/* fragments discarded */
52*39195Ssklower 	int cns_fragtimeout;	/* fragments timed out */
53*39195Ssklower 	int cns_ofragments;		/* fragments generated */
54*39195Ssklower 	int cns_cantfrag;		/* fragmentation prohibited */
55*39195Ssklower 	int cns_reassembled;	/* packets reconstructed */
56*39195Ssklower 	int	cns_cachemiss;		/* cache misses */
57*39195Ssklower 	int cns_congest_set;	/* congestion experienced bit set */
58*39195Ssklower 	int cns_congest_rcvd;	/* congestion experienced bit received */
59*39195Ssklower 	int cns_er_inhist[CLNP_ERRORS + 1];
60*39195Ssklower 	int cns_er_outhist[CLNP_ERRORS + 1];
6136374Ssklower } clnp_stat ;
6236374Ssklower 
6336374Ssklower #ifdef INCSTAT
6436374Ssklower #undef INCSTAT
6536374Ssklower #endif INCSTAT
6636374Ssklower #define INCSTAT(x) clnp_stat./**/x/**/++
6736374Ssklower 
6836374Ssklower #endif __CLNP_STAT__
69