home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lansystk.zip / INCLUDE / MPTN / SYS / IOCTL.H next >
C/C++ Source or Header  |  1998-05-08  |  3KB  |  88 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.  
  21. #define SIOCADDRT       ioc('r', 10)
  22. #define SIOCDELRT       ioc('r', 11)
  23. #define SIOMETRIC1RT    ioc('r', 12)
  24. #define SIOMETRIC2RT    ioc('r', 13)
  25. #define SIOMETRIC3RT    ioc('r', 14)
  26. #define SIOMETRIC4RT    ioc('r', 15)
  27.  
  28. #define SIOCREGADDNET   ioc('r', 12)
  29. #define SIOCREGDELNET   ioc('r', 13)
  30. #define SIOCREGROUTES   ioc('r', 14)
  31. #define SIOCFLUSHROUTES ioc('r', 15)
  32.  
  33. #define SIOCSIFADDR     ioc('i', 12)
  34. #define SIOCGIFADDR     ioc('i',13)
  35. #define SIOCSIFDSTADDR  ioc('i', 14)
  36. #define SIOCGIFDSTADDR  ioc('i',15)
  37. #define SIOCSIFFLAGS    ioc('i', 16)
  38. #define SIOCGIFFLAGS    ioc('i',17)
  39. #define SIOCGIFBRDADDR  ioc('i',18)
  40. #define SIOCSIFBRDADDR  ioc('i',19)
  41. #define SIOCGIFCONF     ioc('i',20)
  42. #define SIOCGIFNETMASK  ioc('i',21)
  43. #define SIOCSIFNETMASK  ioc('i',22)
  44. #define SIOCGIFMETRIC   ioc('i',23)
  45. #define SIOCSIFMETRIC   ioc('i',24)
  46. #define SIOCSIFSETSIG   ioc('i', 25)
  47. #define SIOCSIFCLRSIG   ioc('i', 26)
  48. #define SIOCSIFBRD      ioc('i', 27)
  49.  
  50. #define SIOCGIFLOAD     ioc('i', 27)
  51. #define SIOCSIFFILTERSRC ioc('i', 28)
  52. #define SIOCGIFFILTERSRC ioc('i',29)
  53.  
  54. #define SIOCSARP        ioc('i', 30)
  55. #define SIOCGARP        ioc('i', 31)
  56. #define SIOCDARP        ioc('i', 32)
  57. #define SIOCSIFSNMPSIG  ioc('i', 33)
  58. #define SIOCSIFSNMPCLR  ioc('i', 34)
  59. #define SIOCSIFSNMPCRC  ioc('i', 35)
  60. #define SIOCSIFPRIORITY ioc('i', 36)
  61. #define SIOCGIFPRIORITY ioc('i', 37)
  62. #define SIOCSIFFILTERDST ioc('i', 38)
  63. #define SIOCGIFFILTERDST ioc('i',39)
  64. #define SIOCSIF802_3     ioc('i',40)
  65. #define SIOCSIFNO802_3   ioc('i',41)
  66. #define SIOCSIFNOREDIR   ioc('i',42)
  67. #define SIOCSIFYESREDIR   ioc('i',43)
  68.  
  69. #define SIOCSIFMTU      ioc('i',45)
  70. #define SIOCSIFFDDI     ioc('i',46)
  71. #define SIOCSIFNOFDDI   ioc('i',47)
  72. #define SIOCSRDBRD      ioc('i',48)
  73.  
  74. /* NETSTAT stuff */
  75. #define SIOSTATMBUF     ioc('n',40)
  76. #define SIOSTATTCP      ioc('n',41)
  77. #define SIOSTATUDP      ioc('n',42)
  78. #define SIOSTATIP       ioc('n',43)
  79. #define SIOSTATSO       ioc('n',44)
  80. #define SIOSTATRT       ioc('n',45)
  81. #define SIOFLUSHRT      ioc('n',46)
  82. #define SIOSTATICMP     ioc('n',47)
  83. #define SIOSTATIF       ioc('n',48)
  84. #define SIOSTATAT       ioc('n',49)
  85. #define SIOSTATARP      ioc('n',50)
  86.  
  87. #endif /* __IOCTL_32H  */
  88.