NetBSD/sys/net
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 Put the BPF DLT_* constants into their own header file so that things 2000-12-12 17:53:00 +00:00
bpf.c Fix non-blocking BPF reads, from Guy Harris, kern/11836. 2000-12-29 01:55:49 +00:00
bpf.h Use <net/dlt.h> to get the DLT_* constants. Also change bpfattach() 2000-12-12 17:55:21 +00:00
bpf_filter.c
bpfdesc.h
bsd-comp.c Don't use MALLOC() for variable-sized allocations. 2000-08-25 21:22:16 +00:00
dlt.h Put the BPF DLT_* constants into their own header file so that things 2000-12-12 17:53:00 +00:00
ethertypes.h
if.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if.h Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_arc.h
if_arcsubr.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_arp.h
if_atm.h
if_atmsubr.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_dl.h
if_ether.h Supports hardware 802.1q VLAN tagging, per discussion on tech-net. The tag is 2000-11-17 19:21:53 +00:00
if_ethersubr.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_faith.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_fddi.h
if_fddisubr.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_gif.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_gif.h
if_gre.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_gre.h Adapt to bpfattach() changes, and further centralize the bpfattach() 2000-12-12 18:00:22 +00:00
if_hippi.h
if_hippisubr.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_ieee1394.h Use DMA from mbuf instead of copy in transmit. 2000-11-20 12:12:18 +00:00
if_ieee1394subr.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_ieee80211.h Add a version of the 802.11 frame header that includes the 4th address. 2000-12-18 18:00:23 +00:00
if_llc.h
if_loop.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_media.c
if_media.h
if_ppp.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_ppp.h For SLIP/STRIP/PPP, use generic soft interrupts, if available. 2001-01-15 16:33:30 +00:00
if_pppvar.h For SLIP/STRIP/PPP, use generic soft interrupts, if available. 2001-01-15 16:33:30 +00:00
if_sl.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_slvar.h For SLIP/STRIP/PPP, use generic soft interrupts, if available. 2001-01-15 16:33:30 +00:00
if_sppp.h
if_spppsubr.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_stf.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_stf.h
if_strip.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_stripvar.h For SLIP/STRIP/PPP, use generic soft interrupts, if available. 2001-01-15 16:33:30 +00:00
if_token.h
if_tokensubr.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_tun.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
if_tun.h Adapt to bpfattach() changes, and further centralize the bpfattach() 2000-12-12 18:00:22 +00:00
if_types.h Add new numbers from IANA: 0x83 - 0xbd 2000-10-26 06:51:31 +00:00
if_vlan.c No need to reference ifnet_addrs[]. 2001-01-16 21:18:56 +00:00
if_vlanvar.h When an Ethernet interface detaches, unconfigure any VLANs associated 2000-10-03 23:50:52 +00:00
net_osdep.c
net_osdep.h - icmp6 nodeinfo: remove possibility of unaligned pointer access. 2000-08-19 08:15:53 +00:00
netisr.h For SLIP/STRIP/PPP, use generic soft interrupts, if available. 2001-01-15 16:33:30 +00:00
netisr_dispatch.h For SLIP/STRIP/PPP, use generic soft interrupts, if available. 2001-01-15 16:33:30 +00:00
pfil.c Back out the sledgehammer damage applied by wiz while I was out for 2000-12-28 21:40:59 +00:00
pfil.h Back out the sledgehammer damage applied by wiz while I was out for 2000-12-28 21:40:59 +00:00
pfkeyv2.h typo 2000-10-03 22:46:21 +00:00
ppp-comp.h
ppp-deflate.c Don't use MALLOC() for variable-sized allocations. 2000-08-25 21:22:16 +00:00
ppp_defs.h
ppp_tty.c Adapt to bpfattach() changes, and further centralize the bpfattach() 2000-12-12 18:00:22 +00:00
radix.c fix indentation 2001-01-10 01:16:59 +00:00
radix.h fix typo in function name (rn_satsifies_leaf -> satisfies). indent. 2000-12-17 10:23:19 +00:00
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c do not touch region after free 2000-12-11 07:52:48 +00:00
route.h update icmp6 too big validation. the change is necessary since pmtud is 2000-12-09 01:29:45 +00:00
rtsock.c Don't require the size of sockaddr to be rounded up if it was the last one 2000-11-10 03:37:42 +00:00
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h