"docs/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "1ffcc924bc4193ade6d91d5945c9803e87062a78"
Commit ebdbd3b0 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: add option to pass pcap file for net_wire

parent 5134bdd4
...@@ -159,10 +159,17 @@ run_i40e_bm() { ...@@ -159,10 +159,17 @@ run_i40e_bm() {
# - Instance name # - Instance name
# - sim instance 1 # - sim instance 1
# - sim instance 2 # - sim instance 2
# - [optional: pcap filename]
run_wire() { run_wire() {
echo Starting wire $1 echo Starting wire $1
if [ -z "$4" ]; then
pcap=
else
pcap="$OUTDIR/$4.pcap"
fi
$EHSIM_BASE/net_wire/net_wire \ $EHSIM_BASE/net_wire/net_wire \
$OUTDIR/eth.$2 $OUTDIR/eth.$3 &>$OUTDIR/wire.$1.log & $OUTDIR/eth.$2 $OUTDIR/eth.$3 $pcap &>$OUTDIR/wire.$1.log &
pid=$! pid=$!
ALL_PIDS="$ALL_PIDS $pid" ALL_PIDS="$ALL_PIDS $pid"
return $pid return $pid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment