On Jun 5, 2013, at 7:24 AM, Greg Troxel <g...@ir.bbn.com> wrote: > > Jukka Ruohonen <jruoho...@iki.fi> writes: > >> Ah, maybe IPv6-only hosts would be the rationale then. But as you noted, it >> is not difficult to find cases like >> >> #ifdef INET >> ... >> #ifdef INET6 > > That's a bug; in theory one should be able to have INET6 without INET. > I did try it once several years ago, and had some trouble that I didn't > solve.
Not always. Sometimes you need to check for an AF_INET6 socket in an IPv4 path since you might be using mapped IPv4 addresses.