route: Add rtsearch_global(), which is used to fix RTM_CHANGE support.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 31 Jan 2009 09:54:12 +0000 (17:54 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 17 Feb 2009 10:35:52 +0000 (18:35 +0800)
commit2c62ae3ba8af3c0b97dd866d826d5047d60f1d63
treebc24e19ff23d7f4764fddf0f2a90851c3d59b297
parentfb41af81e547a3522c9ebb02c259836b2fab6120
route: Add rtsearch_global(), which is used to fix RTM_CHANGE support.

rtsearch_global() forwards a netmsg to each CPUs.  On each CPU, it
uses radix tree lookup function to locate the requested route, if the
route is found, then call the passed in callback.  The callback could
return error thus terminate the message forwarding.  If the requested
route was not found on any of the CPUs, then ESRCH is replied on the
last CPU.
sys/net/route.c
sys/net/route.h
sys/net/rtsock.c