summaryrefslogtreecommitdiff
path: root/libc/inet
AgeCommit message (Collapse)Author
2008-12-01rpc: ifdef out xdrrec_{get,put}long if int32 == long,Denis Vlasenko
otherwise use xdrrec_{get,put}int32 + trivial transform. eliminate warnings. des: small shrink + eliminate a warning
2008-11-20Last portion of libc_hidden_proto removal.Denis Vlasenko
Appears to build fine (several .configs tried)
2008-11-20next portion of libc_hidden_proto removalDenis Vlasenko
2008-11-18libc_hidden_proto removal, a few more functionsDenis Vlasenko
2008-11-18libc_hidden_proto removal, just a few functionsDenis Vlasenko
2008-11-17resolver: use timeout of 5 (glibc uses that).Denis Vlasenko
delete some duplication in constants.
2008-11-17resolver: separate gethostent and gethostent_r into two .o files;Denis Vlasenko
delete two stray files which compile to nothing
2008-11-17resolver: move large code blocks to arrange related functions closer.Denis Vlasenko
almost no code changes
2008-11-17resolver: fix some previous TODOs, add new ones.Denis Vlasenko
2008-11-16resolver: improved support for overriding DNS server addressesDenis Vlasenko
in _res structure. Used by busybox's nslookup.
2008-11-16resolver: make getaddrinfo actually respect _res.nsaddr_list;Denis Vlasenko
add largish comment explaining what we are doing, and why; fixes to make IPv6-only resolver possible
2008-11-15resolver: more locking fixes.Denis Vlasenko
2008-11-14fixing resolver part 3: fix completely bogus lockingDenis Vlasenko
in __dns_lookup.
2008-11-14fixing resolver part 2: make _res structure membersDenis Vlasenko
configurable. we don't use most of it anyway.
2008-11-14fixing resolver, part 1Denis Vlasenko
2008-11-13- silence shadow warningBernhard Reutner-Fischer
2008-11-07- less verbose make cleanBernhard Reutner-Fischer
2008-11-02resolver: reinstate searching if search domains accidentally nukedDenis Vlasenko
in one of recent commits :)
2008-11-01__dns_lookup: document and optimize a bitDenis Vlasenko
text data bss dec hex filename - 1545 2 4 1551 60f libc/inet/dnslookup.o + 1528 2 4 1534 5fe libc/inet/dnslookup.o
2008-11-01resolver: partially fix bug 660 -Denis Vlasenko
do not treat negative response as error
2008-11-01resolver: fix part of bug 1468:Denis Vlasenko
"gethostbyname() fails if DNS server returns more than 23 addresses"
2008-11-01resolver: trivial code trasformations for readability.Denis Vlasenko
No logic changes. Code size is the same too.
2008-11-01trivial code shrink by making some strings staticDenis Vlasenko
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
2008-10-28getaddrinfo.c: improve readabilityDenis Vlasenko
2008-10-28getaddrinfo.c: reformat. no code changesDenis Vlasenko
2008-10-28Remove all references to __no_netlink_support as after thurough scrutiny of Ricard Wanderlof
the code it was never used in any useful way.
2008-10-28make getaddrinfo to NOT query DNS for IPv6 address if host is inDenis Vlasenko
/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
2008-10-27- fix typo in r23808Bernhard Reutner-Fischer
2008-10-27libc/inet/getaddrinfo.c: const'ify some data;Denis Vlasenko
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
2008-10-22- remove superfluous ';'. No objcode changes.Bernhard Reutner-Fischer
2008-10-20- need to grab features before looking at eventually requested netlink supportBernhard Reutner-Fischer
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..
2008-10-19- do not include netlink headers if netlink is turned off (Michael Deutschmann)Bernhard Reutner-Fischer
Closes #5544
2008-10-17- des uses ntohlBernhard Reutner-Fischer
2008-10-06- hide relocation (Peter S. Mazinger)Bernhard Reutner-Fischer
2008-10-03- use c89-style commentsBernhard Reutner-Fischer
Closes issue #5194
2008-09-11- remove gethostbyname_r relocationBernhard Reutner-Fischer
2008-08-28Move ifaddrs.h from uClibc-internal location libc/inet/ to include/, and makeRicard Wanderlof
it conditionally included among the installed header files depending on UCLIBC_HAS_AI_ADDRCONFIG.
2008-08-27Removed redundant includes.Ricard Wanderlof
2008-07-23- trim any trailing whitespaceBernhard Reutner-Fischer
2008-07-01Simplified check_pf() so it returns a bit vector in an unsigned int,Ricard Wanderlof
instead of modifying the contents of two bools.
2008-06-28#include <ifaddrs.h> should be #include "ifaddrs.h"Denis Vlasenko
2008-06-27Removed include/ifaddrs.h and put contents in libc/inet/ifaddrs.h, as we do notRicard Wanderlof
need the file outside of uClibc anyway.
2008-06-27Fixed #if -> #if defined.Ricard Wanderlof
Take __UCLIBC_HAS_IPV4__ into account.
2008-06-27Added support for the AI_ADDRCONFIG flag in the hints->ai_flags parameter to ↵Ricard Wanderlof
getaddrinfo(3).
2008-06-12Revert revision 19347, plus libc_hidden_proto for __uc_malloc.Bernd Schmidt
Some of the code is functionally identical before and after, but for now I'm just mechanically reverting the entire mess.
2008-06-12Revert revision 19343 and also remove libc_hidden_proto for __uc_malloc.Bernd Schmidt
For now, a straight revert; we can decide later wheter we want to do something more.
2008-06-10Revert revison 19346, except parts needed by later patches (r19347 also addedBernd Schmidt
__uc_malloc calls in getnetent.c, so we must retain the include and libc_hidden_proto).
2008-06-06Remove superfluous attribute_hidden from functionDenis Vlasenko
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).
2008-06-06Use more natural way to return a value in __read_etc_hosts_r:Denis Vlasenko
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.
2008-06-06Fix failure in test/inet/gethost_r-align:Denis Vlasenko
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