NetBSD/sys/netiso
dyoung 5493f188c7 KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous
parentheses in return statements.

Cosmetic: don't open-code TAILQ_FOREACH().

Cosmetic: change types of variables to avoid oodles of casts: in
   in6_src.c, avoid casts by changing several route_in6 pointers
   to struct route pointers.  Remove unnecessary casts to caddr_t
   elsewhere.

Pave the way for eliminating address family-specific route caches:
   soon, struct route will not embed a sockaddr, but it will hold
   a reference to an external sockaddr, instead.  We will set the
   destination sockaddr using rtcache_setdst().  (I created a stub
   for it, but it isn't used anywhere, yet.)  rtcache_free() will
   free the sockaddr.  I have extracted from rtcache_free() a helper
   subroutine, rtcache_clear().  rtcache_clear() will "forget" a
   cached route, but it will not forget the destination by releasing
   the sockaddr.  I use rtcache_clear() instead of rtcache_free()
   in rtcache_update(), because rtcache_update() is not supposed
   to forget the destination.

Constify:

   1 Introduce const accessor for route->ro_dst, rtcache_getdst().

   2 Constify the 'dst' argument to ifnet->if_output().  This
     led me to constify a lot of code called by output routines.

   3 Constify the sockaddr argument to protosw->pr_ctlinput.  This
     led me to constify a lot of code called by ctlinput routines.

   4 Introduce const macros for converting from a generic sockaddr
     to family-specific sockaddrs, e.g., sockaddr_in: satocsin6,
     satocsin, et cetera.
2007-02-17 22:34:07 +00:00
..
xebec * Fixed use of fgetc() in getch(). 2007-01-18 12:43:38 +00:00
argo_debug.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
clnl.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
clnp_debug.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
clnp_er.c Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
clnp_frag.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
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 Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
clnp_subr.c KNF: compare pointers with NULL. Remove extraneous parentheses 2007-02-17 05:01:47 +00:00
clnp_timer.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
clnp.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
cltp_usrreq.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
cltp_var.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
cons_pcb.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
cons.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
eonvar.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
esis.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
esis.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
files.netiso Remove netiso/if_cons.c. It depends on x25 stuff that was removed a while 2007-01-11 00:00:41 +00:00
idrp_usrreq.c fix initializers 2006-08-30 15:32:23 +00:00
idrp_var.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
if_eon.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
iso_chksum.c Coverity CID 860: Prevent NULL deref. 2006-04-14 23:53:53 +00:00
iso_errno.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
iso_pcb.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
iso_pcb.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
iso_proto.c Here are various changes designed to protect against bad IPv4 2006-12-09 05:33:04 +00:00
iso_snpac.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
iso_snpac.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
iso_var.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
iso.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
iso.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
Makefile
README
tp_astring.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
tp_clnp.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_cons.c Remove duplicate #includes, patch contributed in private mail 2007-01-24 13:08:11 +00:00
tp_driver.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
tp_emit.c remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
tp_events.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_inet.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +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 Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_iso.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
tp_meas.c merge FreeBSD timecounters from branch simonb-timecounters 2006-06-07 22:33:33 +00:00
tp_meas.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_output.c Consistent usage of KAUTH_GENERIC_ISSUSER. 2007-01-04 19:07:03 +00:00
tp_param.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_pcb.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
tp_pcb.h Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
tp_seq.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_stat.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_states.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_states.init
tp_subr2.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
tp_subr.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
tp_timer.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
tp_timer.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_tpdu.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_trace.c Remove duplicate #includes, patch contributed in private mail 2007-01-24 13:08:11 +00:00
tp_trace.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_user.h Multiple inclusion protection, as suggested by christos@ on tech-kern@ 2005-12-11 00:01:36 +00:00
tp_usrreq.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
tp_var.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
tp.trans merge ktrace-lwp. 2005-12-11 12:16:03 +00:00

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