#!/bin/bash -x
#stupid traffic shaping for transit interfaces
#just split the line between active connections.

divisor=10
hashtype=dst
flows=128


FACE=$1

[ -r /etc/qos/qos-$FACE ] && . /etc/qos/qos-$FACE

TC=`which tc`
$TC qdisc add dev $FACE parent 1:4 handle 2: esfq perturb 10 divisor $divisor hash $hashtype depth $flows

