(This is some notes I'm jotting down while I'm working on this, I intend to come back and clean this up later)
http://lists.openwall.net/netdev/2007/08/15/65
http://lwn.net/Articles/119536/ifup dummy0 tc filter add dev $DEV parent ffff: protocol ip <i>filter-rule</i> flowid 1:2 action mirred egress mirror dev dummy0 tcpdump -i dummy0
http://www.docum.org/docum.org/faq/cache/31.html
refTo match PPPoE discovery ethertype:
$TC filter add dev $DEV \
pref 10 parent $Q_ROOT: \
protocol all \
basic match "cmp(u16 at 12 layer 2 eq $ETH_P_PPPOED)" \
flowid $Q_ROOT:$C_PPPoE
tc qdisc add dev $DEV \
root handle 1: \
sfq
tc filter add dev $DEV \
pref 1 parent 1:1 handle 100 \
protocol all \
flow hash keys dst divisor 1024
This will be fair across all destination IP addresses. We have a set of patches to allow this across src/dst mac addresses.
Some barely documented, but useful help commands:
No page links to TrafficControl.