From: Roland Dreier <[EMAIL PROTECTED]>
Date: Mon, 06 Mar 2006 14:32:28 -0800

> The fundamental question seems to be whether things like
> 
>       struct foo {
>               struct sockaddr_in6 src;
>               struct sockaddr_in6 dst;
>       };
> 
> and
> 
>       struct bar {
>               struct sockaddr_in6 a;
>               __u32 b;
>       };

I wrote a test program and it looks ok:

[EMAIL PROTECTED]:~/src/GIT/sparc-2.6.17$ gcc -m32 -O -o foo foo.c
[EMAIL PROTECTED]:~/src/GIT/sparc-2.6.17$ ./foo
SPARC32
foo src: 0
foo dst: 28
bar a: 0
bar b: 28
[EMAIL PROTECTED]:~/src/GIT/sparc-2.6.17$ gcc -m64 -O -o foo foo.c
[EMAIL PROTECTED]:~/src/GIT/sparc-2.6.17$ ./foo
SPARC64
foo src: 0
foo dst: 28
bar a: 0
bar b: 28
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to