NetBSD/sys/net
dyoung c5d5f7697a Make ifconfig(8) set and display preference numbers for IPv6
addresses.  Make the kernel support SIOC[SG]IFADDRPREF for IPv6
interface addresses.

In in6ifa_ifpforlinklocal(), consult preference numbers before
making an otherwise arbitrary choice of in6_ifaddr.  Otherwise,
preference numbers are *not* consulted by the kernel, but that will
be rather easy for somebody with a little bit of free time to fix.

Please note that setting the preference number for a link-local
IPv6 address does not work right, yet, but that ought to be fixed
soon.

In support of the changes above,

1 Add a method to struct domain for "externalizing" a sockaddr, and
  provide an implementation for IPv6.  Expect more work in this area: it
  may be more proper to say that the IPv6 implementation "internalizes"
  a sockaddr.  Add sockaddr_externalize().

2 Add a subroutine, sofamily(), that returns a struct socket's address
  family or AF_UNSPEC.

3 Make a lot of IPv4-specific code generic, and move it from
  sys/netinet/ to sys/net/ for re-use by IPv6 parts of the kernel and
  ifconfig(8).
2009-09-11 22:06:29 +00:00
..
agr comment style. no functional change. 2009-06-09 22:21:54 +00:00
bpf_filter.c As the scratch memory is only ever copied to or from A and X, make it 2008-08-20 13:01:54 +00:00
bpf.c Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did. 2009-04-11 23:05:26 +00:00
bpf.h restore binary compatibility on 64 bit systems. 2009-01-13 19:10:52 +00:00
bpfdesc.h Fix PR/37878 and PR/37550: Provide stat(2) for all devices and don't use 2009-04-11 15:47:33 +00:00
bridgestp.c Fix multiple problems: 2009-01-18 10:28:55 +00:00
bsd-comp.c Fix handling of ppp compressor modules, from Andrew Doran's input. 2008-11-29 23:15:20 +00:00
dlt.h
ethertypes.h
files.pf merge yamt-pf42 branch. 2008-06-18 09:06:25 +00:00
if_arc.h s/u_\(int[0-9]*_t\)/u\1/g 2008-02-20 17:05:52 +00:00
if_arcsubr.c *** Summary *** 2008-11-07 00:20:01 +00:00
if_arp.h Make ARP stats per-cpu. 2008-04-15 15:17:54 +00:00
if_atm.h s/u_\(int[0-9]*_t\)/u\1/g 2008-02-20 17:05:52 +00:00
if_atmsubr.c Remove extra whitespace added by a stupid tool. 2009-04-18 14:58:02 +00:00
if_bridge.c fix crash in bridge_ioctl(): 2009-05-17 11:34:21 +00:00
if_bridgevar.h Fix for if_start() and pfil_hook() being called from hardware interrupt 2009-04-04 10:00:23 +00:00
if_dl.h Revert change of char to int8_t. 2008-02-20 17:18:11 +00:00
if_eco.h s/u_\(int[0-9]*_t\)/u\1/g 2008-02-20 17:05:52 +00:00
if_ecosubr.c bzero -> memset 2009-03-18 16:00:08 +00:00
if_ether.h bcmp -> memcmp 2009-03-18 15:14:29 +00:00
if_etherip.c bcmp -> memcmp 2009-03-18 15:14:29 +00:00
if_etherip.h Remove LKMs and switch to the module framework, pass 1. 2008-11-12 12:35:50 +00:00
if_ethersubr.c Add vlan support and hardware offload capabilities to agr. 2009-05-29 04:57:04 +00:00
if_faith.c *** Summary *** 2008-11-07 00:20:01 +00:00
if_faith.h
if_fddi.h
if_fddisubr.c *** Summary *** 2008-11-07 00:20:01 +00:00
if_gif.c *** Summary *** 2008-11-07 00:20:01 +00:00
if_gif.h Remove LKMs and switch to the module framework, pass 1. 2008-11-12 12:35:50 +00:00
if_gre.c Add a direction argument to socket upcalls, so they can tell why they've 2009-09-02 14:56:57 +00:00
if_gre.h Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h 2008-09-08 23:36:53 +00:00
if_hippi.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_hippisubr.c Remove extra whitespace added by a stupid tool. 2009-04-18 14:58:02 +00:00
if_ieee1394.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_ieee1394subr.c *** Summary *** 2008-11-07 00:20:01 +00:00
if_llc.h Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h 2008-09-08 23:36:53 +00:00
if_loop.c *** Summary *** 2008-11-07 00:20:01 +00:00
if_media.c - Add more definitions from FreeBSD 2008-06-15 16:33:58 +00:00
if_media.h Add 1000BASE-BX10. 2009-08-12 11:17:17 +00:00
if_ppp.c Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive 2009-04-15 20:44:24 +00:00
if_ppp.h Fix handling of ppp compressor modules, from Andrew Doran's input. 2008-11-29 23:15:20 +00:00
if_pppoe.c PR/40690: Jordan Gordeev: pppoe(4) doesn't work when PPPoE relays are present 2009-02-19 15:17:50 +00:00
if_pppoe.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_pppvar.h s/u_\(int[0-9]*_t\)/u\1/g 2008-02-20 17:05:52 +00:00
if_sl.c Introduce actions/requests to handle authorization for ppp(4), sl(4), 2009-05-07 18:01:56 +00:00
if_slvar.h
if_sppp.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_spppsubr.c Remove extra whitespace added by a stupid tool. 2009-04-18 14:58:02 +00:00
if_spppvar.h Backout previous/restore initial fix for PR kern/39280. 2008-08-22 12:13:18 +00:00
if_srt.c bzero -> memset 2009-03-18 16:00:08 +00:00
if_srt.h
if_stf.c Remove extra whitespace added by a stupid tool. 2009-04-18 14:58:02 +00:00
if_stf.h
if_strip.c Introduce actions/requests to handle authorization for ppp(4), sl(4), 2009-05-07 18:01:56 +00:00
if_stripvar.h
if_tap.c Avoid a kernel assertion failure upstream by using FSTATE_NOTFOUND 2009-07-23 17:53:17 +00:00
if_tap.h Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
if_token.h s/u_\(int[0-9]*_t\)/u\1/g 2008-02-20 17:05:52 +00:00
if_tokensubr.c Remove extra whitespace added by a stupid tool. 2009-04-18 14:58:02 +00:00
if_tun.c Add and use a network scope action/request for tun(4), similar to ppp(4), 2009-05-08 11:09:43 +00:00
if_tun.h Network protocol interrupts can now block on locks, so merge the globals 2008-04-24 15:35:27 +00:00
if_types.h
if_vlan.c Also inherit the parent's TCP segmentation offload capability. 2009-04-01 22:56:59 +00:00
if_vlanvar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if.c Make ifconfig(8) set and display preference numbers for IPv6 2009-09-11 22:06:29 +00:00
if.h Make ifconfig(8) set and display preference numbers for IPv6 2009-09-11 22:06:29 +00:00
link_proto.c *** Summary *** 2008-11-07 00:20:01 +00:00
Makefile No need to include bsd.subdir.mk as bsd.kinc.mk already includes it. 2009-05-30 09:04:35 +00:00
net_osdep.h Provide privilege checking code snippets for all significant NetBSD 2009-05-06 22:17:41 +00:00
net_stats.c Simplify the interface to netstat_sysctl() and allocate space for 2008-05-04 07:22:14 +00:00
net_stats.h Simplify the interface to netstat_sysctl() and allocate space for 2008-05-04 07:22:14 +00:00
netisr_dispatch.h
netisr.h Remove LKMs and switch to the module framework, pass 1. 2008-11-12 12:35:50 +00:00
pfil.c Cosmetic: use LIST_FOREACH(). Join lines. 2008-06-23 03:13:12 +00:00
pfil.h remove clause #3 from my license where there are no other 2008-05-29 14:51:25 +00:00
pfkeyv2.h s/u_\(int[0-9]*_t\)/u\1/g 2008-02-20 17:05:52 +00:00
ppp_defs.h s/u_\(int[0-9]*_t\)/u\1/g 2008-02-20 17:05:52 +00:00
ppp_tty.c Introduce actions/requests to handle authorization for ppp(4), sl(4), 2009-05-07 18:01:56 +00:00
ppp-comp.h Fix handling of ppp compressor modules, from Andrew Doran's input. 2008-11-29 23:15:20 +00:00
ppp-deflate.c kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
radix.c Make it possible to register delayed radix tree head inits which 2009-05-27 17:46:49 +00:00
radix.h Make it possible to register delayed radix tree head inits which 2009-05-27 17:46:49 +00:00
raw_cb.c Remove the pcb from the rawcb list before sofree'ing it. 2008-08-04 06:19:35 +00:00
raw_cb.h
raw_usrreq.c Delete local variable 'sockets', whose value is never used. Reported 2008-05-29 17:26:56 +00:00
route.c Centralize the ROUNDUP and ADVANCE macro in a header file, give them an 2009-04-02 21:02:06 +00:00
route.h Centralize the ROUNDUP and ADVANCE macro in a header file, give them an 2009-04-02 21:02:06 +00:00
rtsock.c Centralize the ROUNDUP and ADVANCE macro in a header file, give them an 2009-04-02 21:02:06 +00:00
slcompress.c Use memcmp(9) and memcpy(9) directly rather than via 2009-04-18 15:20:06 +00:00
slcompress.h s/u_\(int[0-9]*_t\)/u\1/g 2008-02-20 17:05:52 +00:00
slip.h
zlib.c Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
zlib.h Fixes PR kern/41069 and PR kern/41070. 2009-03-25 01:26:12 +00:00