VirtualBox

Changeset 3021 in vbox


Ignore:
Timestamp:
Jun 4, 2007 12:16:11 PM (18 years ago)
Author:
vboxsync
Message:

Release logging of NAT DNS settings taken from host OS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r2960 r3021  
    4848    *pdns_addr = tmp_addr;
    4949    Log(("nat: DNS Servers:\n"));
    50     Log(("nat: DNS Addr:%s\n", pIPAddr->IpAddress.String));
     50    LogRel(("NAT: DNS address: %s\n", pIPAddr->IpAddress.String));
    5151
    5252    pIPAddr = FixedInfo -> DnsServerList.Next;
    53     while ( pIPAddr ) {
    54             Log(("nat: DNS Addr:%s\n", pIPAddr ->IpAddress.String));
    55             pIPAddr = pIPAddr ->Next;
     53    while ( pIPAddr )
     54    {
     55        LogRel(("NAT: ignored DNS address: %s\n", pIPAddr ->IpAddress.String));
     56        pIPAddr = pIPAddr ->Next;
    5657    }
    5758    if (FixedInfo) {
     
    125126
    126127    *ppszDomain = NULL;
    127     Log(("nat: IP address of your DNS(s): \n"));
     128    Log(("nat: DNS Servers:\n"));
    128129    while (fgets(buff, 512, f) != NULL) {
    129130        if (sscanf(buff, "nameserver%*[ \t]%256s", buff2) == 1) {
     
    134135            /* If it's the first one, set it to dns_addr */
    135136            if (!found)
     137            {
    136138                *pdns_addr = tmp_addr;
    137             if (++found > 3) {
    138                 Log(("nat: (more)\n"));
    139                 break;
    140             } else
    141                 Log(("nat: %s\n", inet_ntoa(tmp_addr)));
     139                LogRel(("NAT: DNS address: %s\n", buff2));
     140            }
     141            else
     142                LogRel(("NAT: ignored DNS address: %s\n", buff2));
     143            found++;
    142144        }
    143145        if (!strncmp(buff, "domain", 6) || !strncmp(buff, "search", 6))
Note: See TracChangeset for help on using the changeset viewer.

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