#!/bin/bash

latency=30ms
bw=100mbit

if [ "$1" != "" ]; then
    latency="$1"
fi
if [ "$2" != "" ]; then
    bw="$2"
fi
./unset-networking
docker exec --privileged oram_C tc qdisc add dev eth0 root netem delay $latency rate $bw
docker exec --privileged oram_D tc qdisc add dev eth0 root netem delay $latency rate $bw
docker exec --privileged oram_E tc qdisc add dev eth0 root netem delay $latency rate $bw
