// esfq-example1.tcng (compile by tcc or tcng) // // This is just example, value for ESFQ might be senseless here !!! // // dev eth0 { egress { /* class selection */ class ( < $ssh > ) if tcp_dport == 22 || tcp_sport == 22; class ( < $other > ) if 1 ; /* configure qdiscs and classes */ htb() { class ( rate 512kbps, ceil 512kbps, tag "INET" ) { $ssh = class ( rate 128kbps, ceil 512kbps, prio 3, tag "SSH" ) { esfq ( depth 2, divisor 13, hashtype "src"); } $other = class ( ceil 512kbps, prio 7, tag "-OTHER-" ) { sfq; } } } } }