From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Thu, 24 Nov 2016 23:29:16 +0000 Subject: Re: How to classify a port range? Message-Id: <583777CC.8020207@gmail.com> List-Id: References: <2cc58282-00cf-0fb5-9583-3ebc86f7eedd@itlabs.bg> In-Reply-To: <2cc58282-00cf-0fb5-9583-3ebc86f7eedd@itlabs.bg> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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