home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / MorphOS / cvs-1.11.2 / source / amiga / netinclude / netinet / tcp_var.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-11-18  |  5.1 KB  |  114 lines

  1. /*
  2.  * Copyright (c) 1982, 1986, 1993, 1994, 1995
  3.  *    The Regents of the University of California.  All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms, with or without
  6.  * modification, are permitted provided that the following conditions
  7.  * are met:
  8.  * 1. Redistributions of source code must retain the above copyright
  9.  *    notice, this list of conditions and the following disclaimer.
  10.  * 2. Redistributions in binary form must reproduce the above copyright
  11.  *    notice, this list of conditions and the following disclaimer in the
  12.  *    documentation and/or other materials provided with the distribution.
  13.  * 3. All advertising materials mentioning features or use of this software
  14.  *    must display the following acknowledgement:
  15.  *    This product includes software developed by the University of
  16.  *    California, Berkeley and its contributors.
  17.  * 4. Neither the name of the University nor the names of its contributors
  18.  *    may be used to endorse or promote products derived from this software
  19.  *    without specific prior written permission.
  20.  *
  21.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  22.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  25.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  27.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  28.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  29.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  30.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31.  * SUCH DAMAGE.
  32.  *
  33.  *    @(#)tcp_var.h    8.4 (Berkeley) 5/24/95
  34.  */
  35.  
  36. #ifndef _NETINET_TCP_VAR_H
  37. #define _NETINET_TCP_VAR_H
  38.  
  39. #ifndef EXEC_TYPES_H
  40. #include <exec/types.h>
  41. #endif /* EXEC_TYPES_H */
  42.  
  43. #ifndef _NETINET_TCP_TIMER_H
  44. #include <netinet/tcp_timer.h>
  45. #endif /* _NETINET_TCP_TIMER_H */
  46.  
  47. #ifndef _NETINET_TCP_H
  48. #include <netinet/tcp.h>
  49. #endif /* _NETINET_TCP_H */
  50.  
  51. /*
  52.  * TCP statistics.
  53.  * Many of these should be kept per connection,
  54.  * but that's inconvenient at the moment.
  55.  */
  56. struct    tcpstat {
  57.     ULONG    tcps_connattempt;    /* connections initiated */
  58.     ULONG    tcps_accepts;        /* connections accepted */
  59.     ULONG    tcps_connects;        /* connections established */
  60.     ULONG    tcps_drops;        /* connections dropped */
  61.     ULONG    tcps_conndrops;        /* embryonic connections dropped */
  62.     ULONG    tcps_closed;        /* conn. closed (includes drops) */
  63.     ULONG    tcps_segstimed;        /* segs where we tried to get rtt */
  64.     ULONG    tcps_rttupdated;    /* times we succeeded */
  65.     ULONG    tcps_delack;        /* delayed acks sent */
  66.     ULONG    tcps_timeoutdrop;    /* conn. dropped in rxmt timeout */
  67.     ULONG    tcps_rexmttimeo;    /* retransmit timeouts */
  68.     ULONG    tcps_persisttimeo;    /* persist timeouts */
  69.     ULONG    tcps_keeptimeo;        /* keepalive timeouts */
  70.     ULONG    tcps_keepprobe;        /* keepalive probes sent */
  71.     ULONG    tcps_keepdrops;        /* connections dropped in keepalive */
  72.  
  73.     ULONG    tcps_sndtotal;        /* total packets sent */
  74.     ULONG    tcps_sndpack;        /* data packets sent */
  75.     ULONG    tcps_sndbyte;        /* data bytes sent */
  76.     ULONG    tcps_sndrexmitpack;    /* data packets retransmitted */
  77.     ULONG    tcps_sndrexmitbyte;    /* data bytes retransmitted */
  78.     ULONG    tcps_sndacks;        /* ack-only packets sent */
  79.     ULONG    tcps_sndprobe;        /* window probes sent */
  80.     ULONG    tcps_sndurg;        /* packets sent with URG only */
  81.     ULONG    tcps_sndwinup;        /* window update-only packets sent */
  82.     ULONG    tcps_sndctrl;        /* control (SYN|FIN|RST) packets sent */
  83.  
  84.     ULONG    tcps_rcvtotal;        /* total packets received */
  85.     ULONG    tcps_rcvpack;        /* packets received in sequence */
  86.     ULONG    tcps_rcvbyte;        /* bytes received in sequence */
  87.     ULONG    tcps_rcvbadsum;        /* packets received with ccksum errs */
  88.     ULONG    tcps_rcvbadoff;        /* packets received with bad offset */
  89.     ULONG    tcps_rcvshort;        /* packets received too short */
  90.     ULONG    tcps_rcvduppack;    /* duplicate-only packets received */
  91.     ULONG    tcps_rcvdupbyte;    /* duplicate-only bytes received */
  92.     ULONG    tcps_rcvpartduppack;    /* packets with some duplicate data */
  93.     ULONG    tcps_rcvpartdupbyte;    /* dup. bytes in part-dup. packets */
  94.     ULONG    tcps_rcvoopack;        /* out-of-order packets received */
  95.     ULONG    tcps_rcvoobyte;        /* out-of-order bytes received */
  96.     ULONG    tcps_rcvpackafterwin;    /* packets with data after window */
  97.     ULONG    tcps_rcvbyteafterwin;    /* bytes rcvd after window */
  98.     ULONG    tcps_rcvafterclose;    /* packets rcvd after "close" */
  99.     ULONG    tcps_rcvwinprobe;    /* rcvd window probe packets */
  100.     ULONG    tcps_rcvdupack;        /* rcvd duplicate acks */
  101.     ULONG    tcps_rcvacktoomuch;    /* rcvd acks for unsent data */
  102.     ULONG    tcps_rcvackpack;    /* rcvd ack packets */
  103.     ULONG    tcps_rcvackbyte;    /* bytes acked by rcvd acks */
  104.     ULONG    tcps_rcvwinupd;        /* rcvd window update packets */
  105.     ULONG    tcps_pawsdrop;        /* segments dropped due to PAWS */
  106.     ULONG    tcps_predack;        /* times hdr predict ok for acks */
  107.     ULONG    tcps_preddat;        /* times hdr predict ok for data pkts */
  108.     ULONG    tcps_pcbcachemiss;
  109.     ULONG    tcps_persistdrop;    /* timeout in persist state */
  110.     ULONG    tcps_badsyn;        /* bogus SYN, e.g. premature ACK */
  111. };
  112.  
  113. #endif /* _NETINET_TCP_VAR_H */
  114.