[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <18970.41199.241372.614981@robur.slu.se>
Date: Mon, 25 May 2009 15:45:19 +0200
From: Robert Olsson <robert@...ur.slu.se>
To: David Shwatrz <dshwatrz@...il.com>
Cc: netdev@...r.kernel.org, Robert.Olsson@...a.slu.se
Subject: lookup in fib tables with NETLINK_FIB_LOOKUP
David Shwatrz writes:
> I would appreciate if someone can write a short and brief explanation about
> the usage of NETLINK_FIB_LOOKUP. It enables to perform a fib_lookup()
> via netlink.
It is/was for verifying the route selection process from userland via netlink.
This was added when fib_trie was introduced and in this case we're comparing
NETLINK_FIB_LOOKUP result with a userland program doing longest prefix match
on the same routing table.
> What's is its usage ? Are there any user space tools which use it ?
Not what I'm aware of. We did a test program..
> I grepped for "NETLINK_FIB_LOOKUP" under iproute2 source code and no hit.
> Is there any difference between performing a lookup in the routing
> tables (as "ip route ...")
> and performing a lookup with NETLINK_FIB_LOOKUP?
iproute normally dumps the table, it doesn't look up a particular route
as done via the RX softirq.
Cheers
--ro
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists