NetBSD/sys/netns
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
..
Makefile
idp.h
idp_usrreq.c Remove register declarations. 2000-03-30 12:51:13 +00:00
idp_var.h
ns.c Remove register declarations. 2000-03-30 12:51:13 +00:00
ns.h remove unused macro. 2000-04-10 02:19:29 +00:00
ns_cksum.c Remove register declarations. 2000-03-30 12:51:13 +00:00
ns_error.c Remove register declarations. 2000-03-30 12:51:13 +00:00
ns_error.h
ns_if.h
ns_input.c Remove register declarations. 2000-03-30 12:51:13 +00:00
ns_ip.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
ns_output.c Remove register declarations. 2000-03-30 12:51:13 +00:00
ns_pcb.c Remove register declarations. 2000-03-30 12:51:13 +00:00
ns_pcb.h
ns_proto.c
ns_var.h PRU_PURGEADDR -> PRU_PURGEIF, per a discussion w/ itojun. In the IPv4 2000-02-02 23:28:08 +00:00
sp.h
spidp.h
spp_debug.c
spp_debug.h
spp_timer.h
spp_usrreq.c Remove register declarations. 2000-03-30 12:51:13 +00:00
spp_var.h