This section explains how to compile WinPcap, both the kernel level and the user-level portion, on the various Win32 platforms. The source code can be found on the WinPcap website, at http://winpcap.polito.it/install/.
Two main NPF sources are available for compilation: the Windows NTx one and the Windows 9x one. Note that, since the NPF Driver is platform dependent, it is STRONGLY suggested to compiled it on the OS where it will be used, in order to link the correct DDK libraries. For example, if you compile the driver with the Windows NT 4 DDK, it will not work properly in Windows 2000 and vice versa, also if the source code tree is the same.
Software requirements:
If your system satisfies these requirements, follow these steps:
Warning: sometimes, during the compilation of the driver, a lot of 'last line incomplete' errors are generated. Ignore these errors and let the compilation process continue, they are due to bugs in some DDK versions.
To compile the driver there are the following software requirements:
the steps to follow are:
Warning: On some systems the NMAKE utility is not able to launch ADRC2VXD, this means that the driver binary is generated correctly, but without the copyright information. We don't know the cause of this problem.
Like for NPF, two sources are available for compilation: the Windows NTx one and the Windows 9x one. They are located in PacketNTx\dll\ and in Packet9x\dll\.
Software requirements:
To compile the PACKET.DLL, load the project contained in the directory PacketNTx\dll\project (or Packet9x\dll\project) in the Visual C++ IDE. Build the project to obtain the PACKET.DLL and packet.lib files. The first one is the actual library, the second one is the file that applications need to link in order to use the it. The debug version of these files will be generated in the directory dll\project\debug, the release version in dll\project\release.
wpcap.dll can be compiled on any Win32 platform and the generated dll is system independent.
Note that wpcap.dll contains the source code of libpcap, from www.tcpdump.org. You will be able to include and build a different libpcap version simply copying it in the directory winpcap\wpcap\prj of the WinPcap source code distribution.
System Requirement:
Project files are in the directory winpcap\wpcap\prj of the WinPcap source code distribution. Load the project from the Visual C++ 6.0 IDE and build the program. The output file wpcap.lib will be generated in winpcap\wpcap\lib\. The output dll wpcap.dll will be generated in winpcap\wpcap\prj\release or winpcap\wpcap\prj\debug depending on the type of binary that is being generated.
documentation. Copyright (c) 2002-2003 Politecnico di Torino. All rights reserved.