[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipng
Subject:    (IPng 2422) Re: advanced sockets api for ipv6 (rcmd's)
From:       nordmark () jurassic (Erik Nordmark)
Date:       1996-10-30 23:27:52
[Download RAW message or body]

> > Isn't there a problem if a v6 unaware application calls
> > rcmd() and rcmd() returns an AF_INET6 socket?
> 
> Assuming that the IPv4 application calls gethostbyname() (which is what
> getaddrinfo() should be calling), all that is queried for in the DNS
> is an A record.  This was done on purpose for 100% backward compatability
> with all existing IPv4-only applications.  Even if the specified hostname
> has both an A record and an AAAA record, all that gethostbyname() will
> return by default is the A record.

But with rcmd the application doesn't call gethostbyname.
rcmd encapsulates both the creation of the socket *and* the
IP address lookup.

   Erik

------------------------------------------------------------------------------
IETF IPng Mailing List		      FTP archive: ftp.parc.xerox.com/pub/ipng
IPng Home Page:          	      http://playground.sun.com/ipng
Direct all administrative requests to majordomo@sunroof.eng.sun.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic