Mercurial > ecos-v2_0-branch
diff packages/net/ns/dns/current/tests/dns2.c @ 500:b6080ba5b75a
* cdl/dns.cdl: Added the ability to hard code a domain name.
Inspired by Motoya Kurotsu.
* doc/dns.sgml: Documentation for this.
* tests/dns2.c: Verify domain name from the DHCP server with
_LOOKUP_DOMAINNAME, not _DNS_IP which is the address of the DNS
server.
* cdl/dns.cdl: Added the ability to hard code a DNS server
address into the image which is used as the default.
* doc/dns.sgml: Documentation for this.
| author | jlarmour |
|---|---|
| date | Sat, 18 Jan 2003 03:47:02 +0000 |
| parents | d2c90368aeef |
| children | a0734f51a939 |
line wrap: on
line diff
--- a/packages/net/ns/dns/current/tests/dns2.c +++ b/packages/net/ns/dns/current/tests/dns2.c @@ -88,7 +88,7 @@ dns_test(cyg_addrword_t p) getdomainname(dn,sizeof(dn)); diag_printf("INFO:<DHCP said domain name is %s>\n",dn); - CYG_TEST_CHECK(!strncmp(dn,_DNS_IP,sizeof(_DNS_IP)), + CYG_TEST_CHECK(!strncmp(dn,_LOOKUP_DOMAINNAME,sizeof(_LOOKUP_DOMAINNAME)), "DHCP got the wrong domainname"); /* Expect _LOOKUP_IP as the answer. This is a CNAME lookup */ @@ -111,7 +111,7 @@ dns_test(cyg_addrword_t p) diag_printf("FAIL:<Asked for " _LOOKUP_HOSTNAME ". No answer: %s>\n", hstrerror(h_errno)); } - CYG_TEST_FINISH("dns1 test completed"); + CYG_TEST_FINISH("dns2 test completed"); } void
