freebsd-nq/sys
Kelly Yancey 42fdfc126a Move ISO88025 source routing information into sockaddr_dl's sdl_data
field.  This returns the sdl_data field to a variable-length field.  More
importantly, this prevents a easily-reproduceable data-corruption bug when
the interface name plus the hardware address exceed the sdl_data field's
original 12 byte limit.  However, token-ring interfaces may still overflow
the new sdl_data field's 46 byte limit if the interface name exceeds 6
characters (since 6 characters for interface name plus 6 for hardware
address plus 34 for source routing = the size of sdl_data).  Further
refinements could overcome this limitation but would break binary
compatibility; this commit only addresses fixing the bug for
commonly-occuring cases without breaking binary compatibility with the
intention that the functionality can be MFC'ed to -stable.

  See message ID's (both send to -arch):
	20020421013332.F87395-100000@gateway.posi.net
	20020430181359.G11009-300000@gateway.posi.net
  for a more thorough description of the bug addressed and how to
reproduce it.

Approved by:	silence on -arch and -net
Sponsored by:	NTT Multimedia Communications Labs
MFC after:	1 week
2002-05-07 22:14:06 +00:00
..
alpha Typo fix: detects -> detect. 2002-05-03 17:59:25 +00:00
amd64 Restore the ability interrupt dumps on i386, based on 2002-05-04 17:45:48 +00:00
arm Guard against redefining __gnuc_va_list. 2002-03-24 11:25:46 +00:00
boot Rename the file used to specify the nextboot to make it clear that this 2002-04-26 22:32:15 +00:00
cam Make Veritas Storage Appliance a HILUNS device. 2002-04-24 00:00:55 +00:00
coda Don't put a line break in string literals. GCC 3.1 complains and GCC 2002-04-20 01:42:56 +00:00
compat Zap some stale unused headers, including one machine/psl.h (which is 2002-05-01 02:17:33 +00:00
conf Reconnect db_elf.c to the build (now under "options DDB_NOKLDSYM"). It 2002-05-07 10:59:52 +00:00
contrib Merge updates from 3.4.26 - 3.4.27. 2002-04-27 16:56:25 +00:00
crypto Remove macros that are defined elsewhere. 2002-04-21 10:32:48 +00:00
ddb Reconnect db_elf.c to the build (now under "options DDB_NOKLDSYM"). It 2002-05-07 10:59:52 +00:00
dev Try to use spls more correctly 2002-05-07 18:09:19 +00:00
fs Include systm.h for panic(9) so that DEBUG_ALL_VFS_LOCKS compiles. 2002-05-04 02:37:00 +00:00
geom Fix a {} bug which doesn't have any effect yet. 2002-04-27 07:07:37 +00:00
gnu Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
i4b Change instances of avma1pp2- to ifpi2- in printf's since the name 2002-04-28 11:47:10 +00:00
i386 s/sysctl -w/sysctl/ 2002-05-06 00:45:27 +00:00
ia64 o Add ar.lc to the pcb. 2002-05-07 05:52:27 +00:00
isa Don't export timecounter structures under debug. with sysctl, they 2002-04-30 19:34:31 +00:00
isofs/cd9660 Include systm.h for panic(9) so that DEBUG_ALL_VFS_LOCKS compiles. 2002-05-04 02:37:00 +00:00
kern Re-remove kern_random.c and svr4_signal.c. Somehow dillon managed to keep 2002-05-07 21:54:47 +00:00
libkern Remove bogus include of <machine/ansi.h>. 2002-04-11 06:53:40 +00:00
modules Zap KMODDEPS entries so that people do not wonder why it isn't working on 2002-05-01 01:34:48 +00:00
net Move ISO88025 source routing information into sockaddr_dl's sdl_data 2002-05-07 22:14:06 +00:00
netatalk Revert the change of #includes in sys/filedesc.h and sys/socketvar.h. 2002-04-30 01:54:54 +00:00
netatm - Remove the init routine for loop -- it broke something and I don't have 2002-05-07 20:50:10 +00:00
netgraph Revert the change of #includes in sys/filedesc.h and sys/socketvar.h. 2002-04-30 01:54:54 +00:00
netinet Move ISO88025 source routing information into sockaddr_dl's sdl_data 2002-05-07 22:14:06 +00:00
netinet6 Revised MLD-related definitions 2002-05-06 16:28:25 +00:00
netipx Revert the change of #includes in sys/filedesc.h and sys/socketvar.h. 2002-04-30 01:54:54 +00:00
netkey Redo the sigio locking. 2002-05-01 20:44:46 +00:00
netnatm Revert the change of #includes in sys/filedesc.h and sys/socketvar.h. 2002-04-30 01:54:54 +00:00
netncp Add character translation table between Unix and NetWare according 2002-04-20 05:35:02 +00:00
netns Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
netsmb Revert the change of #includes in sys/filedesc.h and sys/socketvar.h. 2002-04-30 01:54:54 +00:00
nfs Remove unused include. 2002-03-20 10:12:07 +00:00
nfsclient We don't need the arp kludge any more. 2002-04-28 18:29:44 +00:00
nfsserver Limit to the maximum allowed reply size the amount of data that 2002-04-21 16:14:54 +00:00
pc98 Typo fix: detects -> detect. 2002-05-03 17:59:25 +00:00
pccard Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
pci Add support for the D-Link DFE-690TXD Cardbus card which has a RealTek 8139 2002-05-06 13:43:00 +00:00
posix4 Remove __P. 2002-03-19 22:20:14 +00:00
powerpc Don't export timecounter structures under debug. with sysctl, they 2002-04-30 19:34:31 +00:00
rpc
security/lomac Use the proc lock to protect p_ucred while we read a few items from it. 2002-04-11 21:17:45 +00:00
sparc64 Typo fix: detects -> detect. 2002-05-03 17:59:25 +00:00
sys Make funsetown() take a 'struct sigio **' so that the locking can 2002-05-06 19:31:28 +00:00
tools include systm.h in vnode_if.c so that panic is defined when we're doing 2002-05-04 02:35:13 +00:00
ufs o Condition the compilation and use of vm_freeze_copyopts() 2002-05-06 05:45:57 +00:00
vm o Header files shouldn't depend on options: Provide prototypes 2002-05-06 06:20:04 +00:00
Makefile Milestone #1 in cross-arch make releases. 2002-04-26 17:55:27 +00:00