From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: BUG REPORT: iproute2 seems to have bug with dsfield/tos in ip-rule and ip-route Date: Wed, 13 Dec 2017 10:12:59 -0800 Message-ID: <20171213101259.65652da6@xeon-e3> References: <9e606c3b-915c-2608-c8aa-aa3167f51f8d@street-artists.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Daniel Lakeland Return-path: Received: from mail-pg0-f49.google.com ([74.125.83.49]:35654 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753235AbdLMSND (ORCPT ); Wed, 13 Dec 2017 13:13:03 -0500 Received: by mail-pg0-f49.google.com with SMTP id q20so1566858pgv.2 for ; Wed, 13 Dec 2017 10:13:03 -0800 (PST) In-Reply-To: <9e606c3b-915c-2608-c8aa-aa3167f51f8d@street-artists.org> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 13 Dec 2017 09:40:08 -0800 Daniel Lakeland wrote: > This same problem as detailed here > > http://lists.openwall.net/netdev/2010/03/26/36 This mail reports an issue from 7 years ago, much nas changed since then. > > or here: > > https://www.spinics.net/lists/lartc/msg22541.html > > bit me today > > I tried either > > ip rule add dsfield CS6 table 100 > > or > > ip rule add dsfield 0xc0 table 100 > > or replace dsfield with tos, all return: > > RTNETLINK answers: Invalid argument > > on the other hand, for ip route it will accept the ds/tos values > > ip route add default dsfield CS6 dev dummy0 > > or > > ip route add default dsfield 0xc0 dev dummy0 > > but packets tagged with CS6 don't go to dummy0 they go the regular > default route > > The kernel is complaining that ip rule is not valid, (ie not iproute2 issue). Not sure exactly why or where in fib_rules.c this is happening.