summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* handle long usernames more carefullyimp1998-01-071-5/+8
| | | | | Reviewed by: guido Obtained from: OpenBSD (Theo de Raadt)
* Removed unnecessary initialization of hp in gethostbyaddr_r.alex1997-12-251-3/+3
|
* Sorted lists.bde1997-10-211-20/+19
|
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-151-7/+5
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* Some adjustments for the resolver use of poll(). For some reason I thoughtpeter1997-09-161-7/+8
| | | | | | | an unimplemented syscall returned ENOSYS, rather than EINVAL. I have run statically linked code with this wrapper and it does appear to work fine on 2.2-stable which doesn't have poll(). ktrace shows the poll syscall fail once and the fallback to select() working.
* Call poll(2) from within the resolver but adapt to older kernels without itpeter1997-09-141-26/+68
| | | | | | | | | | | | | if necessary. This removes the need to malloc large fd_set's for selecting on high fd's (larger than FD_SETSIZE at libc compile time). The syscall adaptive stuff only happens on the very first call. SIGSYS is masked, and if the call to poll fails with ENOSYS, then we use select for the life of the program. If poll does not fail with ENOSYS, then we always use poll and skip the once-off signal masking gunk. This may be overkill, but it saved my neck a few times while working on multiple different sets of kernel sources, some with poll, some without.
* Add "options no_tld_query" to resolv.conf.brian1997-09-012-4/+6
| | | | | | Mention the capability in resolver(5). Mention that RES_OPTIONS can be used in resolver(5). Discussed with: -hackers
* kill the undeadpeter1997-07-133-239/+0
|
* This commit was generated by cvs2svn to compensate for changes in r27180,bde1997-07-033-0/+239
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import Lite2's src/lib, except for non-i386 machine-dependent directories,bde1997-07-034-4/+243
| | | | | | | | | | libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3 unimportant ones have already left the vendor branch.
| * pull this in to avoid fixing these twicepeter1996-08-301-5/+6
| |
| * recording cvs-1.6 file deathpeter1995-12-303-239/+0
| |
* | replace the OpenBSD fd_set sizing code with something more efficient.peter1997-06-281-9/+16
| | | | | | | | | | | | | | Only call malloc() if the fd is too big for the compiled in fd_set size, and don't use calloc either. This should reduce the impact of conflicts with private malloc implementations etc. When using the fd_set on the stack, only zero what is needed rather than all 1024 bits like FD_ZERO did.
* | Dynamically size fd_set in select rather than fail if too many filespeter1997-06-271-8/+9
| | | | | | | | | | are open. Obtained from: OpenBSD; by deraadt and dm
* | compensate for res_send <-> __res_send changespeter1997-06-271-2/+4
| |
* | Merge in bind-4.9.6 resolver changes. Note that they resolve thepeter1997-06-2710-69/+97
| | | | | | | | overflow problem differently.
* | Typo.charnier1997-06-181-2/+3
| |
* | Add MAXHOSTNAMELEN checkache1997-06-131-1/+3
| | | | | | | | Obtained from: OpenBSD
* | Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-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.
* | Fixed #include and/or prototype bugs in synopsis.bde1997-04-134-10/+21
| |
* | If we're running setuid/setguid then don't open the host alias file toimp1997-03-241-1/+4
| | | | | | | | | | | | | | | | prevent information leakage. Closes PR 2578 Submitted by: Julian Assange
* | 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." :-)
OpenPOWER on IntegriCloud