-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tcpdump to mx-rdma-tools and rdma-tools Docker images
- Add `install-tcpdump.sh` to build and install tcpdump and libpcap from source. Signed-off-by: lou-lan <[email protected]>
- Loading branch information
Showing
10 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2024 Authors of spidernet-io | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -x | ||
set -o xtrace | ||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
echo "build libpcap ${ENV_VERSION_LIBCAP}" | ||
echo "build tcpdump ${ENV_VERSION_TCPDUMP}" | ||
|
||
cd /tmp | ||
rm -rf * || true | ||
|
||
apt-get update | ||
apt-get install -y --no-install-recommends bison make gcc flex xz-utils | ||
|
||
wget https://www.tcpdump.org/release/${ENV_VERSION_LIBCAP}.tar.xz | ||
wget https://www.tcpdump.org/release/${ENV_VERSION_TCPDUMP}.tar.xz | ||
|
||
tar -xvf ${ENV_VERSION_LIBCAP}.tar.xz | ||
cd /tmp/${ENV_VERSION_LIBCAP} | ||
./configure | ||
make && make install | ||
|
||
tar -xvf ${ENV_VERSION_TCPDUMP}.tar.xz | ||
cd /tmp/${ENV_VERSION_TCPDUMP} | ||
./configure | ||
make && make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,6 @@ packages=( | |
hwloc | ||
libgomp1 | ||
kmod | ||
tcpdump | ||
ethtool | ||
iptables | ||
#-------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2024 Authors of spidernet-io | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -x | ||
set -o xtrace | ||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
echo "build libpcap ${ENV_VERSION_LIBCAP}" | ||
echo "build tcpdump ${ENV_VERSION_TCPDUMP}" | ||
|
||
cd /tmp | ||
rm -rf * || true | ||
|
||
apt-get update | ||
apt-get install -y --no-install-recommends bison make gcc flex xz-utils | ||
|
||
wget https://www.tcpdump.org/release/${ENV_VERSION_LIBCAP}.tar.xz | ||
wget https://www.tcpdump.org/release/${ENV_VERSION_TCPDUMP}.tar.xz | ||
|
||
tar -xvf ${ENV_VERSION_LIBCAP}.tar.xz | ||
cd /tmp/${ENV_VERSION_LIBCAP} | ||
./configure | ||
make && make install | ||
|
||
tar -xvf ${ENV_VERSION_TCPDUMP}.tar.xz | ||
cd /tmp/${ENV_VERSION_TCPDUMP} | ||
./configure | ||
make && make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,6 @@ packages=( | |
hwloc | ||
libgomp1 | ||
kmod | ||
tcpdump | ||
ethtool | ||
iptables | ||
#-------------- | ||
|