summaryrefslogtreecommitdiff
path: root/libc/inet
AgeCommit message (Collapse)Author
2003-03-01Patch from Jeffrey Damick:Eric Andersen
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().
2003-02-12Eliminate a needless externEric Andersen
2003-01-30Per discussion with Nick Fedchik, restore original LGPLEric Andersen
licensing to libc/inet/ether_addr.c
2003-01-10Patch from Jay Kulpinski:Eric Andersen
__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.
2003-01-10Fix warningsEric Andersen
2003-01-10Patch from Nick Fedchik to support ether_atonEric Andersen
2002-12-04Implement the rest of the missing include/net/if.h interfacesEric Andersen
-Erik
2002-11-21Oops.Eric Andersen
2002-11-21Cleanup use of in6addr_loopback and in6addr_anyEric Andersen
2002-11-03Patch from "Cho, Seong-Myun" <smcho@xecurenexus.com> to limitEric Andersen
things to the lower 16 bits of 'id'.
2002-10-31Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen
been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
2002-09-17Fix a memory corruption bug.David McCullough
With gcc, sizeof on a sized array argument to a function returns 4, not 16 as was expected in this code. This caused inet_ntoa to overwrite whatever came before the buffer in the BSS by up to 12 bytes.
2002-08-19Fixup struct _res handling so apps using struct _res can actuallyEric Andersen
compile ("worst standard ever!") -Erik
2002-08-17Fixed __read_etc_hosts_r to return alias list and modified bufferManuel Novoa III
allocation accordingly. This fixes the segfault in the Python 2.2.1 socket test.
2002-08-16Remove __res_state function.Miles Bader
2002-08-16Make INCLUDE_FULL_RPC default to !HAVE_SHARED.Miles Bader
2002-08-16Replace all instances of _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__Eric Andersen
-Erik
2002-08-12I missed a spot.Eric Andersen
-Erik
2002-08-12Fix use of __pthread_once, and fix rpc usage of thread localEric Andersen
storage.... -Erik
2002-08-11Ugh. Make uClibc cross compile with gcc 2.95.x and threads. I wonderEric Andersen
if this is serious enough to warrent 0.9.14? -Erik
2002-08-09Changes so that this file builds if we are not using threads.David McCullough
2002-08-08Oops. missed a spot.Eric Andersen
-Erik
2002-08-08Fix a silly bug with using fstat64 instead of just fstat. NoEric Andersen
reason for 64bit stuff just to check perms. -Erik
2002-08-07Add getrpcent.c to default rpc buildEric Andersen
2002-08-07Apply integer overflow security fix for "CERT Advisory CA-2002-25 IntegerEric Andersen
Overflow In XDR Library" http://www.cert.org/advisories/CA-2002-25.html Patch from Solar Designer <solar@openwall.com>.
2002-08-06Fixup the last missing pieces of thread lockingEric Andersen
-Erik
2002-08-06Rework RPC code once again. By default, only enable theEric Andersen
stuff needed for NFS mounts, rsh, and similar. -Erik
2002-07-10Per bug report from Ronald Wahl <rwa@peppercon.com>:Eric Andersen
...inet_pton breaks since tolower is implemented as a macro and its argument is evaluated more than once: while ((ch = tolower (*src++)) != '\0') { So I fixed it by just undefining tolower() so we use the function version, not the macro. -Erik
2002-07-08Finer grained locking in __connect_dns() so we don't hold theEric Andersen
lock while sending packets out onto the wire. -Erik
2002-07-07Doh! search-n-replace strikes againEric Andersen
-Erik
2002-07-07Cleanup namespace leaks by prepending __ to global stuff toEric Andersen
indicate it is (alledgedly) private. -Erik
2002-07-07Kill namespace pollution in getrpcent.c. Silence other rpc warningsEric Andersen
by fixing prototypes. Fix global stuff so it should behave itself properly now, -Erik
2002-07-07Patch from Larry Doolittle <ldoolitt@recycle.lbl.gov> to cleanupEric Andersen
connect_dns() and simplify IPV6 support by reducing the number of ifdefs sprinkled about.
2002-06-20Fix DNS resolution so that it once again works. I'd broken itEric Andersen
when adding some locking code. -Erik
2002-06-18Make sure the sccsid tags never get compiled in.Eric Andersen
-Erik
2002-06-17kill cruftEric Andersen
2002-06-17Make things more re-entrany, kill some cruft.Eric Andersen
-Erik
2002-06-17Re-backport all the rpc stuff from glibc 2.2.5. This allows us to make thisEric Andersen
junk (and I do mean that ;-) thread safe without undue pain. Adds 12k worth to the code size I'm afraid, but since I never use NFS and therefore never include this stuff, I guess thats acceptable. I still need to enable the multi-threaded bits... -Erik
2002-06-12Yipe. As Joseph Chiu noticed, sockvec is supposed to be an int*Eric Andersen
not an int.
2002-05-30don't include the linux dir. Pointless and broken.Eric Andersen
-Erik
2002-05-12Fix some silly bugs and type problemsEric Andersen
2002-05-11Fix the defines which I had backwardsEric Andersen
2002-05-11Majorly rework to also cope with architectures which do not useEric Andersen
the socketcall system call, but instead implement each fundamental networking function directly as a system call. -Erik
2002-04-17Patch from Axel Barnitzke <barney@xkontor.com> to add basicEric Andersen
support for struct _res. This is a minimalist implementation, but should work for most anything out there.
2002-04-17Patch from Mike McDonald to make gethostbyname_r() not fail for things likeEric Andersen
gethostbyname("192.168.0.1"), which should work even when the /etc/hosts and /etc/config/hosts files do not exist.
2002-04-09Re-enable clnt_perror. Patch from Miles Bader.Eric Andersen
2002-04-03Patch from Jim Treadway <jim@stardot-tech.com> to eliminateEric Andersen
use of alarm() and therefore SIGARLM in the resolver and to instead use select, which is much cleaner.
2002-03-20Patch from Bart Visscher <magick@Linux-Fan.com> fixing someEric Andersen
missing pieces of the conversion to reentrant functions.
2002-03-19Fix missing defines. Forgot to check this in.Eric Andersen
-Erik
2002-03-19Bart Visscher <magick@Linux-Fan.com> has added some missing IPV6 support, andEric Andersen
added several additional reentrant networking functions such that iptables now runs with IPV6 support.