Skip to content

Commit

Permalink
chore(build): Add --disable-rdma flag to libpcap build configuration (#…
Browse files Browse the repository at this point in the history
…225)

* chore(build): Add --disable-rdma flag to libpcap build configuration

* increase timeout when test running with docker
  • Loading branch information
mozillazg authored Jan 17, 2025
1 parent 4884ace commit c2bdce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $(LIBPCAP_OBJ): $(LIBPCAP_SRC)/pcap.h $(wildcard $(LIBPCAP_SRC)/*.[ch]) | $(LIBP
cd $(LIBPCAP_SRC) && \
sh autogen.sh && \
CC=$(LIBPCAP_CC) ./configure --disable-shared --disable-usb --disable-netmap --disable-bluetooth --disable-dbus --without-libnl \
--host=$(LIBPCAP_ARCH) && \
--disable-rdma --host=$(LIBPCAP_ARCH) && \
$(MAKE) && \
$(MAKE) install prefix=$(LIBPCAP_DIST_DIR)

Expand Down
2 changes: 1 addition & 1 deletion testdata/test_run_with_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export TMP="/tmp/"


function test_ptcpdump() {
timeout 30s ${CMD} -c 1 -v -i any --print -w "${FNAME}" \
timeout 60s ${CMD} -c 1 -v -i any --print -w "${FNAME}" \
'dst host 1.1.1.1 and tcp[tcpflags] = tcp-syn' | tee "${LNAME}" &
sleep 10
curl -m 10 1.1.1.1 &>/dev/null || true
Expand Down

0 comments on commit c2bdce9

Please sign in to comment.