xref: /csrg-svn/sys/netiso/clnp_stat.h (revision 36374)
1 /***********************************************************
2 		Copyright IBM Corporation 1987
3 
4                       All Rights Reserved
5 
6 Permission to use, copy, modify, and distribute this software and its
7 documentation for any purpose and without fee is hereby granted,
8 provided that the above copyright notice appear in all copies and that
9 both that copyright notice and this permission notice appear in
10 supporting documentation, and that the name of IBM not be
11 used in advertising or publicity pertaining to distribution of the
12 software without specific, written prior permission.
13 
14 IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16 IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20 SOFTWARE.
21 
22 ******************************************************************/
23 
24 /*
25  * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
26  */
27 /* $Header: clnp_stat.h,v 4.3 88/09/10 18:31:38 hagens Exp $ */
28 /* $Source: /usr/argo/sys/netiso/RCS/clnp_stat.h,v $ */
29 
30 
31 #ifndef __CLNP_STAT__
32 #define __CLNP_STAT__
33 
34 struct clnp_stat {
35 	u_short cns_total;			/* total pkts received */
36 	u_short	cns_toosmall;		/* fixed part of header too small */
37 	u_short	cns_badhlen;		/* header length is not reasonable */
38 	u_short	cns_badcsum;		/* checksum on packet failed */
39 	u_short cns_badaddr;		/* address fields were not reasonable */
40 	u_short cns_noseg;			/* segment information forgotten */
41 	u_short cns_badid;			/* incorrect protocol id */
42 	u_short	cns_badvers;		/* incorrect version */
43 	u_short	cns_ttlexpired;		/* ttl has expired */
44 	u_short cns_forward;		/* forwarded packets */
45 	u_short cns_errcvd;			/* ER packets received */
46 	u_short cns_frag;			/* fragments generated */
47 	u_short cns_sent;			/* total packets sent */
48 	u_short	cns_cachemiss;		/* cache misses */
49 	u_short	er_protoerr;		/*	GEN_NOREAS
50 									GEN_PROTOERR
51 									GEN_HDRSYNTAX
52 									GEN_INCOMPLETE
53 									GEN_DUPOPT */
54 	u_short	er_badcsum;			/*	GEN_BADCSUM */
55 	u_short	er_congest;			/*	GEN_CONGEST */
56 	u_short er_segneeded;		/*	GEN_SEGNEEDED */
57 	u_short	er_reassfail;		/*	REASS_INTERFERE */
58 	u_short	er_dstunreach;		/*	ADDR_DESTUNREACH
59 									ADDR_DESTUNKNOWN */
60 	u_short	er_srcrterr;		/*	SRCRT_UNSPECERR
61 									SRCRT_SYNTAX
62 									SRCRT_UNKNOWNADDR
63 									SRCRT_BADPATH */
64 	u_short er_ttlexpired;		/*	TTL_EXPTRANSIT
65 									TTL_EXPREASS */
66 	u_short	er_unsupported;		/*	DISC_UNSUPPOPT
67 									DISC_UNSUPPVERS
68 									DISC_UNSUPPSECURE
69 									DISC_UNSUPPSRCRT
70 									DISC_UNSUPPRECRT */
71 } clnp_stat ;
72 
73 #ifdef INCSTAT
74 #undef INCSTAT
75 #endif INCSTAT
76 #define INCSTAT(x) clnp_stat./**/x/**/++
77 
78 #endif __CLNP_STAT__
79