summaryrefslogtreecommitdiffstats
path: root/sys/netatm/atm_pcb.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-09-15 08:23:17 +0000
committerphk <phk@FreeBSD.org>1998-09-15 08:23:17 +0000
commitc3dd1fa899d435ea4bf79897f646a93cb80c94ac (patch)
tree98dfbc96e3c6aa7ff1f322855f6484c4e609819d /sys/netatm/atm_pcb.h
parent9ed6892f4808d56de443849229e151f8f7ad43b0 (diff)
downloadFreeBSD-src-c3dd1fa899d435ea4bf79897f646a93cb80c94ac.zip
FreeBSD-src-c3dd1fa899d435ea4bf79897f646a93cb80c94ac.tar.gz
Add new files for HARP3
Host ATM Research Platform (HARP), Network Computing Services, Inc. This software was developed with the support of the Defense Advanced Research Projects Agency (DARPA).
Diffstat (limited to 'sys/netatm/atm_pcb.h')
-rw-r--r--sys/netatm/atm_pcb.h92
1 files changed, 92 insertions, 0 deletions
diff --git a/sys/netatm/atm_pcb.h b/sys/netatm/atm_pcb.h
new file mode 100644
index 0000000..12ac5d0
--- /dev/null
+++ b/sys/netatm/atm_pcb.h
@@ -0,0 +1,92 @@
+/*
+ *
+ * ===================================
+ * HARP | Host ATM Research Platform
+ * ===================================
+ *
+ *
+ * This Host ATM Research Platform ("HARP") file (the "Software") is
+ * made available by Network Computing Services, Inc. ("NetworkCS")
+ * "AS IS". NetworkCS does not provide maintenance, improvements or
+ * support of any kind.
+ *
+ * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
+ * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
+ * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
+ * In no event shall NetworkCS be responsible for any damages, including
+ * but not limited to consequential damages, arising from or relating to
+ * any use of the Software or related support.
+ *
+ * Copyright 1994-1998 Network Computing Services, Inc.
+ *
+ * Copies of this Software may be made, however, the above copyright
+ * notice must be reproduced on all copies.
+ *
+ * @(#) $Id: atm_pcb.h,v 1.2 1998/07/30 22:30:51 mks Exp $
+ *
+ */
+
+/*
+ * Core ATM Services
+ * -----------------
+ *
+ * ATM socket protocol definitions
+ *
+ */
+
+#ifndef _NETATM_ATM_PCB_H
+#define _NETATM_ATM_PCB_H
+
+
+#ifdef ATM_KERNEL
+/*
+ * ATM Socket PCB
+ *
+ * Common structure for all ATM protocol sockets. This control block
+ * will be used for all ATM socket types.
+ */
+struct atm_pcb {
+ struct socket *atp_socket; /* Socket */
+ Atm_connection *atp_conn; /* Connection manager token */
+ u_char atp_type; /* Protocol type (see below) */
+ u_char atp_flags; /* Protocol flags (see below) */
+ Atm_attributes atp_attr; /* Socket's call attributes */
+ char atp_name[T_ATM_APP_NAME_LEN]; /* Owner's name */
+};
+typedef struct atm_pcb Atm_pcb;
+
+/*
+ * Protocol Types
+ */
+#define ATPT_AAL5 0 /* AAL type 5 protocol */
+#define ATPT_SSCOP 1 /* SSCOP protocol */
+#define ATPT_NUM 2 /* Number of protocols */
+
+/*
+ * PCB Flags
+ */
+
+
+/*
+ * Handy macros
+ */
+#define sotoatmpcb(so) ((Atm_pcb *)(so)->so_pcb)
+
+
+/*
+ * ATM Socket Statistics
+ */
+struct atm_sock_stat {
+ u_long as_connreq[ATPT_NUM]; /* Connection requests */
+ u_long as_inconn[ATPT_NUM]; /* Incoming connection requests */
+ u_long as_conncomp[ATPT_NUM]; /* Connections completed */
+ u_long as_connfail[ATPT_NUM]; /* Connections failed */
+ u_long as_connrel[ATPT_NUM]; /* Connections released */
+ u_long as_connclr[ATPT_NUM]; /* Connections cleared */
+ u_long as_indrop[ATPT_NUM]; /* Input packets dropped */
+ u_long as_outdrop[ATPT_NUM]; /* Output packets dropped */
+};
+#endif /* ATM_KERNEL */
+
+#endif /* _NETATM_ATM_PCB_H */
OpenPOWER on IntegriCloud