3 * ===================================
4 * HARP | Host ATM Research Platform
5 * ===================================
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.
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.
21 * Copyright 1994-1998 Network Computing Services, Inc.
23 * Copies of this Software may be made, however, the above copyright
24 * notice must be reproduced on all copies.
34 * ATM socket protocol definitions
38 #ifndef _NETATM_ATM_PCB_H
39 #define _NETATM_ATM_PCB_H
46 * Common structure for all ATM protocol sockets. This control block
47 * will be used for all ATM socket types.
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 */
57 typedef struct atm_pcb Atm_pcb;
62 #define ATPT_AAL5 0 /* AAL type 5 protocol */
63 #define ATPT_SSCOP 1 /* SSCOP protocol */
64 #define ATPT_NUM 2 /* Number of protocols */
74 #define sotoatmpcb(so) ((Atm_pcb *)(so)->so_pcb)
78 * ATM Socket Statistics
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 */
90 #endif /* ATM_KERNEL */
92 #endif /* _NETATM_ATM_PCB_H */