README.Win32 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Under Win32, libpcap is integrated in the WinPcap packet capture system.
  2. WinPcap provides a framework that allows libpcap to capture the packets
  3. under Windows 95, Windows 98, Windows ME, Windows NT 4, Windows 2000
  4. and Windows XP.
  5. WinPcap binaries and source code can be found at http://winpcap.polito.it:
  6. they include also a developer's pack with all the necessary to compile
  7. libpcap-based applications under Windows.
  8. How to compile libpcap with Visual Studio
  9. -----------------------------------------
  10. In order to compile libpcap you will need:
  11. - version 6 (or higher) of Microsoft Visual Studio
  12. - The November 2001 (or later) edition of Microsoft Platform
  13. Software Development Kit (SDK), that contains some necessary includes
  14. for IPv6 support. You can download it from http://www.microsoft.com/sdk
  15. - the latest WinPcap sources from http://winpcap.polito.it/install
  16. The WinPcap source code already contains a recent (usually the latest
  17. stable) version of libpcap. If you need to compile a different one,
  18. simply download it from www.tcpdump.org and copy the sources in the
  19. winpcap\wpcap\libpcap folder of the WinPcap distribution. If you want to
  20. compile a libpcap source retrieved from the tcpdump.org Git, you will
  21. have to create the scanner and the grammar by hand (with lex and yacc)
  22. or with the cygnus makefile, since The Visual Studio project is not able
  23. to build them.
  24. Open the project file winpcap\wpcap\prj\wpcap.dsw with Visual Studio and
  25. build wpcap.dll. wpcap.lib, the library file to link with the applications,
  26. will be generated in winpcap\wpcap\lib\. wpcap.dll will be generated in
  27. winpcap\wpcap\prj\release or winpcap\wpcap\prj\debug depending on the type
  28. of binary that is being created.
  29. How to compile libpcap with Cygnus
  30. ----------------------------------
  31. To build wpcap.dll, cd to the directory WPCAP/PRJ of the WinPcap source code
  32. distribution and type "make". libwpcap.a, the library file to link with the
  33. applications, will be generated in winpcap\wpcap\lib\. wpcap.dll will be
  34. generated in winpcap\wpcap\prj.
  35. Remember, you CANNOT use the MSVC-generated .lib files with gcc, use
  36. libwpcap.a instead.
  37. "make install" installs wpcap.dll in the Windows system folder.