Changeset 3021 in vbox
- Timestamp:
- Jun 4, 2007 12:16:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r2960 r3021 48 48 *pdns_addr = tmp_addr; 49 49 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)); 51 51 52 52 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; 56 57 } 57 58 if (FixedInfo) { … … 125 126 126 127 *ppszDomain = NULL; 127 Log(("nat: IP address of your DNS(s):\n"));128 Log(("nat: DNS Servers:\n")); 128 129 while (fgets(buff, 512, f) != NULL) { 129 130 if (sscanf(buff, "nameserver%*[ \t]%256s", buff2) == 1) { … … 134 135 /* If it's the first one, set it to dns_addr */ 135 136 if (!found) 137 { 136 138 *pdns_addr = tmp_addr; 137 if (++found > 3) {138 Log(("nat: (more)\n"));139 break;140 } else141 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++; 142 144 } 143 145 if (!strncmp(buff, "domain", 6) || !strncmp(buff, "search", 6))
Note:
See TracChangeset
for help on using the changeset viewer.