summaryrefslogtreecommitdiffstats
path: root/libc/inet
Commit message (Collapse)AuthorAgeFilesLines
...
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-2042-134/+134
|
* libc_hidden_proto removal, a few more functionsDenis Vlasenko2008-11-1815-28/+28
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-1823-28/+28
|
* resolver: use timeout of 5 (glibc uses that).Denis Vlasenko2008-11-171-10/+7
| | | | | delete some duplication in constants.
* resolver: separate gethostent and gethostent_r into two .o files;Denis Vlasenko2008-11-174-151/+151
| | | | | delete two stray files which compile to nothing
* resolver: move large code blocks to arrange related functions closer.Denis Vlasenko2008-11-171-510/+489
| | | | | almost no code changes
* resolver: fix some previous TODOs, add new ones.Denis Vlasenko2008-11-171-179/+198
|
* resolver: improved support for overriding DNS server addressesDenis Vlasenko2008-11-161-48/+114
| | | | | in _res structure. Used by busybox's nslookup.
* resolver: make getaddrinfo actually respect _res.nsaddr_list;Denis Vlasenko2008-11-162-204/+337
| | | | | | add largish comment explaining what we are doing, and why; fixes to make IPv6-only resolver possible
* resolver: more locking fixes.Denis Vlasenko2008-11-151-108/+138
|
* fixing resolver part 3: fix completely bogus lockingDenis Vlasenko2008-11-141-304/+311
| | | | | in __dns_lookup.
* fixing resolver part 2: make _res structure membersDenis Vlasenko2008-11-141-11/+17
| | | | | configurable. we don't use most of it anyway.
* fixing resolver, part 1Denis Vlasenko2008-11-141-90/+136
|
* - silence shadow warningBernhard Reutner-Fischer2008-11-131-3/+3
|
* - less verbose make cleanBernhard Reutner-Fischer2008-11-072-8/+8
|
* resolver: reinstate searching if search domains accidentally nukedDenis Vlasenko2008-11-021-4/+15
| | | | | in one of recent commits :)
* __dns_lookup: document and optimize a bitDenis Vlasenko2008-11-011-33/+45
| | | | | | | text data bss dec hex filename - 1545 2 4 1551 60f libc/inet/dnslookup.o + 1528 2 4 1534 5fe libc/inet/dnslookup.o
* resolver: partially fix bug 660 -Denis Vlasenko2008-11-011-21/+42
| | | | | do not treat negative response as error
* resolver: fix part of bug 1468:Denis Vlasenko2008-11-011-7/+20
| | | | | "gethostbyname() fails if DNS server returns more than 23 addresses"
* resolver: trivial code trasformations for readability.Denis Vlasenko2008-11-011-89/+96
| | | | | No logic changes. Code size is the same too.
* trivial code shrink by making some strings staticDenis Vlasenko2008-11-012-10/+10
| | | | | | | | | text data bss dec hex filename - 259 0 0 259 103 libc/inet/herror.o + 243 0 0 243 f3 libc/inet/herror.o - 720 0 0 720 2d0 libc/inet/ns_name.o + 710 0 0 710 2c6 libc/inet/ns_name.o
* getaddrinfo.c: improve readabilityDenis Vlasenko2008-10-281-30/+26
|
* getaddrinfo.c: reformat. no code changesDenis Vlasenko2008-10-281-738/+630
|
* Remove all references to __no_netlink_support as after thurough scrutiny of Ricard Wanderlof2008-10-282-23/+1
| | | | the code it was never used in any useful way.
* make getaddrinfo to NOT query DNS for IPv6 address if host is inDenis Vlasenko2008-10-281-17/+31
| | | | | | | | | | | /etc/hosts and it has IPv4 address there. The most common example is "127.0.0.1 localhost". We don't want "ping localhost" to stall and time out on IPv6 queries to, say, inaccessible DNS server, right? - 655 0 0 655 28f libc/inet/gethostbyname2_r.o + 685 0 0 685 2ad libc/inet/gethostbyname2_r.o
* - fix typo in r23808Bernhard Reutner-Fischer2008-10-271-1/+1
|
* libc/inet/getaddrinfo.c: const'ify some data;Denis Vlasenko2008-10-271-26/+45
| | | | | | | | | avoid using zero-filled constants in bss: text data bss dec hex filename 3182 24 48 3254 cb6 getaddrinfo_old.o 3280 0 0 3280 cd0 getaddrinfo.o
* - remove superfluous ';'. No objcode changes.Bernhard Reutner-Fischer2008-10-221-17/+17
|
* - need to grab features before looking at eventually requested netlink supportBernhard Reutner-Fischer2008-10-201-3/+3
| | | | | | Thanks to Peter S. Mazinger for pointing out this (obvious) error. The __ASSUME_NETLINK from ricardw's r22531 references a non-existing variable in certain cases. I don't see how that could possibly work..
* - do not include netlink headers if netlink is turned off (Michael Deutschmann)Bernhard Reutner-Fischer2008-10-191-11/+10
| | | | Closes #5544
* - des uses ntohlBernhard Reutner-Fischer2008-10-171-1/+5
|
* - hide relocation (Peter S. Mazinger)Bernhard Reutner-Fischer2008-10-061-1/+0
|
* - use c89-style commentsBernhard Reutner-Fischer2008-10-031-1/+1
| | | | Closes issue #5194
* - remove gethostbyname_r relocationBernhard Reutner-Fischer2008-09-112-2/+1
|
* Move ifaddrs.h from uClibc-internal location libc/inet/ to include/, and makeRicard Wanderlof2008-08-283-76/+2
| | | | | it conditionally included among the installed header files depending on UCLIBC_HAS_AI_ADDRCONFIG.
* Removed redundant includes.Ricard Wanderlof2008-08-271-2/+0
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-236-18/+18
|
* Simplified check_pf() so it returns a bit vector in an unsigned int,Ricard Wanderlof2008-07-014-106/+75
| | | | instead of modifying the contents of two bools.
* #include <ifaddrs.h> should be #include "ifaddrs.h"Denis Vlasenko2008-06-281-1/+1
|
* Removed include/ifaddrs.h and put contents in libc/inet/ifaddrs.h, as we do notRicard Wanderlof2008-06-272-1/+16
| | | | need the file outside of uClibc anyway.
* Fixed #if -> #if defined.Ricard Wanderlof2008-06-271-6/+15
| | | | Take __UCLIBC_HAS_IPV4__ into account.
* Added support for the AI_ADDRCONFIG flag in the hints->ai_flags parameter to ↵Ricard Wanderlof2008-06-276-18/+184
| | | | getaddrinfo(3).
* Revert revision 19347, plus libc_hidden_proto for __uc_malloc.Bernd Schmidt2008-06-124-16/+10
| | | | | Some of the code is functionally identical before and after, but for now I'm just mechanically reverting the entire mess.
* Revert revision 19343 and also remove libc_hidden_proto for __uc_malloc.Bernd Schmidt2008-06-121-34/+16
| | | | | For now, a straight revert; we can decide later wheter we want to do something more.
* Revert revison 19346, except parts needed by later patches (r19347 also addedBernd Schmidt2008-06-101-19/+6
| | | | | | __uc_malloc calls in getnetent.c, so we must retain the include and libc_hidden_proto).
* Remove superfluous attribute_hidden from functionDenis Vlasenko2008-06-061-1/+1
| | | | | | | | | | | definition. I seems to produce spurious warning: libc/inet/resolv.c:1549: warning: 'visibility' attribute ignored on non-class types (seems like gcc bug) and it is not really needed - attribute_hidden was already specified in function _declaration_ so it is not necessary here. No code changes (verified with objdump).
* Use more natural way to return a value in __read_etc_hosts_r:Denis Vlasenko2008-06-061-24/+21
| | | | | | | | | | | text data bss dec hex filename - 230 0 9 239 ef libc/inet/gethostent.o + 224 0 9 233 e9 libc/inet/gethostent.o - 782 0 0 782 30e libc/inet/read_etc_hosts_r.o + 767 0 0 767 2ff libc/inet/read_etc_hosts_r.o Run tested.
* Fix failure in test/inet/gethost_r-align:Denis Vlasenko2008-06-061-4/+8
| | | | | | | | | | | | we were closing a FILE, but did not record that fact by setting a variable to NULL, and then we used it for reading! While at it, small reduction in bss. Run tested. text data bss dec hex filename - 210 0 12 222 de libc/inet/gethostent.o + 230 0 9 239 ef libc/inet/gethostent.o
* This fixes a problem with the move of libc_hidden_proto to string.h.Bernd Schmidt2008-06-042-2/+0
| | | | | | | | | | | | | The obsolete functions bcopy, index, etc. are not supposed to be used within uClibc itself. Hence, there is no libc_hidden_def for them, but the previous patch did not just move libc_hidden_protos, it also added new ones for the legacy functions. As a result, programs which use these functions can no longer link with uClibc. This fixes it by removing the unnecessary libc_hidden_protos. I've also removed all inclusions of <strings.h> from uClibc source files: since we define _GNU_SOURCE, it is sufficient to include <string.h>. We then do not need to duplicate the libc_hidden_proto block in <strings.h>.
* close bug 473:Denis Vlasenko2008-06-031-33/+39
| | | | | | | 1. names with two consecutive dots are not valid 2. if name ends with a dot, dont try appending search domain(s) alos a few small optimisations are here.