Subject: Re: ip route show shows the routes in the inverse order?

From: Ben Greear <[email-masked]>
Date: Tue, 13 Mar 2012 08:37:42 -0700

On 03/12/2012 11:52 PM, David Miller wrote:
> From: Bill Fink<[email-masked]>
> 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.

The argument is ease of use by whatever human is reading the
information..but it could be done in the 'ip' tool.

Humans are fragile indeed, but it's often easier to fix the
computer than fix the humans.

Ben

-- 
Ben Greear <[email-masked]>
Candela Technologies Inc  http://www.candelatech.com