Adding a PDF manual document for users.
[pingpong.git] / vpn / run.sh
1 #!/bin/sh
2
3 # File that is to be injected by traffic
4 FILE_MAIN_PCAP=$1
5
6 # File that contains event packets that are sent from router
7 FILE_PACKETS_FROM_ROUTER=$2
8
9 # File that contains event packets that are sent to router
10 FILE_PACKETS_TO_ROUTER=$3
11
12 ./run-in-loop.sh "$FILE_PACKETS_FROM_ROUTER" &
13 ./run-in-loop.sh "$FILE_PACKETS_TO_ROUTER" &
14 tcpreplay -i eth1 -q "$FILE_MAIN_PCAP"
15 echo "==> Finished with the file $FILE_MAIN_PCAP: "
16 date +"%m/%d/%Y %r"