summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Fix fake failures on the short names which looks like hexadecimal numbersache1997-01-081-8/+4
| | | | Submitted by: paul@vix.com
* Disable isxdigit block until proper solution will be foundache1997-01-051-2/+7
| | | | | isxdigit(name[0]) gives false failures on short names which looks like hexadecimal digits, f.e. "fade", "babe", "d133", etc.
* Remove bogus weak reference.jkh1997-01-011-3/+1
|
* Tempt fate! 'cvs add' a file remotely which also exists in the Attic onpeter1996-12-301-0/+64
| | | | | | | | | RELENG_2_2! This is part#2 of the previous commit to src/lib/libc/net to contain the potential damage. This provides stubs so that binaries linked in 2.2 will run on 3.0
* Here goes.. Bring the 4.9.5-P1 resolver into -current. This has thepeter1996-12-3019-216/+1268
| | | | | DNSSEC stuff, among other things. There are also some renamed functions, I've left out the res_stubs.c from this commit in case cvs bombs out..
* Small yet significant tweaks/cleanups:wpaul1996-12-275-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | - getservent: o put _yp_check() proto under #ifdef YP where it belongs o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - gethostbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long - getnetbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - ether_addr: o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying (in this case it's BUFSIZ + 2 bytes, but it happens that BUFSIZ == YPMAXRECORD. - gethostbydns: o nuke stray 'return(NULL)' in __dns_getanswer() (harmless but looks silly) These are 2.2 candidates. I will wait a few days to make sure these don't break anything and then, if there are no objections, move them to the 2.2 branch.
* Another one-liner: remember to NUL terminate local copy of NIS hostwpaul1996-12-241-2/+3
| | | | | | | | | | lookup results. Without this, doing multiple host/addr lookups in a single process yeilds strange results (the buffer is static, and garbage may be left behind from previous lookups). I just noticed this in 2.2-BETA. Unless somebody threatens to chop my hands off with an axe, I'm going to move this to the 2.2-RELENG branch shortly.
* Make the __dns_getanswer() wrapper work right. For the newer versionswpaul1996-12-241-1/+14
| | | | | | | of BIND, we need to tweak some things to that gethostanswer() knows whether or not we're dealing with an IPv4 or IPv6 address. (This'll teach me to use a 2.1.0 system for NIS development -- but it's so nice and stable I just can't being myself to upgrade it. :)
* comma typoswosch1996-12-232-3/+4
|
* Add __dns_getanswer() hook to allow access to the gethostanswer()wpaul1996-12-221-1/+11
| | | | functions from outside libc. (Needed for async DNS resolver in ypserv.)
* Correct some xrefs/mlinks.mpp1996-12-141-1/+2
|
* Fix the fix.joerg1996-12-131-1/+2
| | | | Pointed out by: wollman, bde
* Fix an embarassing and rather obscure incarnation of an uninitializedjoerg1996-12-121-1/+1
| | | | | | local variable use. Found by: actually using ascii2addr() :-/
* Get struct ether_addr directly from <net/ethernet.h> rather than pullingwollman1996-12-102-8/+4
| | | | | | in lots of unrelated junk from <net/if.h> and <net/if_ether.h>. These functions still aren't prototyped anywhere (but should be in <net/ethernet.h>---got that, Bill?).
* I asked Bill Paul why _getnetbynis() was only being called with 2 parameters,jkh1996-12-061-3/+3
| | | | | | | | | | | | | | and he said: The 3rd agrument is new; looks like it was part of the upgrade to a new BIND with some IPv6 support. The third argument here should be AF_INET. In order for it to be anything else, I'd have to add new NIS functions to support IPv6 lookups. I don't even know what those look like yet. So there ya go, add AF_INET as the 3rd argument to the call. Submitted-by: wpaul
* Remove more instances of passing arrays by address when they shouldjkh1996-12-051-7/+7
| | | | | have simply been passed as arrays. In some cases, casts had even been added to remove the warnings generated by such misuse! Aieee!
* Eliminate 3 more examples of gratutiously passing arrays by address.jkh1996-12-051-3/+3
| | | | | Everyone please call ParaSoft today and say "I will buy 57 copies of Insure++ tomorrow, but first I want a FreeBSD version." :-)
* Doc updates and cleanups made with the bind-4.9.4 update some time ago.peter1996-11-014-24/+102
| | | | I thought I had committed these, but it seems not.
* Add an "officially undocumented" tweak for squid so that it can see thepeter1996-11-011-2/+7
| | | | | | TTL of DNS records that it looks up for it's resolver cache. Obtained from: Endre Balint Nagy <bne@CareNet.hu>, via squid-1.1.x source.
* Bring back ns_* routines; we need them for ifconfig and route.jkh1996-10-161-2/+1
|
* Fix an error in the description of "h_errno". Add "const" to a fewjdp1996-10-081-4/+4
| | | | declarations to make them agree with the actual prototypes in <netdb.h>.
* Skip results that have unexpected lengthspst1996-10-011-7/+6
|
* Sigh, back out the last bright idea I had here about compiling the res_*peter1996-08-309-2/+3633
| | | | | | | | routines from contrib/bind directly. There were too many problems, including having to add -DUSE_OPTIONS_H to the entire libc source in order for the contrib code to pick up it's options, and so on. Instead, I've merged the changes, libc is now self contained again.
* back out last two changes, this caused the mandoc pages to be replaced bypeter1996-08-303-504/+529
| | | | man pages. I'll fold in the real changes in a seperate commit.
* oops, brain-lapse caused undefined symbolpeter1996-08-301-3/+3
|
* The last commit failed part-way through, re-add the generatedpeter1996-08-293-0/+698
| | | | resolver man pages.
* Revert change to build the reolver man pages on the fly, install thepeter1996-08-291-13/+10
| | | | machine-generated versions
* Merge in bind-4.9.4-P1 resolver...peter1996-08-2923-3930/+860
|
* Update some more man pages to use the .Fx macro.mpp1996-08-211-2/+3
|
* Submitted by: John Birrell <cimaxp1!jb@werple.net.au>julian1996-08-201-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended). I've created a new header (pthread_np.h) for the non-POSIX stuff. The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags. also: Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc. also: I should have sent this diff with the pthread(3) man page. It allows people to type make -DWANT_LIBC_R world to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r. also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r.
* clear sockaddr_in's on stack before usepeter1996-08-121-26/+28
| | | | | | | | | set sin_len close one ftp port bounce attack have rresvport() use bindresvport() rather than duplicate the code, rresvport() is a superset of bindresvport(). Obtained from: OpenBSD / Jason Downs / Theo de Raadt, minor tweaks by me.
* General -Wall warning cleanup, part I.jkh1996-07-1218-35/+62
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Add RCS Id and fix date.wollman1996-06-171-2/+3
|
* Cross-reference addr2ascii(3).wollman1996-06-171-3/+10
|
* Correct date and add $Id$ to reflect previous modification.wollman1996-06-171-2/+3
|
* Cross-reference addr2ascii(3) and inlcude a note about how thosewollman1996-06-171-2/+16
| | | | functions are preferred but are not widely available as yet.
* It would help if I actually added the source code for these routines.wollman1996-06-133-0/+377
|
* Add an independent implementation of addr2ascii(3) and ascii2addr(3)wollman1996-06-131-2/+5
| | | | following the API of the INRIA IPv6 implementation.
* Improve NIS performace of getservbyname() and getservbyport(). Both thesewpaul1996-06-013-7/+123
| | | | | | | | | | | | | | | | | | | | | | functions are implimented as wrappers around getservent(), which means it's up to getservent() to do all the work. The NIS support in getservent() only allows it to scan through the services.byname map one entry at a time until it finds the requested service name/port. This can be painfully slow due to the overhead involved (lots and lots of successive RPCs). To fix this, we allow getservbyname() and getservbyport() to signal getservent() that if NIS is turned on (there's a '+' in /etc/services), the usual yp_first()/yp_next() linear search should be abandoned and yp_match() used instead. This causes getservent() to immediately locate the requested entry instead of wasting time groping through the whole map. The downside is that this trick is accomplished by exporting a couple of pointers from getservent.c which getservbyname.c and getservbyport.c can preset in order to tell getservent() what to do. If all three functions were in the same source module, then the extra cruft could be delcared static to avoid poluting the global symbol space. Maybe they should be combined anyway. For now I've settled on prepending lots of underscores.
* Use the setsockopt for IP_PORTRANGE to cause rresvport() to allocate apeter1996-05-311-12/+24
| | | | | | | | | privileged port within a single bind(), rather than looping through attempts to bind over and over again over progressively lower ports. This should speed up rlogin/rsh etc, and will probably cure some of the strange rlogin hangs that have been reported in the past where rresvport() managed to bind() to a port address that it shouldn't have.
* Do not install the now unsupported netns and netisompp1996-04-082-4/+7
| | | | | related man pages. Comment out cross references to those man pages from other man pages.
* Correct some man page xrefs, and some other minor changes to bring somempp1996-04-081-1/+1
| | | | | | man pages up to mdoc guidelines and fix some minor formatting glitches. Also fixed a number of man pages to not abuse the .Xr macro to display functions and path names and a lot of other junk.
* Fix other half of problem reported in PR #1079: _getnetbynisaddr() iswpaul1996-03-231-12/+41
| | | | | | | | | | | | | | | | | broken. The translation from network number to ASCII string was not working correctly (you would sometimes get things like 0.244.0.0 instead of 244.0.0). Also copied results of yp_match() to a static buffer for consistency with gethostbynis.c. Note: _getnetbynisaddr() chops off trailing .0's, i.e. 244.0.0 is truncated to 244. By contrast, getnetbyht.c code (for local /etc/networks lookups) leaves the traling .0's in place. This means that the NIS and local file lookups will match different things when looking up the same network number. I'm not sure which is the correct behavior. (I think the DNS lookup code tries all combinations -- should the NIS and local host lookup routines do that too?)
* gethostbynis.c:wpaul1996-03-162-8/+19
| | | | | | | | | | | | | | | | | | - Fix problem described in PR #1079: _gethostbynisaddr() doesn't work. Make it accept the same arguments as all the other gethostby*addr() functions and properly convert the supplied IP address into a text string so that yp_match() can find it in the hosts.byaddr map. - Also fix potential memory leak: copy the results of yp_match() to a static buffer and free the result (yp_match() returns dynamically allocated memory). ether_addr.c: - Since I was in the neighborhood, fix ether_ntohost() and ether_hostton() so that they don't bogusly for a free(result) when yp_match() fails.
* Fix inet_network to not dump core if passed in an addressmpp1996-02-171-3/+1
| | | | | | with more than 4 octets (e.g. 1.2.3.4.5). Submitted by: Amy Baron <amee@beer.org> via NetBSD-bugs
* Fixed a bunch of man page cross references that werempp1996-02-152-2/+2
| | | | | | | | in the main text of various man pages. Thanks to Warner Losh for adding an option to manck to allow it to scan the entire man page looking for bogus xrefs, instead of just checking the SEE ALSO section.
* XNS sort-of-support is no more.wollman1996-02-131-3/+4
|
* Correct a bunch of man page cross references and generallympp1996-02-111-3/+3
| | | | | | try and silence "manck". ncurses, rpc, and some of the gnu stuff are still a big mess, however.
* Added some missing MLINKS for section 3 man pages.mpp1996-02-091-1/+1
| | | | | | | Also corrected a few minor formatting errors, file location and cross references in some of the section 3 man pages. This shuts up a lot of the output from "manck" for section 3.
* Remove support for OSI networking in user-land (#ifdef OSI aor CCITT)wollman1996-02-062-2/+9
| | | | | in preparation for its removal from the kernel source tree. NB: because a function was deleted, libc is now at version 3.0 (was 2.2 previously).
OpenPOWER on IntegriCloud