]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Prevent the kernel from generating an unaligned sysctl data buffer on
authorAndrew Gallatin <gallatin@FreeBSD.org>
Sun, 27 Jan 2002 20:39:01 +0000 (20:39 +0000)
committerAndrew Gallatin <gallatin@FreeBSD.org>
Sun, 27 Jan 2002 20:39:01 +0000 (20:39 +0000)
commit694ff26473ed87e7dec4e74adf4584972d03d3d7
treeb8b36bd66f1c7cb8cbf1a91df44a6f5b943a1e72
parentc3751af262dd81dfd5fdb03c1349fa81408ca595
Prevent the kernel from generating an unaligned sysctl data buffer on
64-bit platforms.  The unaligned access is caused by struct ifa_msghdr
not being a multiple of 8-bytes in size.  If an interface has an odd
number of addresses, this causes the next interface to generate an
unaligned access in the user-level app walking the interfaces (ifconfig).

Submitted by: Bernd Walter <ticso@cicely8.cicely.de>
sys/net/rtsock.c