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

FreeBSD/Linux Kernel Cross Reference
sys/netatm/atm_pcb.h

Version: -  FREEBSD  -  FREEBSD10  -  FREEBSD9  -  FREEBSD92  -  FREEBSD91  -  FREEBSD90  -  FREEBSD8  -  FREEBSD82  -  FREEBSD81  -  FREEBSD80  -  FREEBSD7  -  FREEBSD74  -  FREEBSD73  -  FREEBSD72  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  cheribsd  -  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  -  FREEBSD-LIBC  -  FREEBSD8-LIBC  -  FREEBSD7-LIBC  -  FREEBSD6-LIBC  -  GLIBC27 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  *
    3  * ===================================
    4  * HARP  |  Host ATM Research Platform
    5  * ===================================
    6  *
    7  *
    8  * This Host ATM Research Platform ("HARP") file (the "Software") is
    9  * made available by Network Computing Services, Inc. ("NetworkCS")
   10  * "AS IS".  NetworkCS does not provide maintenance, improvements or
   11  * support of any kind.
   12  *
   13  * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
   14  * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
   15  * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
   16  * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
   17  * In no event shall NetworkCS be responsible for any damages, including
   18  * but not limited to consequential damages, arising from or relating to
   19  * any use of the Software or related support.
   20  *
   21  * Copyright 1994-1998 Network Computing Services, Inc.
   22  *
   23  * Copies of this Software may be made, however, the above copyright
   24  * notice must be reproduced on all copies.
   25  *
   26  *      @(#) $FreeBSD: src/sys/netatm/atm_pcb.h,v 1.4 2005/01/07 01:45:36 imp Exp $
   27  *
   28  */
   29 
   30 /*
   31  * Core ATM Services
   32  * -----------------
   33  *
   34  * ATM socket protocol definitions
   35  *
   36  */
   37 
   38 #ifndef _NETATM_ATM_PCB_H
   39 #define _NETATM_ATM_PCB_H
   40 
   41 
   42 #ifdef _KERNEL
   43 /*
   44  * ATM Socket PCB
   45  *
   46  * Common structure for all ATM protocol sockets.  This control block
   47  * will be used for all ATM socket types.
   48  */
   49 struct atm_pcb {
   50         struct socket   *atp_socket;    /* Socket */
   51         Atm_connection  *atp_conn;      /* Connection manager token */
   52         u_char          atp_type;       /* Protocol type (see below) */
   53         u_char          atp_flags;      /* Protocol flags (see below) */
   54         Atm_attributes  atp_attr;       /* Socket's call attributes */
   55         char            atp_name[T_ATM_APP_NAME_LEN];   /* Owner's name */
   56 };
   57 typedef struct atm_pcb  Atm_pcb;
   58 
   59 /*
   60  * Protocol Types
   61  */
   62 #define ATPT_AAL5       0               /* AAL type 5 protocol */
   63 #define ATPT_SSCOP      1               /* SSCOP protocol */
   64 #define ATPT_NUM        2               /* Number of protocols */
   65 
   66 /*
   67  * PCB Flags
   68  */
   69 
   70 
   71 /*
   72  * Handy macros
   73  */
   74 #define sotoatmpcb(so)   ((Atm_pcb *)(so)->so_pcb)
   75 
   76 
   77 /*
   78  * ATM Socket Statistics
   79  */
   80 struct atm_sock_stat {
   81         u_long  as_connreq[ATPT_NUM];   /* Connection requests */
   82         u_long  as_inconn[ATPT_NUM];    /* Incoming connection requests */
   83         u_long  as_conncomp[ATPT_NUM];  /* Connections completed */
   84         u_long  as_connfail[ATPT_NUM];  /* Connections failed */
   85         u_long  as_connrel[ATPT_NUM];   /* Connections released */
   86         u_long  as_connclr[ATPT_NUM];   /* Connections cleared */
   87         u_long  as_indrop[ATPT_NUM];    /* Input packets dropped */
   88         u_long  as_outdrop[ATPT_NUM];   /* Output packets dropped */
   89 };
   90 #endif  /* _KERNEL */
   91 
   92 #endif  /* _NETATM_ATM_PCB_H */

Cache object: 57de4e222907517b618a95488774bbfc


[ 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.