[haiku-bugs] Re: [Haiku] #8293: BNetworkAddress needs to check if there is an available IPv6 connection.

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Thu, 09 Feb 2012 21:01:46 -0000

#8293: BNetworkAddress needs to check if there is an available IPv6 connection.
----------------------------------------+----------------------------
   Reporter:  kallisti5                 |      Owner:  axeld
       Type:  bug                       |     Status:  new
   Priority:  high                      |  Milestone:  R1
  Component:  Network & Internet/Stack  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  1                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by kallisti5):

 Replying to [comment:11 axeld]:
 > However, I don't think this should be the solution to the original
 problem, though; getaddrinfo() should only return an IPv6 address if there
 is a configured IPv6 interface (and vice versa), no matter what
 resolv.conf says.

 This raises some interesting questions.

 Do we return the IPv6 address if:

 A) we detect a configured IPv6 interface?

 B) we detect a configured IPv6 global scope ip on an interface?

 C) we detect an IPv6 gateway?


 * A is definitely tripped up when you have link local addresses.
 * C may prevent usage of valid IPv6 addresses if they resolve on the local
 lan.

 Seems the only one that makes sense is B.  Axel, do we have address scope?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8293#comment:12>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: