home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / stack16 / sys / ioctl.h next >
Text File  |  1999-05-11  |  6KB  |  161 lines

  1.  
  2. /*
  3.  * Copyright (c) 1983, 1987 The Regents of the University of California.
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source and binary forms are permitted
  7.  * provided that the above copyright notice and this paragraph are
  8.  * duplicated in all such forms and that any documentation,
  9.  * advertising materials, and other materials related to such
  10.  * distribution and use acknowledge that the software was developed
  11.  * by the University of California, Berkeley.  The name of the
  12.  * University may not be used to endorse or promote products derived
  13.  * from this software without specific prior written permission.
  14.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  15.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  16.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  17.  *
  18.  *      @(#)resolv.h    5.6 (Berkeley) 9/20/88
  19.  */
  20. #define ioc(x,y)       ((x<<8)|y)
  21.  
  22. #define FIONREAD        ioc('f', 127)
  23. #define FIONBIO         ioc('f', 126)
  24. #define FIOASYNC        ioc('f', 125)
  25. #define FIOTCPCKSUM     ioc('f', 128)
  26. #define FIONSTATUS      ioc('f', 120)
  27. #define FIONURG         ioc('f', 121)
  28. #define FIOBSTATUS      ioc('f', 122)
  29.  
  30. #define SIOCSHIWAT      ioc('s',  0)
  31. #define SIOCGHIWAT      ioc('s',  1)
  32. #define SIOCSLOWAT      ioc('s',  2)
  33. #define SIOCGLOWAT      ioc('s',  3)
  34. #define SIOCATMARK      ioc('s',  7)
  35. #define SIOCSPGRP       ioc('s',  8)
  36. #define SIOCGPGRP       ioc('s',  9)
  37. #define SIOCSHOSTID     ioc('s', 10)
  38.  
  39. /* NEW IOCTL COMMAND CODES FOR AFNB                                   */
  40. /* SIOCGNCBFN  - Issue NETBIOS NCB.FIND.NAME                          */
  41. /* SIOCGNBNAME - Get NETBIOS HOSTNAME                                 */
  42. /* SIOCSNBNAME - Set NETBIOS HOSTNAME                                 */
  43.  
  44. #define SIOCGNBNAME     ioc('s', 11)
  45. #define SIOCSNBNAME     ioc('s', 12)
  46. #define SIOCGNCBFN      ioc('s', 13)
  47.  
  48. #define SIOCADDRT       ioc('r', 10)
  49. #define SIOCDELRT       ioc('r', 11)
  50. #define SIOMETRIC1RT    ioc('r', 12)
  51. #define SIOMETRIC2RT    ioc('r', 13)
  52. #define SIOMETRIC3RT    ioc('r', 14)
  53. #define SIOMETRIC4RT    ioc('r', 15)
  54.  
  55. #define SIOCREGADDNET   ioc('r', 12)
  56. #define SIOCREGDELNET   ioc('r', 13)
  57. #define SIOCREGROUTES   ioc('r', 14)
  58. #define SIOCFLUSHROUTES ioc('r', 15)
  59.  
  60. #define SIOCSIFADDR     ioc('i', 12)
  61. #define SIOCGIFADDR     ioc('i',13)
  62. #define SIOCSIFDSTADDR  ioc('i', 14)
  63. #define SIOCGIFDSTADDR  ioc('i',15)
  64. #define SIOCSIFFLAGS    ioc('i', 16)
  65. #define SIOCGIFFLAGS    ioc('i',17)
  66. #define SIOCGIFBRDADDR  ioc('i',18)
  67. #define SIOCSIFBRDADDR  ioc('i',19)
  68. #define SIOCGIFCONF     ioc('i',20)
  69. #define SIOCGIFNETMASK  ioc('i',21)
  70. #define SIOCSIFNETMASK  ioc('i',22)
  71. #define SIOCGIFMETRIC   ioc('i',23)
  72. #define SIOCSIFMETRIC   ioc('i',24)
  73. #define SIOCSIFSETSIG   ioc('i', 25)
  74. #define SIOCSIFCLRSIG   ioc('i', 26)
  75. #define SIOCSIFBRD      ioc('i', 27) /* SINGLE-rt bcst. using old # for bkw cmpt */
  76. #define SIOCSIFALLRTB   ioc('i', 63) /* added to configure all-route broadcst */
  77.  
  78. #define SIOCGIFLOAD     ioc('i', 27)
  79. #define SIOCSIFFILTERSRC ioc('i', 28)
  80. #define SIOCGIFFILTERSRC ioc('i',29)
  81.  
  82. #define SIOCSARP        ioc('i', 30)
  83. #define SIOCGARP        ioc('i', 31)
  84. #define SIOCDARP        ioc('i', 32)
  85. #define SIOCSIFSNMPSIG  ioc('i', 33)
  86. #define SIOCSIFSNMPCLR  ioc('i', 34)
  87. #define SIOCSIFSNMPCRC  ioc('i', 35)
  88. #define SIOCSIFPRIORITY ioc('i', 36)
  89. #define SIOCGIFPRIORITY ioc('i', 37)
  90. #define SIOCSIFFILTERDST ioc('i', 38)
  91. #define SIOCGIFFILTERDST ioc('i',39)
  92. #define SIOCSIF802_3     ioc('i',40)
  93. #define SIOCSIFNO802_3   ioc('i',41)
  94. #define SIOCSIFNOREDIR   ioc('i',42)
  95. #define SIOCSIFYESREDIR  ioc('i',43)
  96.  
  97. #define SIOCSIFMTU      ioc('i',45)
  98. #define SIOCSIFFDDI     ioc('i',46)
  99. #define SIOCSIFNOFDDI   ioc('i',47)
  100. #define SIOCSRDBRD      ioc('i',48)
  101. #define SIOCSARP_TR     ioc('i',49)
  102. #define SIOCGARP_TR     ioc('i',50)
  103.  
  104. /* multicast ioctls */
  105. #define SIOCADDMULTI    ioc('i', 51)    /* add m'cast addr */
  106. #define SIOCDELMULTI    ioc('i', 52)    /* del m'cast addr */
  107. #define SIOCMULTISBC    ioc('i', 61)   /* use broadcast to send IP multicast*/
  108. #define SIOCMULTISFA    ioc('i', 62)   /* use functional addr to send IP multicast*/
  109.  
  110. /* alias */
  111. #define SIOCAIFADDR     ioc('i',63)   /* add an alias IP address */
  112. #define SIOCDIFADDR     ioc('i',64)   /* del an alias IP address */
  113.  
  114.  
  115. #ifdef SLBOOTP
  116. #define SIOCGUNIT       ioc('i', 70)  /* Used to retreive unit number on */
  117.                                       /* serial interface */
  118. #endif
  119.  
  120. #define SIOCSIFSPIPE     ioc('i',71)   /* used to set pipe size on interface */
  121.                                     /* this is used as tcp send buffer size */
  122. #define SIOCSIFRPIPE     ioc('i',72)   /* used to set pipe size on interface */
  123.                                     /* this is used as tcp recv buffer size */
  124. #define SIOCSIFTCPSEG   ioc('i',73)  /* set the TCP segment size on interface*/
  125. #define SIOCSIFUSE576   ioc('i',74)  /* enable/disable the automatic change of mss to 576 */
  126.                                      /* if going through a router */
  127. #define SIOCGIFVALID    ioc('i',75)   /* to check if the interface is Valid or not */
  128.  
  129. #define SIOCGIFBOUND    ioc('i',76)  /* ioctl to return bound/shld bind ifs */
  130.  
  131. /* Get multicast gp. info for an interface  */
  132. #define SIOCGMCAST      ioc('i',81)  /* ret list of m-cast addrs for an if */
  133.  
  134. /* Interface Tracing Support */
  135. #define SIOCGIFEFLAGS   ioc('i',150)
  136. #define SIOCSIFEFLAGS   ioc('i',151)
  137. #define SIOCGIFTRACE    ioc('i',152)
  138. #define SIOCSIFTRACE    ioc('i',153)
  139.  
  140. #ifdef SLSTATS
  141. #define SIOCSSTAT      ioc('i',154)
  142. #define SIOCGSTAT      ioc('i',155)
  143. #endif
  144.  
  145. /* NETSTAT stuff */
  146. #define SIOSTATMBUF     ioc('n',40)
  147. #define SIOSTATTCP      ioc('n',41)
  148. #define SIOSTATUDP      ioc('n',42)
  149. #define SIOSTATIP       ioc('n',43)
  150. #define SIOSTATSO       ioc('n',44)
  151. #define SIOSTATRT       ioc('n',45)
  152. #define SIOFLUSHRT      ioc('n',46)
  153. #define SIOSTATICMP     ioc('n',47)
  154. #define SIOSTATIF       ioc('n',48)
  155. #define SIOSTATAT       ioc('n',49)
  156. #define SIOSTATARP      ioc('n',50)
  157. #define SIOSTATIF42     ioc('n',51)
  158. /* ioctls which return the cnt of the arp and route entris */
  159. #define SIOSTATCNTRT   ioc('n', 52)
  160. #define SIOSTATCNTAT   ioc('n', 53)
  161.