lkml.org 
[lkml]   [1999]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Problems with 2.2.x IP routing etc.
Date
Hello!

> No, but "ip route replace" does a create or change which works when,
> for instance, a different window is specified. I was just hoping
> that the metric on an existing route could be changed as easily :-(.

Operation "replace" is completely orthogonal not only to metric,
but to old Linux routing table structure. It is borrowed from 4.4BSD
to make gated and another routing daemons happy.

In 4.4BSD there is no place for metric, it can have single
route to given destination/mask. Particualrly, it means that
using metric and multiple routes to one destination is impossible
with dynamic routing with existing software. There are very good reason
to it --- space. Kernel needs only active route, and passive ones
must be stored in some another place.

Seems, you have already undestood difference between KEY and ATTRIBUTE.
Key affects position in routing table and, hence, lookup order.
Attributes are attached to a key, identified by this key,
and may be changed by "replace". If metric is key, then we cannot change it,
if it is attribute, than it cannot affect location in routing table
(and, hence, completely useless)

Alexey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.070 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site