From: Thomas Graf Date: Wed, 06 Oct 2004 15:48:51 +0000 Subject: Re: [LARTC] traffic conditioning in mobile ad hoc network Message-Id: <20041006154851.GB17986@postel.suug.ch> List-Id: References: <41640FDE.8030608@netlab.nec.de> In-Reply-To: <41640FDE.8030608@netlab.nec.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > I need is to install a filter which selects packets by specific code > points in the header for a DiffServ like approach. > How to make LARTC u32 classifier work without ip protocol / with > different protocol? Set protocol to a valid ETH_P_* protocol number you want or "all" to match all protocols. The generic offset definitions u(8|16|32) are not dependant on any protocol. u8 at 0 points to the first octet at the first payload header which some people call layer 3. u16 at 2 would be a 16bit chunk starting at the 3rd octet and so on. u8 at nexthdr+0 is the first octet at the next-header layer which some people call layer 4. You can theortically get to lower layers by specifying negative offsets. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/