NetBSD/sys/netiso
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
..
xebec
Makefile
README
argo_debug.h
clnl.h
clnp.h
clnp_debug.c
clnp_er.c Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
clnp_frag.c
clnp_input.c Avoid overlapping struct assignment for FDDI. Should fix netiso like in the 2006-12-10 12:34:42 +00:00
clnp_options.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
clnp_output.c KNF. 2006-12-06 00:39:56 +00:00
clnp_raw.c Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
clnp_stat.h
clnp_subr.c Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
clnp_timer.c
cltp_usrreq.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
cltp_var.h
cons.h
cons_pcb.h
eonvar.h
esis.c Check parameters to avoid potential panic root user. 2006-11-24 12:47:43 +00:00
esis.h
files.netiso
idrp_usrreq.c fix initializers 2006-08-30 15:32:23 +00:00
idrp_var.h
if_cons.c remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
if_eon.c Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
iso.c Kill some KAUTH_GENERIC_ISSUSER. 2006-10-25 23:40:57 +00:00
iso.h
iso_chksum.c
iso_errno.h
iso_pcb.c Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
iso_pcb.h
iso_proto.c Here are various changes designed to protect against bad IPv4 2006-12-09 05:33:04 +00:00
iso_snpac.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
iso_snpac.h
iso_var.h
tp.trans
tp_astring.c
tp_clnp.h
tp_cons.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
tp_driver.c
tp_emit.c remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
tp_events.h
tp_inet.c Remove superfluous parentheses. 2006-12-03 21:56:30 +00:00
tp_input.c remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
tp_ip.h
tp_iso.c Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
tp_meas.c
tp_meas.h
tp_output.c
tp_param.h
tp_pcb.c use c99 initializers 2006-09-03 06:53:08 +00:00
tp_pcb.h
tp_seq.h
tp_stat.h
tp_states.h
tp_states.init
tp_subr.c
tp_subr2.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
tp_timer.c
tp_timer.h
tp_tpdu.h
tp_trace.c
tp_trace.h
tp_user.h
tp_usrreq.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
tp_var.h

README

In case you were wondering why this code is still present:

The ISO (or OSI) stack is still in use by many router vendors (e.g., using
IS-IS the OSI equivalent of OSPF, to carry IP routes).

Chris.
chopps@NetBSD.org