VirtualBox

Changeset 49297 in vbox for trunk/src/VBox/NetworkServices


Ignore:
Timestamp:
Oct 28, 2013 2:15:03 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90249
Message:

pxdns_create_resolver_sockaddrs: enable getaddrinfo() code on Windows too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxdns.c

    r49252 r49297  
    303303pxdns_create_resolver_sockaddrs(struct pxdns *pxdns, const char **nameservers)
    304304{
    305     /*
    306      * XXX: TODO: Windows supports getaddrinfo(), including execution
    307      * on older version of Windows where runtime tricks hide the gory
    308      * compatibility details.
    309      *
    310      * http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx
    311      */
    312 #ifndef RT_OS_WINDOWS
    313305    struct addrinfo hints;
    314 #endif
    315306    union sockaddr_inet *resolvers;
    316307    size_t nnames, nresolvers;
     
    340331    }
    341332
    342 #ifndef RT_OS_WINDOWS
    343333    memset(&hints, 0, sizeof(hints));
    344334    hints.ai_family = AF_UNSPEC;
     
    377367        ++nresolvers;
    378368    }
    379 #endif  /* RT_OS_WINDOWS */
    380369
    381370    if (nresolvers == 0) {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette