summaryrefslogtreecommitdiffstats
path: root/libc/inet/resolv.c
Commit message (Collapse)AuthorAgeFilesLines
...
* make DODEBUG=y happy, update sysdeps/common/* copyrightPeter S. Mazinger2006-01-141-1/+1
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-163/+152
| | | | missing headers, other jump relocs removed
* hide internal symbolsMike Frysinger2006-01-081-4/+4
|
* Convert some users and get rid of __rpc_thread_createerr jump reloc, this ↵Peter S. Mazinger2005-12-161-9/+17
| | | | was indeed a badly chosen name
* Implement hidden poll, switch user to hidden *printf/*scanf/pollPeter S. Mazinger2005-12-091-3/+4
|
* mmap/mremap/socket/rewind gonePeter S. Mazinger2005-12-081-2/+4
|
* Convert the rest of users to hiddenPeter S. Mazinger2005-12-081-0/+1
|
* Again rpc ;-( , all *inet*, *addr*Peter S. Mazinger2005-12-081-0/+5
|
* Hide morePeter S. Mazinger2005-12-071-14/+47
|
* Make use internal str*casecmp/wcscollPeter S. Mazinger2005-12-061-1/+1
|
* macro out the thread funcs in libc if threading is disabledMike Frysinger2005-12-061-12/+8
|
* Rename newly created __libc_x (reserved for libpthread overwrites) w/ ↵Peter S. Mazinger2005-12-031-12/+12
| | | | x_internal, do not use cascading aliases
* More hiding, including __mempcpyPeter S. Mazinger2005-12-031-0/+1
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-51/+50
|
* Hiding againPeter S. Mazinger2005-11-291-2/+9
|
* Hide some of mem* and str*Peter S. Mazinger2005-11-271-0/+5
|
* 100 JUMP relocs less (remaining 431) by hiding internally used onesPeter S. Mazinger2005-11-261-13/+16
|
* Some more hidden internalsPeter S. Mazinger2005-11-261-30/+30
|
* Better solution to duplicate locking definesPeter S. Mazinger2005-10-201-21/+15
|
* Change in_addr_t inet_aton to int, glibc has it as int and uClibc uses it in ↵Peter S. Mazinger2005-10-201-11/+11
| | | | addr.c also as int. Rename mylock/LOCK/UNLOCK in resolv.c to allow IMA compiling
* The default static buffer sizes are too small to handle the 8 entries returnedEric Andersen2005-05-101-5/+5
| | | | | | | | | | | by 'nslookup www.yahoo.com' and 'nslookup mail.hotmail.com', and thus we currently return ERANGE when trying to lookup some of the most popular hosts on the planet. Whether these sites deserve to be popular is a question I'll leave for someone else to worry about. This change makes certain we have enough static buffer space to handle about 21 IPv4 IP address replies per DNS query. Far more than enough to handle common cases such as www.yahoo.com and mail.hotmail.com.
* Fix it so uClibc returns multiple ips via h_addr_list,Eric Andersen2005-04-281-66/+117
| | | | | | | | | | | | | | | | | | | | | | | | | This fix, based on this patch http://bugs.uclibc.org/view.php?id=104 makes it so uClibc fills out round robin dns lists for applications such as nslookup: Before: $ nslookup google.com Server: mace.codepoet.org Address: 10.10.10.1 Name: google.com Address: 216.239.39.99 After: $ nslookup google.com Server: mace.codepoet.org Address: 10.10.10.1 Name: google.com Addresses: 216.239.57.99, 216.239.37.99, 216.239.39.99
* Cleanup error case a bitEric Andersen2005-04-281-8/+8
|
* This might actually now be thread safe, assuming I havn't broken it.Eric Andersen2005-04-281-20/+27
|
* trim trailing whitespaceEric Andersen2005-04-281-26/+26
|
* Jan Lana writes:Eric Andersen2005-01-111-11/+12
| | | | | | | | | | | | | | | | | | | | uClibc resolver doesn't lookup all search domains. For example, if you have computer 'jenda.prague.my.cz' and resolv.conf: search my.cz nameserver xx.xx.xx.xx try this: ping jenda.prague.my.cz #works ping jenda.prague #unknown host libc/inet/resolv.c doesn't want to try search domains if the domain name contains '.'. I don't find any reason for the behaviour in literature and it is inconsistent with the glibc. Patch is attached. regards, - jenda
* Implement gethostent_rEric Andersen2004-09-071-15/+31
|
* Remove stale leftoversEric Andersen2004-09-071-9/+0
|
* Do not fail all lookups when /etc/resolv.conf is missing, as i.e.Eric Andersen2004-08-151-16/+7
| | | | | checking on 127.0.0.1 is still valid w/o resolv.conf -Erik
* req_search returned garbage. This teaches it to behave itself andEric Andersen2004-08-141-29/+38
| | | | | | return the length and the actual dns packet as received, rather than making stuff up. -Erik
* On Monday 02 August 2004 08:44 am, Mike Frysinger wrote:Manuel Novoa III2004-08-101-1/+16
| | | | | | | | | | | | | | | | | | | | > the gethostbyname_r() call itself is not segfaulting, but the memory > returned in the h_aliases array seems to be wrong ... was playing around with the source today and eventually the obvious answer hit me ... while read_etc_hosts_r() generatings an array of strings fo h_aliases and populates it, the dns path does not :) find attached a patch that'll actually generate the h_aliases list in the normal dns code path ... i used the etc_hosts_r() code as a template for some of it ... note that this is just a simple fix ... it fills the alias list with just the hostname gethostbyname_r was passed ... the proper fix i think would be to parse the dns packet down in __dns_lookup() and pass the info back via the resolv_answer struct ... but this fix is better than the current state of things ... that is, h_aliases currently is never initailized in the dns code path :)
* Bug fix: gethostbyname2_r would fail if /etc/host was missing.Manuel Novoa III2004-03-101-21/+38
| | | | | Bug fix: gethostbyname_r checked errno without first setting it to a known value.
* Imre Sunyi writes:Eric Andersen2004-01-241-11/+16
| | | | | | | | | | | | | | | | | | | | | Hi Erik I have corrected a bug in uClibc/libc/inet/resolv.c in function __dns_lookup(). Have attaced a txt file with my diffs regarding to uClibc 0.9.26. If two nameservers are included in /etc/resolv.conf and the first one is wrong and the secondary is correct the algorithm never looked up the secondary one. Please review my diff and feel free to submit the patch onto your CVS. If reading manual page resolv.conf(5) under nameserver and how the algorithm should work the previous dns_lookup did not fully followed that. Regards Imre Sunyi
* Implement res_search and res_querydomain based on netbsd code,Eric Andersen2004-01-041-5/+203
| | | | | | but remove support for host aliases (the HOSTALIASES env variable) which looks like a very bad idea. -Erik
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-271-6/+6
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* We were failing to properly set h_errno on success, which couldEric Andersen2003-10-191-0/+3
| | | | | | | cause gethostbyaddr_r to keep looping allocating more and more memory each time till alloca finally caused a segfault. Ugh. This fixes that as well... -Erik
* Patch from Tony J. White:Eric Andersen2003-10-151-0/+311
| | | | | | I've created a patch for adding dn_expand() to uClibc 0.9.21. dn_expand() is used by at least ipsec-tools and also openldap I think.
* 15 retries is really rather excessive...Eric Andersen2003-09-011-1/+1
|
* Patch from Ronald Wahl fixing an IPV6 specific problemEric Andersen2003-06-171-2/+2
| | | | with getaddrinfo().
* Patch from Jeffrey Damick:Eric Andersen2003-03-011-0/+2
| | | | | | | | With glibc if you do a res_init() that forces a reread of the nameservers file, but in uClibc the res_init will not force a reread if it has already read the file because then the nameservers value is greater than 0. So res_init must call close_nameservers() before calling open_nameservers().
* Eliminate a needless externEric Andersen2003-02-121-49/+40
|
* Patch from Jay Kulpinski:Eric Andersen2003-01-101-0/+10
| | | | | | | __decode_dotted() does not count the null terminating byte of a hostname in the DNS response. This causes lookups to fail if the DNS response doesn't compress domain names in the message.
* Cleanup use of in6addr_loopback and in6addr_anyEric Andersen2002-11-211-18/+0
|
* Patch from "Cho, Seong-Myun" <smcho@xecurenexus.com> to limitEric Andersen2002-11-031-1/+3
| | | | things to the lower 16 bits of 'id'.
* Fixup struct _res handling so apps using struct _res can actuallyEric Andersen2002-08-191-11/+2
| | | | | compile ("worst standard ever!") -Erik
* Fixed __read_etc_hosts_r to return alias list and modified bufferManuel Novoa III2002-08-171-7/+26
| | | | | allocation accordingly. This fixes the segfault in the Python 2.2.1 socket test.
* Remove __res_state function.Miles Bader2002-08-161-12/+0
|
* Fixup the last missing pieces of thread lockingEric Andersen2002-08-061-22/+80
| | | | -Erik
* Finer grained locking in __connect_dns() so we don't hold theEric Andersen2002-07-081-6/+19
| | | | | lock while sending packets out onto the wire. -Erik
* Doh! search-n-replace strikes againEric Andersen2002-07-071-4/+4
| | | | -Erik