Re: How to classify a port range?
Andy Furniss <[email protected]>
| Newsgroups | org.kernel.vger.lartc |
|---|---|
| Message-ID | <[email protected]> |
Yassen Damyanov wrote: > Hello LARTC guys, > > I am working on an OSS Python wrapper library intended to help with > expressing a traffic control structure as a tree of Python objects. This > structure should later be able to represent itself as a series of tc > commands. (Your suggestions for getting this thing useful would be > invaluable.) > > I have questions, inevitably. Currently heaviest part seems to be the > issue of classifying a set of tcp or udp ports to get shaped under a > common rate limit. (I need to later simulate packet loss for flows on > these ports, but first things first.) > > Can you help me get on the right direction here? Using u32 seems > daunting for this particular case. Is there another way to do the match? > > I've read the relevant parts of the LARTC HowTo and couple more > documents but still cannot get it right. > > Any help would be much appreciated! > Thanks in advance, > Yassen D. > I've never used ematch so don't know if this is correct or not, but - http://serverfault.com/questions/231880/how-to-match-port-range-using-u32-filter