Skip to content

Latest commit

 

History

History
executable file
·
22 lines (19 loc) · 843 Bytes

How2BuildLibPcap.md

File metadata and controls

executable file
·
22 lines (19 loc) · 843 Bytes

Abstract

This page will describe how to build a libpcap.
I also uploaded the latest 1.8.1 release files under directory libpcapfiles for you to test quickly

Linux

wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz
tar -xvzf libpcap-1.8.1.tar.gz
yum install flex bison
./configure
make
Then the file is libpcap.so.1.8.1 under same directory, rename this to libpcap.so or libpcap64.so

Windows

For windows, I used the npcap to do the lower layer packet sending and process. Download those libs from https://nmap.org/npcap/ sdk files.

MacOS

wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz
tar -xvzf libpcap-1.8.1.tar.gz
./configure
make
Then the file is libpcap.1.8.1.dylib under same directory