home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tcp30tkt.zip / PGMG1.ZIP / INCLUDE / SYS / IOCTL.H next >
Text File  |  1995-12-04  |  5KB  |  125 lines

  1. #ifndef __IOCTL_32H
  2. #define __IOCTL_32H
  3.  
  4. #define ioc(x,y)       ((x<<8)|y)
  5.  
  6. #define FIONREAD        ioc('f', 127)
  7. #define FIONBIO         ioc('f', 126)
  8. #define FIOASYNC        ioc('f', 125)
  9. #define FIOTCPCKSUM     ioc('f', 128)
  10. #define FIONSTATUS      ioc('f', 120)
  11. #define FIONURG         ioc('f', 121)
  12.  
  13. #define SIOCSHIWAT      ioc('s',  0)
  14. #define SIOCGHIWAT      ioc('s',  1)
  15. #define SIOCSLOWAT      ioc('s',  2)
  16. #define SIOCGLOWAT      ioc('s',  3)
  17. #define SIOCATMARK      ioc('s',  7)
  18. #define SIOCSPGRP       ioc('s',  8)
  19. #define SIOCGPGRP       ioc('s',  9)
  20. #define SIOCSHOSTID     ioc('s', 10)
  21.  
  22. #define SIOCADDRT       ioc('r', 10)
  23. #define SIOCDELRT       ioc('r', 11)
  24. #define SIOMETRIC1RT    ioc('r', 12)
  25. #define SIOMETRIC2RT    ioc('r', 13)
  26. #define SIOMETRIC3RT    ioc('r', 14)
  27. #define SIOMETRIC4RT    ioc('r', 15)
  28.  
  29. #define SIOCREGADDNET   ioc('r', 12)
  30. #define SIOCREGDELNET   ioc('r', 13)
  31. #define SIOCREGROUTES   ioc('r', 14)
  32. #define SIOCFLUSHROUTES ioc('r', 15)
  33.  
  34. #define SIOCSIFADDR     ioc('i', 12)
  35. #define SIOCGIFADDR     ioc('i',13)
  36. #define SIOCSIFDSTADDR  ioc('i', 14)
  37. #define SIOCGIFDSTADDR  ioc('i',15)
  38. #define SIOCSIFFLAGS    ioc('i', 16)
  39. #define SIOCGIFFLAGS    ioc('i',17)
  40. #define SIOCGIFBRDADDR  ioc('i',18)
  41. #define SIOCSIFBRDADDR  ioc('i',19)
  42. #define SIOCGIFCONF     ioc('i',20)
  43. #define SIOCGIFNETMASK  ioc('i',21)
  44. #define SIOCSIFNETMASK  ioc('i',22)
  45. #define SIOCGIFMETRIC   ioc('i',23)
  46. #define SIOCSIFMETRIC   ioc('i',24)
  47. #define SIOCSIFSETSIG   ioc('i', 25)
  48. #define SIOCSIFCLRSIG   ioc('i', 26)
  49. #define SIOCSIFBRD      ioc('i', 27) /* SINGLE-rt bcst. using old # for bkw cmpt */
  50. #define SIOCSIFALLRTB   ioc('i', 63) /* added to configure all-route broadcst */
  51.  
  52. #define SIOCGIFLOAD     ioc('i', 27)
  53. #define SIOCSIFFILTERSRC ioc('i', 28)
  54. #define SIOCGIFFILTERSRC ioc('i',29)
  55.  
  56. #define SIOCSARP        ioc('i', 30)
  57. #define SIOCGARP        ioc('i', 31)
  58. #define SIOCDARP        ioc('i', 32)
  59. #define SIOCSIFSNMPSIG  ioc('i', 33)
  60. #define SIOCSIFSNMPCLR  ioc('i', 34)
  61. #define SIOCSIFSNMPCRC  ioc('i', 35)
  62. #define SIOCSIFPRIORITY ioc('i', 36)
  63. #define SIOCGIFPRIORITY ioc('i', 37)
  64. #define SIOCSIFFILTERDST ioc('i', 38)
  65. #define SIOCGIFFILTERDST ioc('i',39)
  66. #define SIOCSIF802_3     ioc('i',40)
  67. #define SIOCSIFNO802_3   ioc('i',41)
  68. #define SIOCSIFNOREDIR   ioc('i',42)
  69. #define SIOCSIFYESREDIR  ioc('i',43)
  70.  
  71. #define SIOCSIFMTU      ioc('i',45)
  72. #define SIOCSIFFDDI     ioc('i',46)
  73. #define SIOCSIFNOFDDI   ioc('i',47)
  74. #define SIOCSRDBRD      ioc('i',48)
  75. #define SIOCSARP_TR     ioc('i',49)
  76. #define SIOCGARP_TR     ioc('i',50)
  77.  
  78. /* multicast ioctls */
  79. #define SIOCADDMULTI    ioc('i', 51)    /* add m'cast addr */
  80. #define SIOCDELMULTI    ioc('i', 52)    /* del m'cast addr */
  81. #define SIOCMULTISBC    ioc('i', 61)   /* use broadcast to send IP multicast*/
  82. #define SIOCMULTISFA    ioc('i', 62)   /* use functional addr to send IP multicast*/
  83.  
  84.  
  85. #ifdef SLBOOTP
  86. #define SIOCGUNIT       ioc('i', 70)  /* Used to retreive unit number on */
  87.                                       /* serial interface */
  88. #endif
  89.  
  90. #define SIOCSIFSPIPE     ioc('i',71)   /* used to set pipe size on interface */
  91.                                     /* this is used as tcp send buffer size */
  92. #define SIOCSIFRPIPE     ioc('i',72)   /* used to set pipe size on interface */
  93.                                     /* this is used as tcp recv buffer size */
  94. #define SIOCSIFTCPSEG   ioc('i',73)  /* set the TCP segment size on interface*/
  95. #define SIOCSIFUSE576   ioc('i',74)  /* enable/disable the automatic change of mss to 576 */
  96.                                      /* if going through a router */
  97. #define SIOCGIFVALID    ioc('i',75)   /* to check if the interface is Valid or not */
  98.                                       /* sk June 14 1995 */
  99. #define SIOCGIFBOUND    ioc('i',76)  /* ioctl to return bound/shld bind ifs */
  100. /* Interface Tracing Support */
  101. #define SIOCGIFEFLAGS   ioc('i',150)
  102. #define SIOCSIFEFLAGS   ioc('i',151)
  103. #define SIOCGIFTRACE    ioc('i',152)
  104. #define SIOCSIFTRACE    ioc('i',153)
  105.  
  106. #ifdef SLSTATS
  107. #define SIOCSSTAT      ioc('i',154)
  108. #define SIOCGSTAT      ioc('i',155)
  109. #endif
  110.  
  111. /* NETSTAT stuff */
  112. #define SIOSTATMBUF     ioc('n',40)
  113. #define SIOSTATTCP      ioc('n',41)
  114. #define SIOSTATUDP      ioc('n',42)
  115. #define SIOSTATIP       ioc('n',43)
  116. #define SIOSTATSO       ioc('n',44)
  117. #define SIOSTATRT       ioc('n',45)
  118. #define SIOFLUSHRT      ioc('n',46)
  119. #define SIOSTATICMP     ioc('n',47)
  120. #define SIOSTATIF       ioc('n',48)
  121. #define SIOSTATAT       ioc('n',49)
  122. #define SIOSTATARP      ioc('n',50)
  123. #define SIOSTATIF42     ioc('n',51)
  124. #endif
  125.