NetBSD/sys/net
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
..
agr make agr headers include lock.h and queue.h by themselves. 2006-10-29 22:14:14 +00:00
Makefile Install <net/if_pflog.h>. 2007-01-13 14:13:53 +00:00
bpf.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
bpf.h
bpf_filter.c Use be16dec() and be32dec() instead of reimplementing them. 2007-01-27 07:16:01 +00:00
bpfdesc.h
bridgestp.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
bsd-comp.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
dlt.h
ethertypes.h
files.pf
if.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_arc.h
if_arcsubr.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_arp.h
if_atm.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_atmsubr.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_bridge.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_bridgevar.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_dl.h
if_eco.h
if_ecosubr.c
if_ether.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_etherip.c Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
if_etherip.h Introduce new helper functions to abstract the route caching. 2006-12-15 21:18:52 +00:00
if_ethersubr.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_faith.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_faith.h
if_fddi.h
if_fddisubr.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_gif.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_gif.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_gre.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_gre.h Mark some shared variables as volatile. 2007-01-26 03:01:32 +00:00
if_hippi.h
if_hippisubr.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_ieee1394.h
if_ieee1394subr.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_llc.h define some more magic LLC constants 2006-12-10 11:35:36 +00:00
if_loop.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_media.c
if_media.h
if_ppp.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_ppp.h
if_pppoe.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
if_pppoe.h
if_pppvar.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_sl.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_slvar.h
if_sppp.h
if_spppsubr.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_spppvar.h
if_srt.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_srt.h Add RCS Id. 2006-12-29 10:39:59 +00:00
if_stf.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_stf.h
if_strip.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_stripvar.h
if_tap.c The change I committed to etherip was wrong. ether_snprintf doesn't make 2006-11-24 01:04:30 +00:00
if_tap.h
if_token.h
if_tokensubr.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_tun.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
if_tun.h
if_types.h
if_vlan.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
if_vlanvar.h
net_osdep.h Consistent usage of KAUTH_GENERIC_ISSUSER. 2007-01-04 19:07:03 +00:00
netisr.h
netisr_dispatch.h
pfil.c
pfil.h
pfkeyv2.h
ppp-comp.h
ppp-deflate.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
ppp_defs.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
ppp_tty.c Consistent usage of KAUTH_GENERIC_ISSUSER. 2007-01-04 19:07:03 +00:00
radix.c Clean this code up some. 2007-02-17 07:46:38 +00:00
radix.h Clean this code up some. 2007-02-17 07:46:38 +00:00
raw_cb.c
raw_cb.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
raw_usrreq.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
route.c KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
route.h KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous 2007-02-17 22:34:07 +00:00
rtsock.c make the routing socket report the right source address in RTM_GET 2006-11-13 19:16:01 +00:00
slcompress.c
slcompress.h
slip.h
zlib.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
zlib.h