149267Sbostic /*- 2*63222Sbostic * Copyright (c) 1991, 1993 3*63222Sbostic * The Regents of the University of California. All rights reserved. 449267Sbostic * 549267Sbostic * %sccs.include.redist.c% 649267Sbostic * 7*63222Sbostic * @(#)clnp_stat.h 8.1 (Berkeley) 06/10/93 849267Sbostic */ 949267Sbostic 1036374Ssklower /*********************************************************** 1136374Ssklower Copyright IBM Corporation 1987 1236374Ssklower 1336374Ssklower All Rights Reserved 1436374Ssklower 1536374Ssklower Permission to use, copy, modify, and distribute this software and its 1636374Ssklower documentation for any purpose and without fee is hereby granted, 1736374Ssklower provided that the above copyright notice appear in all copies and that 1836374Ssklower both that copyright notice and this permission notice appear in 1936374Ssklower supporting documentation, and that the name of IBM not be 2036374Ssklower used in advertising or publicity pertaining to distribution of the 2136374Ssklower software without specific, written prior permission. 2236374Ssklower 2336374Ssklower IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 2436374Ssklower ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 2536374Ssklower IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 2636374Ssklower ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 2736374Ssklower WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 2836374Ssklower ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 2936374Ssklower SOFTWARE. 3036374Ssklower 3136374Ssklower ******************************************************************/ 3236374Ssklower 3336374Ssklower /* 3436374Ssklower * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison 3536374Ssklower */ 3637469Ssklower /* $Header: /var/src/sys/netiso/RCS/clnp_stat.h,v 5.1 89/02/09 16:20:42 hagens Exp $ */ 3737469Ssklower /* $Source: /var/src/sys/netiso/RCS/clnp_stat.h,v $ */ 3836374Ssklower 3936374Ssklower 4036374Ssklower #ifndef __CLNP_STAT__ 4136374Ssklower #define __CLNP_STAT__ 4236374Ssklower 4336374Ssklower struct clnp_stat { 4439195Ssklower int cns_total; /* total pkts received */ 4539195Ssklower int cns_toosmall; /* fixed part of header too small */ 4639195Ssklower int cns_badhlen; /* header length is not reasonable */ 4739195Ssklower int cns_badcsum; /* checksum on packet failed */ 4839195Ssklower int cns_badaddr; /* address fields were not reasonable */ 4939195Ssklower int cns_badvers; /* incorrect version */ 5039195Ssklower int cns_noseg; /* segment information forgotten */ 5139195Ssklower int cns_noproto; /* incorrect protocol id */ 5239195Ssklower int cns_delivered; /* packets consumed by protocol */ 5339195Ssklower int cns_ttlexpired; /* ttl has expired */ 5439195Ssklower int cns_forward; /* forwarded packets */ 5539195Ssklower int cns_sent; /* total packets sent */ 5639195Ssklower int cns_odropped; /* o.k. packets discarded, e.g. ENOBUFS */ 5739195Ssklower int cns_cantforward; /* non-forwarded packets */ 5839195Ssklower int cns_fragmented; /* packets fragmented */ 5939195Ssklower int cns_fragments; /* fragments received */ 6039195Ssklower int cns_fragdropped; /* fragments discarded */ 6139195Ssklower int cns_fragtimeout; /* fragments timed out */ 6239195Ssklower int cns_ofragments; /* fragments generated */ 6339195Ssklower int cns_cantfrag; /* fragmentation prohibited */ 6439195Ssklower int cns_reassembled; /* packets reconstructed */ 6539195Ssklower int cns_cachemiss; /* cache misses */ 6639195Ssklower int cns_congest_set; /* congestion experienced bit set */ 6739195Ssklower int cns_congest_rcvd; /* congestion experienced bit received */ 6839195Ssklower int cns_er_inhist[CLNP_ERRORS + 1]; 6939195Ssklower int cns_er_outhist[CLNP_ERRORS + 1]; 7036374Ssklower } clnp_stat ; 7136374Ssklower 7236374Ssklower #ifdef INCSTAT 7336374Ssklower #undef INCSTAT 7460359Sbostic #endif /* INCSTAT */ 7536374Ssklower #define INCSTAT(x) clnp_stat./**/x/**/++ 7636374Ssklower 7760359Sbostic #endif /* __CLNP_STAT__ */ 78