From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lakeland Subject: BUG REPORT: iproute2 seems to have bug with dsfield/tos in ip-rule and ip-route Date: Wed, 13 Dec 2017 09:40:08 -0800 Message-ID: <9e606c3b-915c-2608-c8aa-aa3167f51f8d@street-artists.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: netdev@vger.kernel.org Return-path: Received: from hapkido.dreamhost.com ([66.33.216.122]:39537 "EHLO hapkido.dreamhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753144AbdLMRkJ (ORCPT ); Wed, 13 Dec 2017 12:40:09 -0500 Received: from homiemail-a21.g.dreamhost.com (sub3.mail.dreamhost.com [69.163.253.7]) by hapkido.dreamhost.com (Postfix) with ESMTP id A62409851E for ; Wed, 13 Dec 2017 09:40:09 -0800 (PST) Received: from homiemail-a21.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTP id 6262A1C0066 for ; Wed, 13 Dec 2017 09:40:09 -0800 (PST) Received: from [IPv6:2600:1700:4810:877f::b] (23-114-244-112.lightspeed.irvnca.sbcglobal.net [23.114.244.112]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: dlakelan@endpointcomputing.com) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTPSA id 599271C0064 for ; Wed, 13 Dec 2017 09:40:09 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: This same problem as detailed here http://lists.openwall.net/netdev/2010/03/26/36 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