home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / gdpstr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.0 KB  |  81 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_GDPSTR_H
  11. #define _SYS_GDPSTR_H
  12.  
  13. #ident    "@(#)/usr/include/sys/gdpstr.h.sl 1.1 4.0 12/08/90 24203 AT&T-USL"
  14. /*  
  15.  *    commands for virtual circuits set up 
  16.  */
  17.  
  18. #define PM_DATA        0
  19. #define    PM_LISTEN    1
  20. #define    PM_CONNECT    2
  21. #define    PM_ACCEPT    3
  22. #define    PM_DISCONNECT    4
  23.  
  24. /*  
  25.  *    reason for disconnect
  26.  */
  27.  
  28. #define    VC_REJECT    1    /* reject a conection request */
  29. #define    VC_CLOSE    2    /* closed by the other end */
  30. #define    VC_CONNFAIL    3    /* fail to contact remote side */
  31. #define    VC_LINKDOWN    4    /* link down */
  32. #define VC_NORMAL    6    /* normal disconnect link not needed */
  33.  
  34. /*  
  35.  *    messages passed from the upper modules  
  36.  *    to the protocol module 
  37.  */
  38.  
  39. /*  connection request */
  40.  
  41. struct    pm_connect {
  42.     naddr_t    dstnadr;    /* destination network address */
  43.     ushort    dstmdev;    /* destination minor device number */
  44.     ushort    nretry;        /* number of retries for set up */
  45.     ushort    interval;    /* time interval between retries */
  46. };
  47.  
  48.  
  49. /*  accept the connection request */
  50.  
  51. struct    pm_accept {
  52.     naddr_t    dstnadr;    /* destination network address */
  53.     ushort    dstmdev;    /* destination minor device number */
  54.     ushort    respmdev;    /* responding minor device number */
  55. };
  56.  
  57.  
  58. /*  reject the connection request or 
  59.     disconnect a virtual circuit */
  60.  
  61. struct    pm_disconnect {
  62.     naddr_t    dstnadr;    /* destination network address */
  63.     ushort    dstmdev;    /* destination minor device number */
  64.     short    reason;        /* reason for disconnect */
  65. };
  66.  
  67.  
  68. /*  
  69.  *    messages returned from the protocol module
  70.  *    to the upper modules  
  71.  */
  72.  
  73. struct    resp_msg {
  74.     short    cmd;        /* command */
  75.     short    reason;        /* reason for disconnect */
  76.     naddr_t    srcnadr;    /* source network address */
  77.     ushort    srcmdev;    /* source minor device number */
  78. };
  79.  
  80. #endif    /* _SYS_GDPSTR_H */
  81.