Subject: lib/8032: hp->h_addr_list no longer 32bit aligned after IPv6
To: None <gnats-bugs@gnats.netbsd.org>
From: None <abs@mono.org>
List: netbsd-bugs
Date: 07/19/1999 09:25:18
>Number:         8032
>Category:       lib
>Synopsis:       hp->h_addr_list no longer 32bit aligned after IPv6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 19 09:20:01 1999
>Last-Modified:
>Originator:     David K Brownlee
>Organization:
Occasionally
>Release:        1.4G 	Sun Jul 18 22:29:43 PDT 1999
>Environment:
	
System: NetBSD slab.anim.dreamworks.com 1.4G NetBSD 1.4G (_SUN4M_) #1: Sun Jul 18 18:10:16 PDT 1999 abs@slab.anim.dreamworks.com:/home/current/sys/arch/sparc/compile/_SUN4M_ sparc


>Description:
	After the addition of IPv6 it appears that hp->h_addr_list no longer 
	suitably alinged for 32bit access. The sparc has particularly strict
	alignment issues which causes this to toast rarpd and sendmail.

>How-To-Repeat:
	Run -current NetBSD from at least the 4th of July onwards on sparc.
	Problem occurs under a.out _and_ ELF.

>Fix:
	Patch every program that assumes it can treat hp->h_addr_list as
	(u_int32_t **), or fix it in libc.

	The offending programs are not going to work under IPv6 anyway, but
	its suboptimal to also break them under IPv4.

>Audit-Trail:
>Unformatted: