summaryrefslogtreecommitdiff
path: root/libc/inet
AgeCommit message (Collapse)Author
2008-12-01constify more dataDenis Vlasenko
text+data text+rodata rwdata bss filename - 2534 2510 24 0 libc/inet/rpc/clnt_udp.o + 2534 2534 0 0 libc/inet/rpc/clnt_udp.o - 1904 1880 24 0 libc/inet/rpc/clnt_tcp.o + 1904 1904 0 0 libc/inet/rpc/clnt_tcp.o - 770 746 24 4 libc/inet/rpc/clnt_raw.o + 770 770 0 4 libc/inet/rpc/clnt_raw.o
2008-12-01rpc: constify data, localize unnecessarily static dataDenis Vlasenko
text+data text+rodata rwdata bss filename - 2308 2284 24 24 libc/inet/rpc/clnt_unix.o + 2308 2308 0 0 libc/inet/rpc/clnt_unix.o
2008-12-01random: use smaller data fields where appropriateDenis Vlasenko
text data bss dec hex filename - 130 156 0 286 11e libc/stdlib/random.o + 130 148 0 278 116 libc/stdlib/random.o - 586 0 0 586 24a libc/stdlib/random_r.o + 570 0 0 570 23a libc/stdlib/random_r.o
2008-12-01gethostbyname can use gethostbyname2, saving one nearly 0.5k static bufferDenis Vlasenko
text data bss dec hex filename - 45 0 480 525 20d libc/inet/gethostbyname.o + 18 0 0 18 12 libc/inet/gethostbyname.o
2008-12-01rpc: should check against max for int32, not intDenis Vlasenko
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.