home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / tcpiptk / sysctl / readme next >
Text File  |  1999-05-11  |  773b  |  32 lines

  1. SYSCTL
  2. ------
  3. The sysctl() call performs special operations on the TCP/IP stack.  Unlike
  4. getsockopt() or setsockopt(), sysctl() accesses and modifies systemwide
  5. parameter values for the entire TCP/IP stack
  6.  
  7. SAMPLES FOR SYSCTL
  8. ------------------
  9.  
  10. There is one file  named:
  11.  
  12. Sysctl.c
  13.  
  14. for explainig sysctl calls. This sample program sets the ipgate 1 and then back
  15. to 0 This can be verified using
  16.  
  17. inetcfg -g ipforward
  18.  
  19. which shows the status of ipgate flag being reset back to 0.
  20.  
  21. COMPILATION
  22. ------------
  23. The source code for the sysctl sample can be compiled using the
  24. given makefile
  25.  
  26. nmake /a
  27.  
  28. EXECUTION
  29. ---------
  30. Execution of sysctl.exe shows the initial value of ipgate and then sets it to
  31. 1 and then it resets back to the original value.
  32.