home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / gdpstr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.8 KB  |  76 lines

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