Re: metric for a route

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

 



Hi
	Thanks for the information.

> >        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/

fib_priority in struct fib_info holds the metric information. I need the
metric value at the time of routing decision. Are there any issues
involved if rtable holds the copy of fib_priority?

> 
> Greetings
> Bernd

manojs
-
: 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