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

  • From: "donn" <trac@xxxxxxxxxxxx>
  • Date: Sat, 17 Jan 2015 07:30:39 -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:  9269, 10033
Has a Patch:  1                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by donn):

 I'm away for a few more days, so I can't present an empirical
 demonstration until then, but that is indeed what was happening - I could
 see it in the system call trace, and match it to the timeout in
 getaddrinfo().

 Your DNS service probably doesn't ignore IPV6 queries.  Mine does ("mine"
 meaning, Haiku's choice in resolv.conf.)  I don't doubt that it's wrong to
 do that, there's probably no excuse for ignoring a query like that, but 1)
 it happens (or did, years ago when this came up) to me and others (cf.
 discussion on developers list at the time.)  The fix is harmless - if I
 want  applications on my host to confine themselves to IPV4, then it isn't
 the OS's business to guess that I might be wrong, and in that case it
 would be silly to waste time resolving IPv6 addresses.

 And of course this fix has already been added to getaddrinfo() etc, a
 couple years ago.  Is the probem that we're reluctant to incorporate it
 into a new and hopefully working Network Prefs?  If you can allow Network
 Prefs et al. to co-exist peacefully with manual edits to resolv.conf, then
 maybe you don't need to worry about it - it can be added to Network Prefs
 later if there's call for it, as long as the occasional user who needs it
 can manually add it.  (Note that I'm not talking about only Network Prefs
 per se, wifi DHCP setup also overwrites my resolv.conf, which is another
 example of something that needs to be more merge and less overwrite, since
 I may have several interfaces and the DHCP-supplied DNS may not be
 suitable for the other interfaces, or suitable at all, for that matter.

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

Other related posts: