Re: DNS library : no more than 15 requests ?
"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <00b101c42c73$9e613b50$764000b4@kardis> |
I found a bug in the DNS C code that fixed Xavier's problem. Version 4 is now available on the C library web site (ftp://ftp.dalsemi.com/pub/tini/ds80c400/c_libraries/index.html) Kris ----- Original Message ----- From: "Xavier IZARD" <[email protected]> To: <tini-6tN4nzCoH/[email protected]> Sent: Monday, April 26, 2004 9:31 AM Subject: [TINI]DNS library : no more than 15 requests ? > Hello, > > I use DNS library v3 with keil compiler > I have a problem with the DNS library : it seems the library is unable > to do more than 15 requests. > My test are based on dns_sample application using IPv4 only requests. > Then I replaced all requests in the example by this : > i=0; > while(i<17) > { > printf("Request number : %u\n",i+1); > result = gethostbyname("smtp.wanadoo.fr"); > printResults(result); > i++; > } > > result = gethostbyname("www.google.com"); > printResults(result); > > Looking at the requests with ethereal, I can see that tini never issue > more than 15 requests. Note that the problem is the same using more than > 15 different hosts (ie not always smtp.wanadoo.fr) > > Below you will find javakit output. > > Could you please test this with your smtp_sample program ? (note that I > have enabled IPv4 requests queries only in the DNS library) Or do you > see something wrong with my requests ? > > > Regards, > Xavier > > *** smtp_sample output: > Request number : 1 > Hostname: smtp.wanadoo.fr > Addr Type: 4 > Length: 4 > IP: 193.252.22.79 > IP: 193.252.22.80 > IP: 193.252.22.81 > IP: 193.252.22.82 > IP: 193.252.22.83 > IP: 193.252.22.110 > IP: 193.252.22.116 > IP: 193.252.22.123 > IP: 193.252.22.78 > Request number : 2 > Hostname: smtp.wanadoo.fr > Addr Type: 4 > Length: 4 > IP: 193.252.22.82 > IP: 193.252.22.83 > IP: 193.252.22.110 > IP: 193.252.22.116 > IP: 193.252.22.123 > IP: 193.252.22.78 > IP: 193.252.22.79 > IP: 193.252.22.80 > IP: 193.252.22.81 > > [...] > > Request number : 15 > Hostname: smtp.wanadoo.fr > Addr Type: 4 > Length: 4 > IP: 193.252.22.123 > IP: 193.252.22.78 > IP: 193.252.22.79 > IP: 193.252.22.80 > IP: 193.252.22.81 > IP: 193.252.22.82 > IP: 193.252.22.83 > IP: 193.252.22.110 > IP: 193.252.22.116 > > [*** From here, no more request are issued on the network] > > Request number : 16 > Hostname: smtp.wanadoo.fr > Addr Type: 4 > Length: 4 > IP: 193.252.22.123 > IP: 193.252.22.78 > IP: 193.252.22.79 > IP: 193.252.22.80 > IP: 193.252.22.81 > IP: 193.252.22.82 > IP: 193.252.22.83 > IP: 193.252.22.110 > IP: 193.252.22.116 > Request number : 17 > Hostname: smtp.wanadoo.fr > Addr Type: 4 > Length: 4 > IP: 193.252.22.123 > IP: 193.252.22.78 > IP: 193.252.22.79 > IP: 193.252.22.80 > IP: 193.252.22.81 > IP: 193.252.22.82 > IP: 193.252.22.83 > IP: 193.252.22.110 > IP: 193.252.22.116 > > [*** As requests 16 and 17, the request on google is returning NULL and > is neither sent to network] > > Result on ibutton.com is NULL > DONE > > _______________________________________________ > TINI mailing list > TINI-6tN4nzCoH/[email protected] > To UNSUBSCRIBE, edit your profile, or see list archives: > http://lists.dalsemi.com/mailman/listinfo/tini _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini