summaryrefslogtreecommitdiff
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Changed all paths to be relative to src/lib instead of src/lib/libcJohn Birrell1997-05-031-3/+7
| | | | | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too. Notes: svn path=/head/; revision=25401
* Fixed #include and/or prototype bugs in synopsis.Bruce Evans1997-04-134-10/+21
| | | | Notes: svn path=/head/; revision=24877
* If we're running setuid/setguid then don't open the host alias file toWarner Losh1997-03-241-1/+4
| | | | | | | | | | | prevent information leakage. Closes PR 2578 Submitted by: Julian Assange Notes: svn path=/head/; revision=24196
* Fixed missing #include of <sys/types.h> and wrong arg types in synopsis.Bruce Evans1997-03-191-5/+6
| | | | | | | Reviewed by: wollman Notes: svn path=/head/; revision=24047
* Fixed missing function types in synopsis.Bruce Evans1997-03-191-0/+3
| | | | Notes: svn path=/head/; revision=24006
* Fix problem with FD_SET* overflow reporting.. Perror() didn't have enoughPeter Wemm1997-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 Notes: svn path=/head/; revision=23767
* _res_close() -> res_close()Peter Wemm1997-03-121-2/+2
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=23766
* Check for overflow of FD_SETGuido van Rooij1997-03-101-1/+6
| | | | Notes: svn path=/head/; revision=23617
* getnetbyaddr now takes an unsigned long as its first argument.Mike Pritchard1997-02-281-1/+1
| | | | Notes: svn path=/head/; revision=23180
* Buffer overflow from DNS name information which could cause root accessWarner Losh1997-02-261-1/+2
| | | | | | | | | | when called from lpd. Reviewed by: jkh, pst Submitted by: Oliver Friedrichs <oliver@secnet.com> Notes: svn path=/head/; revision=23128
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-2231-35/+35
| | | | Notes: svn path=/head/; revision=22993
* Fix PR2579: potential security hole in rcmd.cWarner Losh1997-02-091-2/+2
| | | | | | | Submitted by: Julian Assange Notes: svn path=/head/; revision=22469
* Update to reflect current include files.Mike Pritchard1997-01-301-3/+12
| | | | Notes: svn path=/head/; revision=22140
* Sort cross references.Wolfram Schneider1997-01-202-2/+3
| | | | Notes: svn path=/head/; revision=21907
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Fix fake failures on the short names which looks like hexadecimal numbersAndrey A. Chernov1997-01-081-8/+4
| | | | | | | Submitted by: paul@vix.com Notes: svn path=/head/; revision=21433
* Disable isxdigit block until proper solution will be foundAndrey A. Chernov1997-01-051-2/+7
| | | | | | | | isxdigit(name[0]) gives false failures on short names which looks like hexadecimal digits, f.e. "fade", "babe", "d133", etc. Notes: svn path=/head/; revision=21343
* Remove bogus weak reference.Jordan K. Hubbard1997-01-011-3/+1
| | | | Notes: svn path=/head/; revision=21168
* Tempt fate! 'cvs add' a file remotely which also exists in the Attic onPeter Wemm1996-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 Notes: svn path=/head/; revision=21058
* Here goes.. Bring the 4.9.5-P1 resolver into -current. This has thePeter Wemm1996-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.. Notes: svn path=/head/; revision=21057
* Small yet significant tweaks/cleanups:Bill Paul1996-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. Notes: svn path=/head/; revision=20953
* Another one-liner: remember to NUL terminate local copy of NIS hostBill Paul1996-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. Notes: svn path=/head/; revision=20900
* Make the __dns_getanswer() wrapper work right. For the newer versionsBill Paul1996-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. :) Notes: svn path=/head/; revision=20892
* comma typosWolfram Schneider1996-12-232-3/+4
| | | | Notes: svn path=/head/; revision=20888
* Add __dns_getanswer() hook to allow access to the gethostanswer()Bill Paul1996-12-221-1/+11
| | | | | | | functions from outside libc. (Needed for async DNS resolver in ypserv.) Notes: svn path=/head/; revision=20817
* Correct some xrefs/mlinks.Mike Pritchard1996-12-141-1/+2
| | | | Notes: svn path=/head/; revision=20486
* Fix the fix.Joerg Wunsch1996-12-131-1/+2
| | | | | | | Pointed out by: wollman, bde Notes: svn path=/head/; revision=20398
* Fix an embarassing and rather obscure incarnation of an uninitializedJoerg Wunsch1996-12-121-1/+1
| | | | | | | | | local variable use. Found by: actually using ascii2addr() :-/ Notes: svn path=/head/; revision=20375
* Get struct ether_addr directly from <net/ethernet.h> rather than pullingGarrett Wollman1996-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?). Notes: svn path=/head/; revision=20288
* I asked Bill Paul why _getnetbynis() was only being called with 2 parameters,Jordan K. Hubbard1996-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 Notes: svn path=/head/; revision=20168
* Remove more instances of passing arrays by address when they shouldJordan K. Hubbard1996-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! Notes: svn path=/head/; revision=20164
* Eliminate 3 more examples of gratutiously passing arrays by address.Jordan K. Hubbard1996-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." :-) Notes: svn path=/head/; revision=20163
* Doc updates and cleanups made with the bind-4.9.4 update some time ago.Peter Wemm1996-11-014-24/+102
| | | | | | | I thought I had committed these, but it seems not. Notes: svn path=/head/; revision=19302
* Add an "officially undocumented" tweak for squid so that it can see thePeter Wemm1996-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. Notes: svn path=/head/; revision=19301
* Bring back ns_* routines; we need them for ifconfig and route.Jordan K. Hubbard1996-10-161-2/+1
| | | | Notes: svn path=/head/; revision=18966
* Fix an error in the description of "h_errno". Add "const" to a fewJohn Polstra1996-10-081-4/+4
| | | | | | | declarations to make them agree with the actual prototypes in <netdb.h>. Notes: svn path=/head/; revision=18824
* Skip results that have unexpected lengthsPaul Traina1996-10-011-7/+6
| | | | Notes: svn path=/head/; revision=18608
* Sigh, back out the last bright idea I had here about compiling the res_*Peter Wemm1996-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. Notes: svn path=/head/; revision=17957
* back out last two changes, this caused the mandoc pages to be replaced byPeter Wemm1996-08-303-504/+529
| | | | | | | man pages. I'll fold in the real changes in a seperate commit. Notes: svn path=/head/; revision=17955
* oops, brain-lapse caused undefined symbolPeter Wemm1996-08-301-3/+3
| | | | Notes: svn path=/head/; revision=17922
* The last commit failed part-way through, re-add the generatedPeter Wemm1996-08-293-0/+698
| | | | | | | resolver man pages. Notes: svn path=/head/; revision=17917
* Revert change to build the reolver man pages on the fly, install thePeter Wemm1996-08-291-13/+10
| | | | | | | machine-generated versions Notes: svn path=/head/; revision=17916
* Merge in bind-4.9.4-P1 resolver...Peter Wemm1996-08-2923-3930/+860
| | | | Notes: svn path=/head/; revision=17903
* Update some more man pages to use the .Fx macro.Mike Pritchard1996-08-211-2/+3
| | | | Notes: svn path=/head/; revision=17763
* Submitted by: John Birrell <cimaxp1!jb@werple.net.au>Julian Elischer1996-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. Notes: svn path=/head/; revision=17706
* clear sockaddr_in's on stack before usePeter Wemm1996-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. Notes: svn path=/head/; revision=17543
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-1218-35/+62
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Add RCS Id and fix date.Garrett Wollman1996-06-171-2/+3
| | | | Notes: svn path=/head/; revision=16457
* Cross-reference addr2ascii(3).Garrett Wollman1996-06-171-3/+10
| | | | Notes: svn path=/head/; revision=16456
* Correct date and add $Id$ to reflect previous modification.Garrett Wollman1996-06-171-2/+3
| | | | Notes: svn path=/head/; revision=16454