NetBSD/sys/netinet
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
fil.c Due to a quirk (err, bug?) in IP Filter (mbuf freed without setting *mp 2000-11-12 19:50:47 +00:00
icmp6.h update icmp6 too big validation. the change is necessary since pmtud is 2000-12-09 01:29:45 +00:00
icmp_var.h count successful path MTU changes. good for debugging. 2000-10-18 19:20:02 +00:00
if_arp.c Add kernel counters for arp events, displayable with netstat -s -f arp 2000-08-15 20:24:57 +00:00
if_atm.c
if_atm.h
if_ether.h
if_ieee1394arp.c First Prototype implementation of network interface part for IEEE1394 (if_fw). 2000-11-05 17:17:12 +00:00
if_ieee1394arp.h First Prototype implementation of network interface part for IEEE1394 (if_fw). 2000-11-05 17:17:12 +00:00
if_inarp.h
igmp.c Don't copy M_EXT mbufs unless in "dhcp" mode. Do a mtod after the pullup 2000-06-16 20:21:26 +00:00
igmp.h
igmp_var.h
in.c - Keep track of allhost multicast address record we joined into 2000-10-08 09:15:28 +00:00
in.h #define<tab> cleanup. 2000-08-28 02:12:22 +00:00
in4_cksum.c
in_cksum.c
in_gif.c RFCs 1853, 2003, 2401 -- copy the DF bit. 2000-07-05 21:01:38 +00:00
in_gif.h
in_pcb.c Update for hashinit() change. 2000-11-08 14:28:12 +00:00
in_pcb.h
in_proto.c Restructure the Path MTU Discovery code somewhat to avoid 2000-10-18 17:09:14 +00:00
in_systm.h
in_var.h - Keep track of allhost multicast address record we joined into 2000-10-08 09:15:28 +00:00
ip.h
ip6.h sync with kame ($KAME$) 2000-10-10 16:26:43 +00:00
ip_auth.c Resolve conflicts. 2000-08-09 21:00:39 +00:00
ip_auth.h Resolve conflicts. 2000-05-23 06:07:42 +00:00
ip_compat.h remove include of <vm/vm.h> 2000-06-28 02:59:32 +00:00
ip_ecn.c fix compilation without INET. fix confusion between ipsecstat and ipsec6stat. 2000-10-02 03:55:41 +00:00
ip_ecn.h
ip_encap.c fix compilation without INET. fix confusion between ipsecstat and ipsec6stat. 2000-10-02 03:55:41 +00:00
ip_encap.h
ip_fil.c Fix a small typo that would cause IP Filter to not hook in to 2000-12-28 21:42:49 +00:00
ip_fil.h Restructure the PFIL_HOOKS mechanism a bit: 2000-11-11 00:52:36 +00:00
ip_flow.c Pass the correct destination address for the route-to-gateway case. 2000-06-30 19:43:53 +00:00
ip_frag.c Ups, forgot to resolve one place. 2000-06-12 10:29:36 +00:00
ip_frag.h
ip_ftp_pxy.c Resolve conflicts. 2000-08-09 21:00:39 +00:00
ip_gre.c Adapt to bpfattach() changes, and further centralize the bpfattach() 2000-12-12 18:00:22 +00:00
ip_gre.h Some slight cleanup. 2000-07-06 04:34:26 +00:00
ip_icmp.c s/mtudisc_callback/icmp_&/ so that we don't feel conflict between IPv4 and 2000-10-18 20:34:00 +00:00
ip_icmp.h Restructure the Path MTU Discovery code somewhat to avoid 2000-10-18 17:09:14 +00:00
ip_input.c Back out the sledgehammer damage applied by wiz while I was out for 2000-12-28 21:40:59 +00:00
ip_ipip.c Fix a rather annoying problem where the sockaddr_dl which holds 2001-01-17 00:30:49 +00:00
ip_ipip.h
ip_log.c Resolve conflicts. 2000-08-09 21:00:39 +00:00
ip_mroute.c Update for hashinit() change. 2000-11-08 14:28:12 +00:00
ip_mroute.h
ip_nat.c Apply fix from IWAMOTO Toshihiro in pr#10813: 2000-08-12 08:08:54 +00:00
ip_nat.h Resolve conflicts. 2000-08-09 21:00:39 +00:00
ip_output.c allow IP_MULTICAST_IF and IP_ADD/DROP_MEMBERSHIP to specify interface 2001-01-13 07:19:33 +00:00
ip_proxy.c
ip_proxy.h
ip_raudio_pxy.c
ip_rcmd_pxy.c Resolve conflicts. 2000-08-09 21:00:39 +00:00
ip_state.c Resolve conflicts. 2000-08-09 21:00:39 +00:00
ip_state.h Resolve conflicts. 2000-08-09 21:00:39 +00:00
ip_var.h allow IP_MULTICAST_IF and IP_ADD/DROP_MEMBERSHIP to specify interface 2001-01-13 07:19:33 +00:00
ipl.h Resolve conflicts. 2000-08-09 21:00:39 +00:00
raw_ip.c
tcp.h added a linted comment about non-portable bitfields. Unfortunately it cannot 2000-07-05 02:45:03 +00:00
tcp_debug.c
tcp_debug.h
tcp_fsm.h
tcp_input.c remove NRL code leftover. sync with kame 2000-12-10 23:39:36 +00:00
tcp_output.c fix IPv4 TTL selection with AF_INET6 API. sync with kame. From: jdc 2000-11-06 00:50:12 +00:00
tcp_seq.h
tcp_subr.c fix call to in6_pcbnotify. s/EMSGSIZE/PRC_MSGSIZE/. 2000-12-21 00:45:17 +00:00
tcp_timer.c remove #ifdef TCP6. it is not likely for us to bring in sys/netinet6/tcp6*.c 2000-10-19 20:22:59 +00:00
tcp_timer.h
tcp_usrreq.c make sure t_family has the correct protocol family, after connect(2) 2000-12-11 00:07:48 +00:00
tcp_var.h remove #ifdef TCP6. it is not likely for us to bring in sys/netinet6/tcp6*.c 2000-10-19 20:22:59 +00:00
tcpip.h
udp.h
udp_usrreq.c more on previous (udp4 multicast fix) 2000-12-04 11:24:20 +00:00
udp_var.h