NetBSD/sys/arch
thorpej fc5dafc79b Fix a rather annoying problem where the sockaddr_dl which holds
the link level name for the interface (ifp->if_sadl) is allocated
before ifp->if_addrlen is initialized, which could lead to allocating
too little space for the link level address.

Do this by splitting allocation of the link level name out of
if_attach() and into if_alloc_sadl(), which is normally called
by functions like ether_ifattach().  Network interfaces which
don't have a link-specific attach routine must call if_alloc_sadl()
themselves (example: gif).

Link level names are freed by if_free_sadl(), which can be called
from e.g. ether_ifdetach().  Drivers never need call if_free_sadl()
themselves as if_detach() will do it if it is not already done.

While here, add the ability to pass an AF_LINK address to
SIOCSIFADDR in ether_ioctl() (this is what caused me to notice
the problem that the above fixes).
2001-01-17 00:30:49 +00:00
..
alpha Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
amiga Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
amigappc Make softclock a generic soft interrupt of the API is available, 2001-01-15 20:19:50 +00:00
arc Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
arm Move <machine/signal.h> into shared directory. 2001-01-13 17:02:36 +00:00
arm26 Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
arm32 Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
atari Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
bebox Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
cobalt Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
dreamcast Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
evbsh3 Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
hp300 Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
hpcmips Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
i386 Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
luna68k Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
m68k Make this actually sort-of-work for 68060 w. disabled FPU (tested), 68LC060, 2001-01-05 19:54:30 +00:00
mac68k Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
macppc Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
mips New syscall entry implementation based on the Alpha version 2001-01-16 06:01:26 +00:00
mipsco Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
mmeye Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
mvme68k Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
news68k Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
newsmips Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
next68k Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
ofppc Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
pc532 Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
pmax Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
powerpc Make softclock a generic soft interrupt of the API is available, 2001-01-15 20:19:50 +00:00
prep Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
sgimips Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
sh3 Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
sparc Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
sparc64 Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
sun3 Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
vax Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
x68k Add machdep file for procfs. Currently only used for linux-style 2001-01-17 00:07:18 +00:00
Makefile Descend into the arm directory on arm26 and arm32. 2001-01-10 18:23:47 +00:00