NetBSD/sys/netinet6
christos 404d15411e This is ugly, but it is the simplest fix to avoid calling in the default
case:

    <driver>_ioctl(ifp, SIOCSIFADDR, struct ifreq *)

where it should be calling:

    <driver>_ioctl(ifp, SIOCSIFADDR, struct ifaddr *)

and "Bad Things Happen (TM)"

Returning an error is good enough because none of the drivers handle INET6.

The problem here is that handling SIOCSIFADDR is a kludge. The ioctl gets
passed a struct ifreq * from userland, but then in the control routines
SIOCSIFADDR is handled "specially", and we call:

	ifp->if_ioctl(ifp, SIOCSIFADDR, struct ifaddr *)

directly with the ifaddr we computed for that interface. It would be nice
if we called the ioctl routine if the original struct ifreq, and computed
the ifaddr, or passed it directly. This way all the ioctls would be treated
the same way, and we would not have the problem of pointer overloading.
2006-06-03 01:04:29 +00:00
..
ah_aesxcbcmac.c
ah_aesxcbcmac.h
ah_core.c
ah_input.c
ah_output.c XXX: GCC uninitialized. 2006-05-14 05:30:31 +00:00
ah.h
dest6.c
esp_aesctr.c
esp_aesctr.h
esp_core.c
esp_input.c
esp_output.c
esp_rijndael.c
esp_rijndael.h
esp.h
files.ipsec
files.netinet6 Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292). 2006-05-05 00:03:21 +00:00
frag6.c
icmp6.c Coverity CID 740: Change constant comparisons to MCLBYTES to KASSERT and remove 2006-04-15 00:24:12 +00:00
in6_cksum.c
in6_gif.c
in6_gif.h
in6_ifattach.c Integrate Common Address Redundancy Procotol (CARP) from OpenBSD 2006-05-18 09:05:49 +00:00
in6_ifattach.h NDP-related improvements: 2006-03-05 23:47:08 +00:00
in6_pcb.c integrate kauth. 2006-05-14 21:19:33 +00:00
in6_pcb.h Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292). 2006-05-05 00:03:21 +00:00
in6_proto.c Integrate Common Address Redundancy Procotol (CARP) from OpenBSD 2006-05-18 09:05:49 +00:00
in6_src.c integrate kauth. 2006-05-14 21:19:33 +00:00
in6_var.h Integrate Common Address Redundancy Procotol (CARP) from OpenBSD 2006-05-18 09:05:49 +00:00
in6.c This is ugly, but it is the simplest fix to avoid calling in the default 2006-06-03 01:04:29 +00:00
in6.h Use C99 uintXX_t types so that applications don't need to include 2006-05-07 23:41:17 +00:00
ip6_forward.c
ip6_id.c
ip6_input.c Make the mbuf writable before calling in6_clearscope(). Based on patch sent 2006-05-25 21:32:47 +00:00
ip6_mroute.c NDP-related improvements: 2006-03-05 23:47:08 +00:00
ip6_mroute.h
ip6_output.c integrate kauth. 2006-05-14 21:19:33 +00:00
ip6_var.h Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292). 2006-05-05 00:03:21 +00:00
ip6protosw.h
ipcomp_core.c
ipcomp_input.c
ipcomp_output.c
ipcomp.h
ipsec.c
ipsec.h
Makefile
mld6_var.h NDP-related improvements: 2006-03-05 23:47:08 +00:00
mld6.c Rename local variables called delay that shadow the delay() decl. 2006-03-06 20:33:52 +00:00
nd6_nbr.c Integrate Common Address Redundancy Procotol (CARP) from OpenBSD 2006-05-18 09:05:49 +00:00
nd6_rtr.c RFC 4191 changed the meaning of the "Reserved" Router Preference 2006-03-20 12:13:05 +00:00
nd6.c Integrate Common Address Redundancy Procotol (CARP) from OpenBSD 2006-05-18 09:05:49 +00:00
nd6.h NDP-related improvements: 2006-03-05 23:47:08 +00:00
pim6_var.h
pim6.h
raw_ip6.c integrate kauth. 2006-05-14 21:19:33 +00:00
raw_ip6.h
route6.c
scope6_var.h
scope6.c
udp6_output.c integrate kauth. 2006-05-14 21:19:33 +00:00
udp6_usrreq.c Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292). 2006-05-05 00:03:21 +00:00
udp6_var.h
udp6.h