From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from uplift.swm.pp.se (ipv6.swm.pp.se [IPv6:2a00:801::f]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by huchra.bufferbloat.net (Postfix) with ESMTPS id 89827201ACC; Thu, 2 May 2013 22:01:50 -0700 (PDT) Received: by uplift.swm.pp.se (Postfix, from userid 501) id B14D29E; Fri, 3 May 2013 07:01:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by uplift.swm.pp.se (Postfix) with ESMTP id A5F049A; Fri, 3 May 2013 07:01:48 +0200 (CEST) Date: Fri, 3 May 2013 07:01:48 +0200 (CEST) From: Mikael Abrahamsson To: Dave Taht In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) Organization: People's Front Against WWW MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Jonathan Morton , bloat-devel , cerowrt-devel@lists.bufferbloat.net Subject: Re: [Cerowrt-devel] optimizing for very small bandwidths with fq_codel better? X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2013 05:01:50 -0000 On Thu, 2 May 2013, Dave Taht wrote: > 1) I think there's a bug in either the kernel or tc or me on tos matching, Taking a guess here... The TOS byte is 8 bytes. So EF is 46, which is 0x2e, and then you need to left-shift it 2 bits because it's the most significant 6 bits, you get 0xb8 (if my early morning pre-breakfast hex calculations are correct). Try matching on that and see if it works. Some programs use the whole TOS byte, some just do the 6 DSCP bits. I usually end up using tcpdump to see on the wire what the program actually does. -- Mikael Abrahamsson email: swmike@swm.pp.se