home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) 1990 UNIX System Laboratories, Inc. */
- /* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
- /* All Rights Reserved */
-
- /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
- /* UNIX System Laboratories, Inc. */
- /* The copyright notice above does not evidence any */
- /* actual or intended publication of such source code. */
-
- #ifndef _SYS_GDPSTR_H
- #define _SYS_GDPSTR_H
-
- #ident "@(#)/usr/include/sys/gdpstr.h.sl 1.1 4.0 12/08/90 24203 AT&T-USL"
- /*
- * commands for virtual circuits set up
- */
-
- #define PM_DATA 0
- #define PM_LISTEN 1
- #define PM_CONNECT 2
- #define PM_ACCEPT 3
- #define PM_DISCONNECT 4
-
- /*
- * reason for disconnect
- */
-
- #define VC_REJECT 1 /* reject a conection request */
- #define VC_CLOSE 2 /* closed by the other end */
- #define VC_CONNFAIL 3 /* fail to contact remote side */
- #define VC_LINKDOWN 4 /* link down */
- #define VC_NORMAL 6 /* normal disconnect link not needed */
-
- /*
- * messages passed from the upper modules
- * to the protocol module
- */
-
- /* connection request */
-
- struct pm_connect {
- naddr_t dstnadr; /* destination network address */
- ushort dstmdev; /* destination minor device number */
- ushort nretry; /* number of retries for set up */
- ushort interval; /* time interval between retries */
- };
-
-
- /* accept the connection request */
-
- struct pm_accept {
- naddr_t dstnadr; /* destination network address */
- ushort dstmdev; /* destination minor device number */
- ushort respmdev; /* responding minor device number */
- };
-
-
- /* reject the connection request or
- disconnect a virtual circuit */
-
- struct pm_disconnect {
- naddr_t dstnadr; /* destination network address */
- ushort dstmdev; /* destination minor device number */
- short reason; /* reason for disconnect */
- };
-
-
- /*
- * messages returned from the protocol module
- * to the upper modules
- */
-
- struct resp_msg {
- short cmd; /* command */
- short reason; /* reason for disconnect */
- naddr_t srcnadr; /* source network address */
- ushort srcmdev; /* source minor device number */
- };
-
- #endif /* _SYS_GDPSTR_H */
-