dis-bench / src /libpcap /prep.sh
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
524 Bytes
git clone https://github.com/the-tcpdump-group/libpcap.git
git -C libpcap checkout 17ff63e88ea99112a905eefc6f862dac20de09e1
git clone https://github.com/the-tcpdump-group/tcpdump.git tcpdump && \
git -C tcpdump checkout 032e4923e5202ea4d5a6d1cead83ed1927135874
##
cd libpcap
# build project
mkdir build
cd build
cmake -DDISABLE_DBUS=1 ..
make
# build fuzz targets
$CC $CFLAGS -I.. -c ../testprogs/fuzz/fuzz_both.c -o fuzz_both.o
$CXX $CXXFLAGS fuzz_both.o -o libpcap_fuzz_both libpcap.a $LIB_FUZZING_ENGINE -libverbs