summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Fixed missing #include of <sys/types.h> and wrong arg types in synopsis.bde1997-03-191-5/+6
| | | | Reviewed by: wollman
* Fixed missing function types in synopsis.bde1997-03-191-0/+3
|
* Fix problem with FD_SET* overflow reporting.. Perror() didn't have enoughpeter1997-03-121-2/+6
| | | | | | | args, and errno hasn't actually been set so it probably doesn't make sense to report it via strerror(). Pointed out by: bde
* _res_close() -> res_close()peter1997-03-121-2/+2
| | | | Pointed out by: bde
* Check for overflow of FD_SETguido1997-03-101-1/+6
|
* getnetbyaddr now takes an unsigned long as its first argument.mpp1997-02-281-1/+1
|
* Buffer overflow from DNS name information which could cause root accessimp1997-02-261-1/+2
| | | | | | | when called from lpd. Reviewed by: jkh, pst Submitted by: Oliver Friedrichs <oliver@secnet.com>
* Revert $FreeBSD$ to $Id$peter1997-02-2231-35/+35
|
* Fix PR2579: potential security hole in rcmd.cimp1997-02-091-2/+2
| | | | Submitted by: Julian Assange
* Update to reflect current include files.mpp1997-01-301-3/+12
|
* Sort cross references.wosch1997-01-202-2/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1431-35/+35
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* 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.
OpenPOWER on IntegriCloud