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/netatm/atm_pcb.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
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: releng/6.4/sys/netatm/atm_pcb.h 139823 2005-01-07 01:45:51Z imp $
   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: 49d9d48b1ee6fe435576080fd33937fd


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