summaryrefslogtreecommitdiffstats
path: root/libc/inet
Commit message (Collapse)AuthorAgeFilesLines
* Add function versions of ntohl and friendsEric Andersen2003-12-022-1/+68
|
* Avoid a potentially undefined operation with a veriable++ in a macroEric Andersen2003-12-021-2/+2
|
* 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
* Peter Kjellerstedt writes:Eric Andersen2003-10-182-2/+2
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* Patch from Tony J. White:Eric Andersen2003-10-152-1/+313
| | | | | | 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.
* Atsushi Nemoto writes:Eric Andersen2003-10-084-17/+17
| | | | | | | | | | | | | I found inappropriate data types are used in some places in networking codes. * tcp_seq is 32bit (u_long -> u_int32_t) * in_addt_t should be used for internet address (unsigned long -> in_addr_t) * socklen_t should be used for accept() This is a patch against uclibc-0.9.21 (can be applied for current CVS). 64bit platforms (sizeof(int)!=sizeof(long)) will need this. I believe this patch does not harm any 32bit platforms.
* 15 retries is really rather excessive...Eric Andersen2003-09-011-1/+1
|
* Update inet_aton() to support an undocumented feature of inet_aton,Eric Andersen2003-08-041-7/+13
| | | | | | | | per UNIX Network Programming, Volume 1, second edition: An undocumented feature of inet_aton is that if addrptr is a null pointer, the function still performs it validation of the input string, but does not store the result.
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-011-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should be standards compliant and with several optional features, including support for hexadecimal float notation, locale awareness, glibc-like locale-specific digit grouping with the `'' flag, and positional arg support. I tested it pretty well (finding several bugs in glibc's scanf in the process), but it is brand new so be aware. The *wprintf functions now support floating point output. Also, a couple of bugs were squashed. Finally, %a/%A conversions are now implemented. Implement the glibc xlocale interface for thread-specific locale support. Also add the various *_l(args, locale_t loc_arg) funcs. NOTE!!! setlocale() is NOT threadsafe! NOTE!!! The strto{floating point} conversion functions are now locale aware. The also now support hexadecimal floating point notation. Add the wcsto{floating point} conversion functions. Fix a bug in mktime() related to dst. Note that unlike glibc's mktime, uClibc's version always normalizes the struct tm before attempting to determine the correct dst setting if tm_isdst == -1 on entry. Add a stub version of the libintl functions. (untested) Fixed a known memory leak in setlocale() related to the collation data. Add lots of new config options (which Erik agreed to sort out :-), including finally exposing some of the stripped down stdio configs. Be careful with those though, as they haven't been tested in a long time. (temporary) GOTCHAs... The ctype functions are currently incorrect for 8-bit locales. They will be fixed shortly. The ctype functions are now table-based, resulting in larger staticly linked binaries. I'll be adding an option to use the old approach in the stub locale configuration.
* Per a patch from Rob McMullen, add getprotoent_r, getprotobyname_r,Eric Andersen2003-06-271-20/+74
| | | | and getprotobynumber_r
* 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-122-50/+41
|
* Per discussion with Nick Fedchik, restore original LGPLEric Andersen2003-01-301-12/+21
| | | | licensing to libc/inet/ether_addr.c
* 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.
* Fix warningsEric Andersen2003-01-101-1/+2
|
* Patch from Nick Fedchik to support ether_atonEric Andersen2003-01-102-1/+84
|
* Implement the rest of the missing include/net/if.h interfacesEric Andersen2002-12-041-22/+149
| | | | -Erik
* Oops.Eric Andersen2002-11-211-0/+1
|
* Cleanup use of in6addr_loopback and in6addr_anyEric Andersen2002-11-214-20/+36
|
* Patch from "Cho, Seong-Myun" <smcho@xecurenexus.com> to limitEric Andersen2002-11-031-1/+3
| | | | things to the lower 16 bits of 'id'.
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-312-15/+2
| | | | | | | | | | | | | | | 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
* Fix a memory corruption bug.David McCullough2002-09-171-3/+6
| | | | | | 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.
* 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
|
* Make INCLUDE_FULL_RPC default to !HAVE_SHARED.Miles Bader2002-08-161-1/+14
|
* Replace all instances of _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__Eric Andersen2002-08-161-10/+10
| | | | -Erik
* I missed a spot.Eric Andersen2002-08-121-0/+2
| | | | -Erik
* Fix use of __pthread_once, and fix rpc usage of thread localEric Andersen2002-08-121-10/+0
| | | | | storage.... -Erik
* Ugh. Make uClibc cross compile with gcc 2.95.x and threads. I wonderEric Andersen2002-08-111-20/+20
| | | | | if this is serious enough to warrent 0.9.14? -Erik
* Changes so that this file builds if we are not using threads.David McCullough2002-08-091-3/+2
|
* Oops. missed a spot.Eric Andersen2002-08-081-1/+1
| | | | -Erik
* Fix a silly bug with using fstat64 instead of just fstat. NoEric Andersen2002-08-081-2/+2
| | | | | reason for 64bit stuff just to check perms. -Erik
* Add getrpcent.c to default rpc buildEric Andersen2002-08-071-1/+2
|
* Apply integer overflow security fix for "CERT Advisory CA-2002-25 IntegerEric Andersen2002-08-071-1/+6
| | | | | Overflow In XDR Library" http://www.cert.org/advisories/CA-2002-25.html Patch from Solar Designer <solar@openwall.com>.
* Fixup the last missing pieces of thread lockingEric Andersen2002-08-061-22/+80
| | | | -Erik
* Rework RPC code once again. By default, only enable theEric Andersen2002-08-0614-33/+708
| | | | | stuff needed for NFS mounts, rsh, and similar. -Erik
* Per bug report from Ronald Wahl <rwa@peppercon.com>:Eric Andersen2002-07-101-19/+16
| | | | | | | | | | | ...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
* 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-072-5/+5
| | | | -Erik
* Cleanup namespace leaks by prepending __ to global stuff toEric Andersen2002-07-074-148/+140
| | | | | indicate it is (alledgedly) private. -Erik
* Kill namespace pollution in getrpcent.c. Silence other rpc warningsEric Andersen2002-07-074-24/+17
| | | | | | by fixing prototypes. Fix global stuff so it should behave itself properly now, -Erik
* Patch from Larry Doolittle <ldoolitt@recycle.lbl.gov> to cleanupEric Andersen2002-07-071-44/+46
| | | | | connect_dns() and simplify IPV6 support by reducing the number of ifdefs sprinkled about.
* Fix DNS resolution so that it once again works. I'd broken itEric Andersen2002-06-201-5/+22
| | | | | when adding some locking code. -Erik
* Make sure the sccsid tags never get compiled in.Eric Andersen2002-06-1826-30/+30
| | | | -Erik
* kill cruftEric Andersen2002-06-171-5/+4
|
* Make things more re-entrany, kill some cruft.Eric Andersen2002-06-175-440/+385
| | | | -Erik
* Re-backport all the rpc stuff from glibc 2.2.5. This allows us to make thisEric Andersen2002-06-1745-5018/+8139
| | | | | | | | 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
* Yipe. As Joseph Chiu noticed, sockvec is supposed to be an int*Eric Andersen2002-06-121-1/+1
| | | | not an int.