Re: metric for a route

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article <200103131422.TAA02039@hps14.sasi.com> you wrote:
>        I am trying to locate where the metric for a route is maintained. I             
>        could not find it in struct rtable and struct dstentry.

It is set by rtentry.rt_metric from usermode with ol style SIOCADDRT  and
stored in the FIB:

struct kern_rta.rta_priority

See fib_semantics in kernel-2.4.x/net/ipv4/

Greetings
Bernd
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux