All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Lakeland <dlakelan@street-artists.org>
To: netdev@vger.kernel.org
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	[thread overview]
Message-ID: <9e606c3b-915c-2608-c8aa-aa3167f51f8d@street-artists.org> (raw)

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

             reply	other threads:[~2017-12-13 17:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-13 17:40 Daniel Lakeland [this message]
2017-12-13 18:12 ` BUG REPORT: iproute2 seems to have bug with dsfield/tos in ip-rule and ip-route Stephen Hemminger
2017-12-13 18:33   ` Daniel Lakeland
2017-12-13 19:05   ` Daniel Lakeland
2017-12-13 22:40     ` David Ahern
2017-12-13 22:52       ` Daniel Lakeland
2017-12-13 23:05         ` David Ahern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9e606c3b-915c-2608-c8aa-aa3167f51f8d@street-artists.org \
    --to=dlakelan@street-artists.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.