summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/i4b_ioctl.h
diff options
context:
space:
mode:
authorhm <hm@FreeBSD.org>1999-12-14 20:54:38 +0000
committerhm <hm@FreeBSD.org>1999-12-14 20:54:38 +0000
commite5044a69c99727fc68f6b7f09689aeb5244d9549 (patch)
treeb8109350cce365530c71c53714cb96592ae14dbc /sys/i386/include/i4b_ioctl.h
parent3c5fb5d6117ab71bf297ba339d596e6f8e41e818 (diff)
downloadFreeBSD-src-e5044a69c99727fc68f6b7f09689aeb5244d9549.zip
FreeBSD-src-e5044a69c99727fc68f6b7f09689aeb5244d9549.tar.gz
update to isdn4bsd beta release 0.90
Diffstat (limited to 'sys/i386/include/i4b_ioctl.h')
-rw-r--r--sys/i386/include/i4b_ioctl.h42
1 files changed, 38 insertions, 4 deletions
diff --git a/sys/i386/include/i4b_ioctl.h b/sys/i386/include/i4b_ioctl.h
index 785379f..c2a2460 100644
--- a/sys/i386/include/i4b_ioctl.h
+++ b/sys/i386/include/i4b_ioctl.h
@@ -27,9 +27,11 @@
* i4b_ioctl.h - messages kernel <--> userland
* -------------------------------------------
*
- * $FreeBSD$
+ * $Id: i4b_ioctl.h,v 1.150 1999/12/13 21:25:28 hm Exp $
*
- * last edit-date: [Fri Jul 30 08:53:47 1999]
+ * $FreeBSD$
+ *
+ * last edit-date: [Mon Dec 13 22:12:16 1999]
*
*---------------------------------------------------------------------------*/
@@ -46,8 +48,8 @@
* version and release number for isdn4bsd package
*---------------------------------------------------------------------------*/
#define VERSION 0 /* version number */
-#define REL 83 /* release number */
-#define STEP 0 /* release step */
+#define REL 90 /* release number */
+#define STEP 1 /* release step */
/*---------------------------------------------------------------------------*
* date/time format in i4b log messages
@@ -68,6 +70,12 @@
#define MAX_CONTROLLERS 8 /* max number of controllers */
/*---------------------------------------------------------------------------*
+ * ISDN D-channel protocols
+ *---------------------------------------------------------------------------*/
+#define PROTOCOL_DSS1 0 /* default, Euro-ISDN/DSS1 */
+#define PROTOCOL_D64S 1 /* 64k leased line, no protocol */
+
+/*---------------------------------------------------------------------------*
* controller types
*---------------------------------------------------------------------------*/
#define CTRL_INVALID (-1) /* invalid, error */
@@ -278,6 +286,7 @@ typedef struct {
#define MSG_NEGCOMP_IND 'n'
#define MSG_IFSTATE_CHANGED_IND 'o'
#define MSG_DIALOUTNUMBER_IND 'p'
+#define MSG_PACKET_IND 'q'
int cdid; /* call descriptor id */
} msg_hdr_t;
@@ -430,6 +439,21 @@ typedef struct {
} msg_drvrdisc_req_t;
/*---------------------------------------------------------------------------*
+ * connect packet logging
+ *---------------------------------------------------------------------------*/
+
+typedef struct {
+ msg_hdr_t header; /* common header */
+ int driver; /* driver type */
+ int driver_unit; /* driver unit number */
+ int direction; /* 0=in 1=out */
+#define DIRECTION_IN 0 /* sending packet to remote */
+#define DIRECTION_OUT 1 /* received packet from remote */
+#define MAX_PACKET_LOG 40 /* space for IP and TCP header */
+ u_int8_t pktdata[MAX_PACKET_LOG];
+} msg_packet_ind_t;
+
+/*---------------------------------------------------------------------------*
* state of layer 1/2
*---------------------------------------------------------------------------*/
typedef struct {
@@ -606,6 +630,16 @@ typedef struct {
#define I4B_VR_REQ _IOR('4', 9, msg_vr_req_t)
/*---------------------------------------------------------------------------*
+ * set ISDN protocol used by a controller
+ *---------------------------------------------------------------------------*/
+typedef struct {
+ int controller; /* controller number */
+ int protocol; /* ISDN D-channel protocol type */
+} msg_prot_ind_t;
+
+#define I4B_PROT_IND _IOW('4', 10, msg_prot_ind_t)
+
+/*---------------------------------------------------------------------------*
* Protocol download to active cards
*---------------------------------------------------------------------------*/
struct isdn_dr_prot {
OpenPOWER on IntegriCloud