Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
8.6 KiB

  1. #define VER_IOCH "@(#)MCS ipx/h/ioctls.h 1.00.00 - 08 APR 1993";
  2. /****************************************************************************
  3. * (c) Copyright 1990, 1993 Micro Computer Systems, Inc. All rights reserved.
  4. *****************************************************************************
  5. *
  6. * Title: IPX/SPX Driver for Windows NT
  7. *
  8. * Module: ipx/h/ioctls.h
  9. *
  10. * Version: 1.00.00
  11. *
  12. * Date: 04-08-93
  13. *
  14. * Author: Brian Walker
  15. *
  16. *****************************************************************************
  17. *
  18. * Change Log:
  19. *
  20. * Date DevSFC Comment
  21. * -------- ------ -------------------------------------------------------
  22. *****************************************************************************
  23. *
  24. * Functional Description:
  25. *
  26. * IOCTL defines
  27. *
  28. ****************************************************************************/
  29. /** Ioctls for IPX - (X) = User callable **/
  30. /**
  31. ioctls will values 100 - 150 were added for the NT port.
  32. **/
  33. #define I_MIPX (('I' << 24) | ('D' << 16) | ('P' << 8))
  34. #define MIPX_SETNODEADDR I_MIPX | 0 /* Set the node address */
  35. #define MIPX_SETNETNUM I_MIPX | 1 /* Set the network number */
  36. #define MIPX_SETPTYPE I_MIPX | 2 /* (X) Set the packet type */
  37. #define MIPX_SENTTYPE I_MIPX | 3 /* (X) Set the xport type */
  38. #define MIPX_SETPKTSIZE I_MIPX | 4 /* Set the packet size */
  39. #define MIPX_SETSAP I_MIPX | 5 /* Set the sap/type field */
  40. #define MIPX_SENDOPTS I_MIPX | 6 /* (X) Send options on recv */
  41. #define MIPX_NOSENDOPTS I_MIPX | 7 /* (X) Don't send options on recv */
  42. #define MIPX_SENDSRC I_MIPX | 8 /* (X) Send source address up */
  43. #define MIPX_NOSENDSRC I_MIPX | 9 /* (X) Don't Send source address up */
  44. #define MIPX_CONVBCAST I_MIPX | 10 /* Convert TKR bcast to func addr */
  45. #define MIPX_NOCONVBCAST I_MIPX | 11 /* Don't cnvrt TKR bcast to funcaddr */
  46. #define MIPX_SETCARDTYPE I_MIPX | 12 /* Set 802.3 or ETH type */
  47. #define MIPX_STARGROUP I_MIPX | 13 /* This is stargroup */
  48. #define MIPX_SWAPLENGTH I_MIPX | 14 /* Set flag for swapping 802.3 length */
  49. #define MIPX_SENDDEST I_MIPX | 15 /* (X) Send dest. address up */
  50. #define MIPX_NOSENDDEST I_MIPX | 16 /* (X) Don't send dest. address up */
  51. #define MIPX_SENDFDEST I_MIPX | 17 /* (X) Send final dest. address up */
  52. #define MIPX_NOSENDFDEST I_MIPX | 18 /* (X) Don't send final dest. up */
  53. /** Added for NT port **/
  54. #define MIPX_SETVERSION I_MIPX | 100 /* Set card version */
  55. #define MIPX_GETSTATUS I_MIPX | 101
  56. #define MIPX_SENDADDROPT I_MIPX | 102 /* (X) Send ptype w/addr on recv */
  57. #define MIPX_NOSENDADDROPT I_MIPX | 103 /* (X) Stop sending ptype on recv */
  58. #define MIPX_CHECKSUM I_MIPX | 104 /* Enable/Disable checksum */
  59. #define MIPX_GETPKTSIZE I_MIPX | 105 /* Get max packet size */
  60. #define MIPX_SENDHEADER I_MIPX | 106 /* Send header with data */
  61. #define MIPX_NOSENDHEADER I_MIPX | 107 /* Don't send header with data */
  62. #define MIPX_SETCURCARD I_MIPX | 108 /* Set current card for IOCTLs */
  63. #define MIPX_SETMACTYPE I_MIPX | 109 /* Set the Cards MAC type */
  64. #define MIPX_DOSROUTE I_MIPX | 110 /* Do source routing on this card*/
  65. #define MIPX_NOSROUTE I_MIPX | 111 /* Don't source routine the card*/
  66. #define MIPX_SETRIPRETRY I_MIPX | 112 /* Set RIP retry count */
  67. #define MIPX_SETRIPTO I_MIPX | 113 /* Set RIP timeout */
  68. #define MIPX_SETTKRSAP I_MIPX | 114 /* Set the token ring SAP */
  69. #define MIPX_SETUSELLC I_MIPX | 115 /* Put LLC hdr on packets */
  70. #define MIPX_SETUSESNAP I_MIPX | 116 /* Put SNAP hdr on packets */
  71. #define MIPX_8023LEN I_MIPX | 117 /* 1=make even, 0=dont make even*/
  72. #define MIPX_SENDPTYPE I_MIPX | 118 /* Send ptype in options on recv*/
  73. #define MIPX_NOSENDPTYPE I_MIPX | 119 /* Don't send ptype in options */
  74. #define MIPX_FILTERPTYPE I_MIPX | 120 /* Filter on recv ptype */
  75. #define MIPX_NOFILTERPTYPE I_MIPX | 121 /* Don't Filter on recv ptype */
  76. #define MIPX_SETSENDPTYPE I_MIPX | 122 /* Set pkt type to send with */
  77. #define MIPX_GETCARDINFO I_MIPX | 123 /* Get info on a card */
  78. #define MIPX_SENDCARDNUM I_MIPX | 124 /* Send card num up in options */
  79. #define MIPX_NOSENDCARDNUM I_MIPX | 125 /* Dont send card num in options*/
  80. #define MIPX_SETROUTER I_MIPX | 126 /* Set router enabled flag */
  81. #define MIPX_SETRIPAGE I_MIPX | 127 /* Set RIP age timeout */
  82. #define MIPX_SETRIPUSAGE I_MIPX | 128 /* Set RIP usage timeout */
  83. #define MIPX_SETSROUTEUSAGE I_MIPX| 129 /* Set the SROUTE usage timeout */
  84. #define MIPX_SETINTNET I_MIPX | 130 /* Set internal network number */
  85. #define MIPX_NOVIRTADDR I_MIPX | 131 /* Turn off virtual net num */
  86. #define MIPX_VIRTADDR I_MIPX | 132 /* Turn on virtual net num */
  87. #define MIPX_SETBCASTFLAG I_MIPX | 133 /* Turn on bcast flag in addr */
  88. #define MIPX_NOBCASTFLAG I_MIPX | 134 /* Turn off bcast flag in addr */
  89. #define MIPX_GETNETINFO I_MIPX | 135 /* Get info on a network num */
  90. #define MIPX_SETDELAYTIME I_MIPX | 136 /* Set cards delay time */
  91. #define MIPX_SETROUTEADV I_MIPX | 137 /* Route advertise timeout */
  92. #define MIPX_SETSOCKETS I_MIPX | 138 /* Set default sockets */
  93. #define MIPX_SETLINKSPEED I_MIPX | 139 /* Set the link speed for a card*/
  94. #define MIPX_SETWANFLAG I_MIPX | 140
  95. #define MIPX_GETCARDCHANGES I_MIPX | 141 /* Wait for card changes */
  96. #define MIPX_GETMAXADAPTERS I_MIPX | 142
  97. #define MIPX_REUSEADDRESS I_MIPX | 143
  98. #define MIPX_RERIPNETNUM I_MIPX | 144 /* ReRip a network */
  99. /** For Source Routing Support **/
  100. #define MIPX_SRCLEAR I_MIPX | 200 /* Clear the source routing table*/
  101. #define MIPX_SRDEF I_MIPX | 201 /* 0=Single Rte, 1=All Routes */
  102. #define MIPX_SRBCAST I_MIPX | 202 /* 0=Single Rte, 1=All Routes */
  103. #define MIPX_SRMULTI I_MIPX | 203 /* 0=Single Rte, 1=All Routes */
  104. #define MIPX_SRREMOVE I_MIPX | 204 /* Remove a node from the table */
  105. #define MIPX_SRLIST I_MIPX | 205 /* Get the source routing table */
  106. #define MIPX_SRGETPARMS I_MIPX | 206 /* Get source routing parms */
  107. #define MIPX_SETSHOULDPUT I_MIPX | 210 /* Turn on should put call */
  108. #define MIPX_DELSHOULDPUT I_MIPX | 211 /* Turn off should put call */
  109. #define MIPX_GETSHOULDPUT I_MIPX | 212 /* Get ptr to mipx_shouldput */
  110. /** Added for ISN **/
  111. #define MIPX_RCVBCAST I_MIPX | 300 /* (X) Enable broadcast reception */
  112. #define MIPX_NORCVBCAST I_MIPX | 301 /* (X) Disable broadcast reception */
  113. #define MIPX_ADAPTERNUM I_MIPX | 302 /* Get maximum adapter number */
  114. #define MIPX_NOTIFYCARDINFO I_MIPX | 303 /* Pend until card info changes */
  115. #define MIPX_LOCALTARGET I_MIPX | 304 /* Get local target for address */
  116. #define MIPX_NETWORKINFO I_MIPX | 305 /* Return info about remote net */
  117. #define MIPX_ZEROSOCKET I_MIPX | 306 /* Use 0 as source socket on sends */
  118. /** Ioctls for SPX **/
  119. #define I_MSPX (('S' << 24) | ('P' << 16) | ('P' << 8))
  120. #define MSPX_SETADDR I_MSPX | 0 /* Set the network address */
  121. #define MSPX_SETPKTSIZE I_MSPX | 1 /* Set the packet size per card */
  122. #define MSPX_SETDATASTREAM I_MSPX | 2 /* Set datastream type */
  123. /** Added for NT port **/
  124. #define MSPX_SETASLISTEN I_MSPX | 100 /* Set as a listen socket */
  125. #define MSPX_GETSTATUS I_MSPX | 101 /* Get running status */
  126. #define MSPX_GETQUEUEPTR I_MSPX | 102 /* Get ptr to the streams queue */
  127. #define MSPX_SETDATAACK I_MSPX | 103 /* Set DATA ACK option */
  128. #define MSPX_NODATAACK I_MSPX | 104 /* Turn off DATA ACK option */
  129. #define MSPX_SETMAXPKTSOCK I_MSPX | 105 /* Set the packet size per socket */
  130. #define MSPX_SETWINDOWCARD I_MSPX | 106 /* Set window size for card */
  131. #define MSPX_SETWINDOWSOCK I_MSPX | 107 /* Set window size for 1 socket */
  132. #define MSPX_SENDHEADER I_MSPX | 108 /* Send header with data */
  133. #define MSPX_NOSENDHEADER I_MSPX | 109 /* Don't send header with data */
  134. #define MSPX_GETPKTSIZE I_MSPX | 110 /* Get the packet size per card */
  135. #define MSPX_SETCONNCNT I_MSPX | 111 /* Set the conn req count */
  136. #define MSPX_SETCONNTO I_MSPX | 112 /* Set the conn req timeout */
  137. #define MSPX_SETALIVECNT I_MSPX | 113 /* Set the keepalive count */
  138. #define MSPX_SETALIVETO I_MSPX | 114 /* Set the keepalive timeout */
  139. #define MSPX_SETALWAYSEOM I_MSPX | 115 /* Turn on always EOM flag */
  140. #define MSPX_NOALWAYSEOM I_MSPX | 116 /* Turn off always EOM flag */