Re: choosing IPv4 or IPv6 when creating a listening socket

2006-03-06 Thread Chuck Lever
David Stevens wrote: The correct way is to use "in6addr_any" (or IN6ADDR_ANY_INIT to initialize an existing one). the kernel's in6.h has "ifdef'd out" these, it looks like. begin:vcard fn:Chuck Lever n:Lever;Charles org:Network Appliance, Incorporated;Open Source NFS Client Development adr:535

Re: choosing IPv4 or IPv6 when creating a listening socket

2006-03-03 Thread David Stevens
The correct way is to use "in6addr_any" (or IN6ADDR_ANY_INIT to initialize an existing one). Note, also, that the TCP port space can be shared (I expect that's the default for most cases), so you can use the IPv6 socket calls to send and receive either IPv4 or IPv6 packets. The IPv4-mapped addres

choosing IPv4 or IPv6 when creating a listening socket

2006-03-03 Thread Chuck Lever
hello all- i'm helping implement support for IPv6 in the Linux RPC server. i have a couple of naive questions about creating a listening socket on a kernel that has IPv6 support. normally you will specify a sockaddr_in with address INADDR_ANY when setting up an IPv4 listener. what address