This patch allows to use pcaprub on Windows native version of ruby.
Tested on Windows 2K/XPSP2 with WinPcap version 4.0.2.
Build environment.
1. ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
2. Visual Studio 2005 (Compiler Version 14.00.50727.762 for 80x86)
3. WinPcap Developer pack (WpdPack)version 4.0.2.
4. Patch created on cygwin with diff -r -U 3 a/ b/
To apply the patch
$ cd pcaprub
$ patch < ../winpcap_patch
To build
C:\>cd pcaprub
C:\>pcaprub> ruby extconf.rb --with-pcap-dir=<path to WpdPack>
C:\>pcaprub> nmake
C:\>pcaprub> nmake install
Did pass the test_pcap.rb test script. |