summaryrefslogtreecommitdiffstats
path: root/libc/inet
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* don't include the linux dir. Pointless and broken.Eric Andersen2002-05-301-1/+0
| | | | -Erik
* Fix some silly bugs and type problemsEric Andersen2002-05-121-15/+14
|
* Fix the defines which I had backwardsEric Andersen2002-05-111-26/+9
|
* Majorly rework to also cope with architectures which do not useEric Andersen2002-05-111-2/+99
| | | | | | the socketcall system call, but instead implement each fundamental networking function directly as a system call. -Erik
* Patch from Axel Barnitzke <barney@xkontor.com> to add basicEric Andersen2002-04-171-0/+66
| | | | | support for struct _res. This is a minimalist implementation, but should work for most anything out there.
* Patch from Mike McDonald to make gethostbyname_r() not fail for things likeEric Andersen2002-04-171-0/+5
| | | | | gethostbyname("192.168.0.1"), which should work even when the /etc/hosts and /etc/config/hosts files do not exist.
* Re-enable clnt_perror. Patch from Miles Bader.Eric Andersen2002-04-091-18/+8
|
* Patch from Jim Treadway <jim@stardot-tech.com> to eliminateEric Andersen2002-04-031-22/+12
| | | | | use of alarm() and therefore SIGARLM in the resolver and to instead use select, which is much cleaner.
* Patch from Bart Visscher <magick@Linux-Fan.com> fixing someEric Andersen2002-03-201-1/+3
| | | | missing pieces of the conversion to reentrant functions.
* Fix missing defines. Forgot to check this in.Eric Andersen2002-03-191-0/+9
| | | | -Erik
* Bart Visscher <magick@Linux-Fan.com> has added some missing IPV6 support, andEric Andersen2002-03-196-307/+1601
| | | | | added several additional reentrant networking functions such that iptables now runs with IPV6 support.
* Swap in the new stdio code.Manuel Novoa III2002-03-121-10/+7
|
* A few more little cleanupsEric Andersen2002-02-261-1/+1
|
* don't pretend to be reentrant yetEric Andersen2002-02-261-0/+6
|
* Fix rpc + threads so it now compiles.Eric Andersen2002-02-261-21/+60
|
* Thomas Fritzsche noticed that __open_etc_hosts was only changing aEric Andersen2002-02-261-6/+6
| | | | | | local copy of the FILE pointer, thereby causing /etc/hosts lookups to fail with Resolver errors. This patch from Thomas fixes the problem.
* A number of naming updates in preparation for adding inEric Andersen2002-02-131-8/+16
| | | | | proper threading. Most of this is from Stefan Soucek, with additions and changes as needed from me.
* I just wrote up gethostent(), sethostent(), and endhostent()Eric Andersen2002-02-022-12/+85
| | | | -Erik
* Grr. I should learn to compile stuff before committingEric Andersen2002-02-022-16/+4
|
* OopsEric Andersen2002-02-021-2/+2
|
* Fix hstrerrorEric Andersen2002-02-021-6/+12
|
* Add in support for inet_netof, inet_lnaof, inet_makeaddr and hstrerror.David McCullough2002-01-173-3/+88
|
* Patch from Stefan Soucek <ssoucek@coactive.com> to removeEric Andersen2002-01-091-41/+47
| | | | | alloca (when non-reentrant) since alloca can blow the stack pretty easily on mmu-less.
* Patch to add rcmd support, from Stefan Soucek, which I'd longEric Andersen2002-01-022-1/+670
| | | | | ago forgotten. Oops. Needed some minor scrubbing for bitrot, -Erik
* Steven Carr noticed that uClibc's inet_aton() is stricter then inEric Andersen2001-12-201-1/+7
| | | | | | | | glibc, since no trailing blanks was permitted, such that inet_aton("192.168.1.1 ",&value); would work with glibc, and fail with uClibc. This brings uClibc's inet_aton() behavior into sync with glibc's behavior. -Erik
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-192-0/+2
|
* patch from Jari Korva <jpkorva@iki.fi>:Eric Andersen2001-12-072-7/+12
| | | | | | | | - fixes endianness bug in gethostbyaddr() (i386 worked fine, while m68k didn't: 192.168.160.162 was queried with 192.168.160.162.in-addr.arpa while it should have been 162.160.168.192.ip-addr.arpa) - contains missing pieces from my previous getnameinfo() patch: now it actually compiles!
* Adjust naming for __FORCE_GLIBC__ to __FORCE_GLIBC and addEric Andersen2001-11-2150-50/+50
| | | | | support for __FORCE_NOGLIBC per Brian Stafford <brian.stafford@office-logic.com>
* Patch from Jari Korva <jpkorva@iki.fi>Eric Andersen2001-11-071-44/+300
| | | | | | | | | | | | | | | | | | | | | | I found some support in uClibc for IPv6 but I needed some more... Enclosed is the patch containing following modifications: - getnameinfo port from lates glibc - IPv6 support for gethostbyaddr() - IPv6 support for get_hosts_byname and read_etc_hosts (among other things this fixed a bug in gethostbyname2 in a case when user asked for an IPv6 but got a v4 address if it was present in /etc/hosts) - defined ip6addr_any and in6addr_loopback (though the place where I defined these isn't correct, I guess) What is still missing: - getaddrinfo (this could be ported also from glibc but it won't be as easy as porting getnameinfo, I guess) I have tested the patch using enclosed test program and boa web server. Seems to work ;)
* Patch from Jari Korva <jari.korva@vtt.fi> to fix a memory leakEric Andersen2001-11-051-0/+1
| | | | in dns_lookup.
* Yet more minor cleanupsEric Andersen2001-10-041-2/+2
|
* With all the headerfile changes, some functions didn't get there arg typesDavid McCullough2001-10-041-1/+1
| | | | fixed up.
* Silence stupid warnings caused by bad kernel network includesEric Andersen2001-09-274-0/+8
|
* Update to accomodate the header file changesEric Andersen2001-09-275-9/+67
|
* A patch from Michal Moskal <malekith@pld.org.pl> to includeEric Andersen2001-07-093-2/+152
| | | | | partial IPV6 support. This adds things like gethostbyname2(). Off by defaut, of course,
* Silence a few warnings.Eric Andersen2001-06-124-1/+7
|