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