The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/netipx/spx_var.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 1995, Mike Mitchell
    3  * Copyright (c) 1984, 1985, 1986, 1987, 1993
    4  *      The Regents of the University of California.  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  *      @(#)spx_var.h
   35  *
   36  * $FreeBSD: src/sys/netipx/spx_var.h,v 1.9.26.1 2005/01/31 23:26:42 imp Exp $
   37  */
   38 
   39 #ifndef _NETIPX_SPX_VAR_H_
   40 #define _NETIPX_SPX_VAR_H_
   41 
   42 struct  spxstat {
   43         long    spxs_connattempt;       /* connections initiated */
   44         long    spxs_accepts;           /* connections accepted */
   45         long    spxs_connects;          /* connections established */
   46         long    spxs_drops;             /* connections dropped */
   47         long    spxs_conndrops;         /* embryonic connections dropped */
   48         long    spxs_closed;            /* conn. closed (includes drops) */
   49         long    spxs_segstimed;         /* segs where we tried to get rtt */
   50         long    spxs_rttupdated;        /* times we succeeded */
   51         long    spxs_delack;            /* delayed acks sent */
   52         long    spxs_timeoutdrop;       /* conn. dropped in rxmt timeout */
   53         long    spxs_rexmttimeo;        /* retransmit timeouts */
   54         long    spxs_persisttimeo;      /* persist timeouts */
   55         long    spxs_keeptimeo;         /* keepalive timeouts */
   56         long    spxs_keepprobe;         /* keepalive probes sent */
   57         long    spxs_keepdrops;         /* connections dropped in keepalive */
   58 
   59         long    spxs_sndtotal;          /* total packets sent */
   60         long    spxs_sndpack;           /* data packets sent */
   61         long    spxs_sndbyte;           /* data bytes sent */
   62         long    spxs_sndrexmitpack;     /* data packets retransmitted */
   63         long    spxs_sndrexmitbyte;     /* data bytes retransmitted */
   64         long    spxs_sndacks;           /* ack-only packets sent */
   65         long    spxs_sndprobe;          /* window probes sent */
   66         long    spxs_sndurg;            /* packets sent with URG only */
   67         long    spxs_sndwinup;          /* window update-only packets sent */
   68         long    spxs_sndctrl;           /* control (SYN|FIN|RST) packets sent */
   69         long    spxs_sndvoid;           /* couldn't find requested packet*/
   70 
   71         long    spxs_rcvtotal;          /* total packets received */
   72         long    spxs_rcvpack;           /* packets received in sequence */
   73         long    spxs_rcvbyte;           /* bytes received in sequence */
   74         long    spxs_rcvbadsum;         /* packets received with ccksum errs */
   75         long    spxs_rcvbadoff;         /* packets received with bad offset */
   76         long    spxs_rcvshort;          /* packets received too short */
   77         long    spxs_rcvduppack;        /* duplicate-only packets received */
   78         long    spxs_rcvdupbyte;        /* duplicate-only bytes received */
   79         long    spxs_rcvpartduppack;    /* packets with some duplicate data */
   80         long    spxs_rcvpartdupbyte;    /* dup. bytes in part-dup. packets */
   81         long    spxs_rcvoopack;         /* out-of-order packets received */
   82         long    spxs_rcvoobyte;         /* out-of-order bytes received */
   83         long    spxs_rcvpackafterwin;   /* packets with data after window */
   84         long    spxs_rcvbyteafterwin;   /* bytes rcvd after window */
   85         long    spxs_rcvafterclose;     /* packets rcvd after "close" */
   86         long    spxs_rcvwinprobe;       /* rcvd window probe packets */
   87         long    spxs_rcvdupack;         /* rcvd duplicate acks */
   88         long    spxs_rcvacktoomuch;     /* rcvd acks for unsent data */
   89         long    spxs_rcvackpack;        /* rcvd ack packets */
   90         long    spxs_rcvackbyte;        /* bytes acked by rcvd acks */
   91         long    spxs_rcvwinupd;         /* rcvd window update packets */
   92 };
   93 struct  spx_istat {
   94         short   hdrops;
   95         short   badsum;
   96         short   badlen;
   97         short   slotim;
   98         short   fastim;
   99         short   nonucn;
  100         short   noconn;
  101         short   notme;
  102         short   wrncon;
  103         short   bdreas;
  104         short   gonawy;
  105         short   notyet;
  106         short   lstdup;
  107         struct spxstat newstats;
  108 };
  109 
  110 #define SPX_ISSINCR     128
  111 /*
  112  * spx sequence numbers are 16 bit integers operated
  113  * on with modular arithmetic.  These macros can be
  114  * used to compare such integers.
  115  */
  116 #define SSEQ_LT(a,b)    (((short)((a)-(b))) < 0)
  117 #define SSEQ_LEQ(a,b)   (((short)((a)-(b))) <= 0)
  118 #define SSEQ_GT(a,b)    (((short)((a)-(b))) > 0)
  119 #define SSEQ_GEQ(a,b)   (((short)((a)-(b))) >= 0)
  120 
  121 #endif /* !_NETIPX_SPX_VAR_H_ */

Cache object: 98a21e173f39ecbb0af6dfa44c555e60


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.