tcc can be used to generate tc traffic shaping commands. It even can compile kernel modules to classify packages (untested) svn path=/nixpkgs/trunk/; revision=14574