netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iproute2: make ip route list to search by metric too
@ 2017-11-17  0:40 Alexander Zubkov
  2017-11-18  1:44 ` Alexander Zubkov
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Zubkov @ 2017-11-17  0:40 UTC (permalink / raw)
  To: netdev

Hello all,

Currently routes in the Linux routing table have these "key" fields:
prefix, tos, table, metric (as I know). I.e. we cannot have two
different routes with the same set of this fields. And "ip route list"
command can be provided with all but one of those fields. We cannot
pass metric to it and this is inconvenient. I ask if this behaviour
can be changed by someone. We can even use "secondary" fields, for
example type, dev or via, but not metric unfortunately.
Sorry, I can not provide patches. I have written code long time ago. I
tried to trace it, but as I see it parses arguments and fills some
structures. And then my tries to understand failed.
I opened the bug: https://bugzilla.kernel.org/show_bug.cgi?id=197897,
but I was pointed out that this mailing list is a better place for
this question.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-19 16:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-17  0:40 iproute2: make ip route list to search by metric too Alexander Zubkov
2017-11-18  1:44 ` Alexander Zubkov
2017-11-18 10:11   ` Alexander Zubkov
2017-12-04 19:39     ` Alexander Zubkov
2017-12-17 12:02     ` [PATCH v3] iproute: list/flush/save filter also by metric Alexander Zubkov
2017-12-19 16:22       ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).