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