minix/external/bsd/libpcap/dist
2025-05-30 21:56:02 -07:00
..
bpf/net
ChmodBPF
lbl
missing
msdos
pcap
SUNOS4
tests
Win32
aclocal.m4
arcnet.h
atmuni31.h
bpf_dump.c
bpf_image.c
CHANGES
chmod_bpf
config.guess
config.h.in
config.sub
configure
configure.in
CREDITS
dlpisubs.c
dlpisubs.h
etherent.c
ethertype.h
fad-getad.c
fad-gifc.c
fad-glifc.c
fad-null.c
fad-sita.c
fad-win32.c
gencode.c
gencode.h
grammar.y
ieee80211.h
inet.c
install-sh
INSTALL.txt
LICENSE
llc.h
Makefile-devel-adds
Makefile.in
mkdep
nametoaddr.c
nlpid.h
optimize.c
org.tcpdump.chmod_bpf.plist
pcap_activate.3pcap
pcap_breakloop.3pcap
pcap_can_set_rfmon.3pcap
pcap_close.3pcap
pcap_compile.3pcap.in
pcap_create.3pcap
pcap_datalink_name_to_val.3pcap
pcap_datalink_val_to_name.3pcap
pcap_datalink.3pcap.in
pcap_dump_close.3pcap
pcap_dump_file.3pcap
pcap_dump_flush.3pcap
pcap_dump_ftell.3pcap
pcap_dump_open.3pcap.in
pcap_dump.3pcap
pcap_file.3pcap
pcap_fileno.3pcap
pcap_findalldevs.3pcap
pcap_freecode.3pcap
pcap_get_selectable_fd.3pcap
pcap_get_tstamp_precision.3pcap.in
pcap_geterr.3pcap
pcap_inject.3pcap
pcap_is_swapped.3pcap
pcap_lib_version.3pcap
pcap_list_datalinks.3pcap.in
pcap_list_tstamp_types.3pcap.in
pcap_lookupdev.3pcap
pcap_lookupnet.3pcap
pcap_loop.3pcap
pcap_major_version.3pcap
pcap_next_ex.3pcap
pcap_offline_filter.3pcap
pcap_open_dead.3pcap.in
pcap_open_live.3pcap
pcap_open_offline.3pcap.in
pcap_set_buffer_size.3pcap
pcap_set_datalink.3pcap
pcap_set_immediate_mode.3pcap
pcap_set_promisc.3pcap
pcap_set_rfmon.3pcap
pcap_set_snaplen.3pcap
pcap_set_timeout.3pcap
pcap_set_tstamp_precision.3pcap.in
pcap_set_tstamp_type.3pcap.in
pcap_setdirection.3pcap
pcap_setfilter.3pcap
pcap_setnonblock.3pcap
pcap_snapshot.3pcap
pcap_stats.3pcap
pcap_statustostr.3pcap
pcap_strerror.3pcap
pcap_tstamp_type_name_to_val.3pcap
pcap_tstamp_type_val_to_name.3pcap
pcap-bpf.c
pcap-bpf.h
pcap-bt-linux.c
pcap-bt-linux.h
pcap-bt-monitor-linux.c
pcap-bt-monitor-linux.h
pcap-can-linux.c
pcap-can-linux.h
pcap-canusb-linux.c
pcap-canusb-linux.h
pcap-common.c
pcap-common.h
pcap-config.1
pcap-config.in
pcap-dag.c
pcap-dag.h
pcap-dbus.c
pcap-dbus.h
pcap-dlpi.c
pcap-dos.c
pcap-dos.h
pcap-enet.c
pcap-filter.manmisc.in
pcap-int.h
pcap-libdlpi.c
pcap-linktype.manmisc.in
pcap-linux.c
pcap-namedb.h
pcap-netfilter-linux.c
pcap-netfilter-linux.h
pcap-nit.c
pcap-null.c
pcap-pf.c
pcap-savefile.manfile.in
pcap-septel.c
pcap-septel.h
pcap-sita.c
pcap-sita.h
pcap-sita.html
pcap-snf.c
pcap-snf.h
pcap-snit.c
pcap-snoop.c
pcap-stdinc.h
pcap-tstamp.manmisc.in
pcap-usb-linux.c
pcap-usb-linux.h
pcap-win32.c
pcap.3pcap.in
pcap.c
pcap.h
ppp.h
README.aix
README.dag
README.hpux
README.linux
README.macosx
README.septel
README.sita
README.tru64
README.Win32
runlex.sh
savefile.c
scanner.c.top
scanner.l
sf-pcap-ng.c
sf-pcap-ng.h
sf-pcap.c
sf-pcap.h
sunatmpos.h
TODO
VERSION

Under Win32, libpcap is integrated in the WinPcap packet capture system.
WinPcap provides a framework that allows libpcap to capture the packets
under Windows 95, Windows 98, Windows ME, Windows NT 4, Windows 2000
and Windows XP.
WinPcap binaries and source code can be found at http://winpcap.polito.it:
they include also a developer's pack with all the necessary to compile
libpcap-based applications under Windows.

How to compile libpcap with Visual Studio
-----------------------------------------

In order to compile libpcap you will need:

- version 6 (or higher) of Microsoft Visual Studio
- The November 2001 (or later) edition of Microsoft Platform
Software Development Kit (SDK), that contains some necessary includes
for IPv6 support. You can download it from http://www.microsoft.com/sdk
- the latest WinPcap sources from http://winpcap.polito.it/install

The WinPcap source code already contains a recent (usually the latest
stable) version of libpcap. If you need to compile a different one,
simply download it from www.tcpdump.org and copy the sources in the
winpcap\wpcap\libpcap folder of the WinPcap distribution. If you want to
compile a libpcap source retrieved from the tcpdump.org Git, you will
have to create the scanner and the grammar by hand (with lex and yacc)
or with the cygnus makefile, since The Visual Studio project is not able
to build them.

Open the project file winpcap\wpcap\prj\wpcap.dsw with Visual Studio and
build wpcap.dll. wpcap.lib, the library file to link with the applications,
will be generated in winpcap\wpcap\lib\. wpcap.dll will be generated in
winpcap\wpcap\prj\release or winpcap\wpcap\prj\debug depending on the type
of binary that is being created.

How to compile libpcap with Cygnus
----------------------------------

To build wpcap.dll, cd to the directory WPCAP/PRJ of the WinPcap source code
distribution and type "make". libwpcap.a, the library file to link with the
applications, will be generated in winpcap\wpcap\lib\. wpcap.dll will be
generated in winpcap\wpcap\prj.

Remember, you CANNOT use the MSVC-generated .lib files with gcc, use
libwpcap.a instead.

"make install" installs wpcap.dll in the Windows system folder.