blob: 5f03a7295ded5c3a68c8974cd00fbadcd86db370 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
# This script start netmap pkt-gen on two interfaces, one used to transmit and
# the other to receive; the output of pkt-gen is saved in files to be parsed and
# passed to common/scripts/min_max_avg_parse.py
# Sample command: start-pkt-gen.sh eth0 eth1 tx.out rx.out
# where eth0 is used to send packets and eth1 to receive
test $# -lt 4 && echo "Please pass interfaces and rx and tx output files" && exit 1
netmap/examples/pkt-gen -i $1 -f tx -l 64 &> $2 &
sleep 4
netmap/examples/pkt-gen -i $3 -f rx &> $4 &
|