cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1274 IPv6 DNS requests were sent out from Android Handsets even if the IPv6 stack is not present on the device.

From: Rajiv Dwivedi <rajivdwivedi_at_users.sf.net>
Date: Thu, 19 Sep 2013 21:36:35 +0000

We do not see the above snippet in the libcurl code. However, We do see following code in function "Curl_getaddrinfo"

  if (pf != PF_INET) {
    /* see if we have an IPv6 stack */
    curl_socket_t s = socket(PF_INET6, SOCK_DGRAM, 0);
    if(s == CURL_SOCKET_BAD) {
      /* Some non-IPv6 stacks have been found to make very slow name resolves
       * when PF_UNSPEC is used, so thus we switch to a mere PF_INET lookup if
       * the stack seems to be a non-ipv6 one. */

      pf = PF_INET;
    }
    else {
      /* This seems to be an IPv6-capable stack, use PF_UNSPEC for the widest
       * possible checks. And close the socket again.
       */
      sclose(s);
    }
  }

This code checks if IPv6 Stack exists but not for case where IPv6 stack exists but is disabled.

---
** [bugs:#1274] IPv6 DNS requests were sent out from Android Handsets even if the IPv6 stack is not present on the device.**
**Status:** pending-needsinfo
**Labels:** dns ipv6 
**Created:** Tue Sep 03, 2013 09:36 PM UTC by Rajiv Dwivedi
**Last Updated:** Tue Sep 17, 2013 08:19 PM UTC
**Owner:** Daniel Stenberg
Observation:
IPv6 DNS requests were sent out from Android Handsets even if the IPv6 stack is not present on the device.
Expected Result:
If there is no IPv6 stack on the device/machine, the IPv6 request should not be sent from the device.
Workaround:
Using option "CURL_IPRESOLVE_V4", disables sending IPv6 DNS queries.
Libcurl details:
OS: Linux - Android
version: 7.32.0
link: http://curl.haxx.se/download.html
Attachments:
Wireshark log ( which displays both Ipv$ and IPv6 records)
Verbose output using libcurl (captured while making HTTP requests)
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2013-09-19

These mail archives are generated by hypermail.

donate! Page updated May 06, 2013.
web site info

File upload with ASP.NET