NetBSD/sys
joerg eb04733c4e Introduce new helper functions to abstract the route caching.
rtcache_init and rtcache_init_noclone lookup ro_dst and store
the result in ro_rt, taking care of the reference counting and
calling the domain specific route cache.
rtcache_free checks if a route was cashed and frees the reference.
rtcache_copy copies ro_dst of the given struct route, checking that
enough space is available and incrementing the reference count of the
cached rtentry if necessary.
rtcache_check validates that the cached route is still up. If it isn't,
it tries to look it up again. Afterwards ro_rt is either a valid again
or NULL.
rtcache_copy is used internally.

Adjust to callers of rtalloc/rtflush in the tree to check the sanity of
ro_dst first (if necessary). If it doesn't fit the expectations, free
the cache, otherwise check if the cached route is still valid. After
that combination, a single check for ro_rt == NULL is enough to decide
whether a new lookup needs to be done with a different ro_dst.
Make the route checking in gre stricter by repeating the loop check
after revalidation.
Remove some unused RADIX_MPATH code in in6_src.c. The logic is slightly
changed here to first validate the route and check RTF_GATEWAY
afterwards. This is sementically equivalent though.
etherip doesn't need sc_route_expire similiar to the gif changes from
dyoung@ earlier.

Based on the earlier patch from dyoung@, reviewed and discussed with
him.
2006-12-15 21:18:52 +00:00
..
altq __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
arch Fix a grammatical nit near the previous typo fix. 2006-12-12 12:03:45 +00:00
coda a smorgasbord of improvements to vnode locking and path lookup: 2006-12-09 16:11:50 +00:00
compat Part of PR/33280: Christian Ehrhardt: The call to FILE_USE should be 2006-11-25 22:03:41 +00:00
conf use -fstack-protector instead of -fstack-protector-all since this breaks 2006-12-12 21:31:58 +00:00
contrib/dev/ath __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
crypto Merge kernel and userland rmd160 and sha2 implementation. 2006-10-27 21:20:48 +00:00
ddb __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
dev explicitly set clk to 1 or 0. 2006-12-14 22:35:20 +00:00
dist Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
fs Don't return EWOULDBLOCK in case we have delivered some requests 2006-12-10 23:53:51 +00:00
gdbscripts adapt to mnt_vnodelist being TAILQ 2006-11-04 20:33:17 +00:00
ipkdb s/existance/existence/, from Zafer. 2006-11-24 22:52:16 +00:00
kern - moves 'nice' access semantics to secmodel code, 2006-12-14 11:45:08 +00:00
lib in fdloadfile(), fail if we can't read the entire exec header. 2006-12-09 22:11:36 +00:00
lkm compile puffs_transport.c 2006-12-05 23:41:46 +00:00
miscfs put ->K loaned pages on the page queue, so that page loaning doesn't 2006-12-15 13:51:30 +00:00
net Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
net80211 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
netatalk Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
netbt Here are various changes designed to protect against bad IPv4 2006-12-09 05:33:04 +00:00
netinet Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
netinet6 Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
netipsec Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
netisdn __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
netiso Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
netkey Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
netnatm
netsmb __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
nfs a smorgasbord of improvements to vnode locking and path lookup: 2006-12-09 16:11:50 +00:00
opencrypto __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
secmodel - moves 'nice' access semantics to secmodel code, 2006-12-14 11:45:08 +00:00
stand
sys oops, forgot KAUTH_PROCESS_STOPFLAG. 2006-12-14 18:27:59 +00:00
ufs several ext2fs fixes provided by Barry Bouwsma: 2006-12-09 22:07:48 +00:00
uvm put ->K loaned pages on the page queue, so that page loaning doesn't 2006-12-15 13:51:30 +00:00
Makefile don't descend to crypto. 2006-10-29 19:08:53 +00:00