[openib-general] Re: [PATCH 6/6] IB: userspace support for RDMA connection manager

David S. Miller davem at davemloft.net
Mon Mar 6 14:39:01 PST 2006


From: Roland Dreier <rdreier at cisco.com>
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:

davem at sunset:~/src/GIT/sparc-2.6.17$ gcc -m32 -O -o foo foo.c
davem at sunset:~/src/GIT/sparc-2.6.17$ ./foo
SPARC32
foo src: 0
foo dst: 28
bar a: 0
bar b: 28
davem at sunset:~/src/GIT/sparc-2.6.17$ gcc -m64 -O -o foo foo.c
davem at sunset:~/src/GIT/sparc-2.6.17$ ./foo
SPARC64
foo src: 0
foo dst: 28
bar a: 0
bar b: 28



More information about the general mailing list