source: trunk/src/emx/include/netinet/tcp_var.h@ 18

Last change on this file since 18 was 18, checked in by bird, 23 years ago

Initial revision

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