NetBSD/sys/arch/alpha/a12
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
..
a12dc.c Adapt to new line discipline scheme. 2000-11-02 00:26:35 +00:00
a12dcreg.h
if_ade.c Change pci_intr_map to get interrupt source information from a "struct 2000-12-28 22:59:06 +00:00
if_adevar.h Move if_ade* from alpha/pci/ to alpha/a12/ 1998-09-24 05:36:05 +00:00
if_xb.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_xb.h