aboutsummaryrefslogtreecommitdiffstats
path: root/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
blob: 9d51e667bd2ec6fe143abb304d0250cb06ab22b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

ROOTDIR=/tmp/openvpp-testing
PWDDIR=$(pwd)

cd ${ROOTDIR}/nsh_sfc_tests/sfc_scripts/
sudo rm -f temp_packet.pcap

sudo tcpdump -i $1 -c 1 -w temp_packet.pcap dst host $2 >/dev/null 2>&1 &

cd ${PWDDIR}