~helenos-duke/duke/mainline

« back to all changes in this revision

Viewing changes to uspace/app/nettest2/nettest2.c

  • Committer: Martin Decky
  • Date: 2013-07-19 13:23:00 UTC
  • Revision ID: martin@decky.cz-20130719132300-9zl54e9f3q6r3ke9
support for IPv6 DNS name resolution (AAAA)
if the desired address family of the DNS query is not explicitly specified, then IPv6 addresses take precendece over IPv4 addresses

Show diffs side-by-side

added added

removed removed

Lines of Context:
270
270
        if (rc != EOK) {
271
271
                /* Interpret as a host name */
272
272
                dnsr_hostinfo_t *hinfo = NULL;
273
 
                rc = dnsr_name2host(addr_s, &hinfo);
 
273
                rc = dnsr_name2host(addr_s, &hinfo, family);
274
274
                
275
275
                if (rc != EOK) {
276
276
                        printf("Error resolving host '%s'.\n", addr_s);