Update set_delay script to configure ipfw pipes

parent 5cfd37a4
#!/bin/bash
exit 0
#exit 0
DELAY="$1"
die()
......@@ -22,8 +22,7 @@ else
DELAY_IF=$[$DELAY/2]
for IFACE in $IFACES; do
tc qdisc del dev $IFACE root 2>/dev/null
tc qdisc add dev $IFACE root netem delay ${DELAY_IF}ms || exit 1
for PIPE in 110 111; do
ipfw pipe $PIPE config delay ${DELAY_IF}ms
done
fi
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