lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 12 Mar 2012 23:52:34 -0700 (PDT)
From:	David Miller <>
Subject: Re: ip route show shows the routes in the inverse order?

From: Bill Fink <>
Date: Tue, 13 Mar 2012 02:15:29 -0400

> Some scripts may depend on this plus its much more efficent that way
> if trying to find a matching route since you can quit on the first
> match instead of having to scan the entire routing table.

No script should be doing stuff like this, let the tool do it for you
via "ip route get ADDR"

There is absolutely no argument for routes to be listed in one order
or another, and anything depending upon order is extremely fragile
and needs to be fixed up anyways.

If you're trying to match something, do a real lookup, a longest
prefix match lookup.  It's the only thing that's going to be correct
all the time, no matter what.
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists