]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/fib_frontend.c
[NETLINK]: fib_lookup() via netlink
authorRobert Olsson <Robert.Olsson@data.slu.se>
Mon, 20 Jun 2005 20:36:39 +0000 (13:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jun 2005 20:36:39 +0000 (13:36 -0700)
commit246955fe4c38bd706ae30e37c64892c94213775d
tree23583698ce7c58e1643414245690afca33618540
parentf6e276ee67c0ac9efafd24bc6f7a84aa359656df
[NETLINK]: fib_lookup() via netlink

Below is a more generic patch to do fib_lookup via netlink. For others
we should say that we discussed this as a way to verify route selection.
It's also possible there are others uses for this.

In short the fist half of struct fib_result_nl is filled in by caller
and netlink call fills in the other half and returns it.

In case anyone is interested there is a corresponding user app to compare
the full routing table this was used to test implementation of the LC-trie.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h
include/net/ip_fib.h
net/ipv4/fib_frontend.c