Subject: Re: IPv6 code with 64bit arch
To: None <tech-net@netbsd.org>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: tech-net
Date: 07/30/1999 10:06:58
What about the problem with gifconfig?
fnord# gifconfig gif0 inet 204.152.185.71 206.123.31.102
gifconfig: ioctl (SIOCSIFPHYADDR): Invalid argument
(As reported last week or so)
+j
On Fri, Jul 30, 1999 at 11:39:17PM +0900, itojun@iijlab.net wrote:
> (I think I'm not on port-alpha so please cc: to me on reply)
>
> Yesterday I've committed several 64bit-arch fixes against problem
> made visible by IPv6 import. Specifically,
> - SIOCGIFCONF alignment problem. In the past struct ifconf was
> nicely aligned to 8byte boundary by pure luck. Now we have
> sockaddr_in6 coming up from the kernel, which makes the reply
> from the kernel unaligned.
> and IPv6-code origin problems:
> - size_t printing issue. (cast to u_long and print as %ul)
> - pointer-to-integer cast for boundary checking (cast to int does
> not work)
>
> I believe IPv6-enabled kernel and userland now works fine on alpha
> machines (I installed NetBSD/KAME-1.4 onto alpha box and made checks
> using that code). If there are any unaligned memory access left
> unmodified, please let me know.
>
> itojun
--
Jeff Rizzo http://boogers.sf.ca.us/~riz