home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / tcpiptk / os2ioctl / readme < prev    next >
Text File  |  1999-05-11  |  1KB  |  40 lines

  1. OS2IOCTL
  2. --------
  3.    The new ioctls take only three args, except for the 6 ioctls STATRT,
  4. STATARP, STATAT, STATIF, STATIF42, STATSO. For these ioctls you must link
  5. with tcpip32.dll then you must use os2_ioctl.
  6.  
  7.    The os2_ioctl() socket call performs special operations on sockets; in
  8. particular, operations related to returning status from kernel.
  9.  
  10. SAMPLES FOR OS2IOCTL
  11. --------------------
  12.  
  13. There is one file  named :
  14.  
  15. os2ioctl.c
  16.  
  17. for explainig ioctl calls. This sample program issues SIOSTATRT for getting
  18. the routing entries from the routing table and SIOCSSYN to set the SYN attack
  19. prevention function flag ON.  This can be verified using
  20.  
  21. netstat -r
  22. inetcfg -g syn
  23.  
  24. which shows the routing table information and  status of SYN flag being set
  25.  
  26. COMPILATION
  27. ------------
  28. The source code for the os2ioctl sample can be compiled using the
  29. given makefile
  30.  
  31. nmake /a
  32.  
  33. EXECUTION
  34. ---------
  35. Before execution of os2ioctl.exe the SYN flag information should be saved.
  36. After execution of this sample program;
  37.  
  38. * the SYN flag is set to 1
  39. * the routing table information is displayed
  40.