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

List:       ipng
Subject:    (IPng 4981) Q: IPv4/IPv6 interoperability
From:       Divya H V <hdivya () athira ! india ! hp ! com>
Date:       1997-11-26 8:07:44
[Download RAW message or body]



Hi,

 I am  working on an  investigation  on the code  changes  required  for
 implementing  IPv6  support  for a server - in  particular,  the server
 should be able to support requests from both IPv4 as well IPv6 clients.
 We  are  using  the  Sockets  API  as  defined  in  RFC  2133  for  our
 investigation.

 RFC 2133 Section 3.7 :  "Compatibility  with IPv4 Nodes " mentions  the
 following :

 "Applications  may use PF_INET6 sockets to open TCP connections to IPv4
 nodes, or send UDP  packets  to IPv4  nodes,  by  simply  encoding  the
 destination's  IPv4 address as an IPv4-mapped IPv6 address, and passing
 that address,  within a  sockaddr_in6  structure,  in the  connect() or
 sendto() call.  When  applications  use PF_INET6  sockets to accept TCP
 connections  from IPv4 nodes, or receive UDP packets  from IPv4  nodes,
 the  system  returns  the  peer's  address  to the  application  in the
 accept(),  recvfrom(),  or  getpeername()  call  using  a  sockaddr_in6
 structure encoded this way."

 Based on the above, Can the  PF_INET6  sockets be used to service  both
 the IPv4 as well as IPv6 clients?

 Or,does  the  server  application  need to open  separate  PF_INET  and
 PF_INET6 sockets - PF_INET to service  IPv4(only) nodes and PF_INET6 to
 service IPv6 nodes ?

Thanks.

Best Regards,
Divya

--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page:                      http://playground.sun.com/ipng
FTP archive:                      ftp://playground.sun.com/pub/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