summaryrefslogtreecommitdiffstats
path: root/lib/libc/xdr
Commit message (Collapse)AuthorAgeFilesLines
* Fix a comment within a comment warning due to a missing "*/".deischen2001-04-101-1/+1
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-1910-406/+646
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
* Use ieee floats on ia64.dfr2001-03-061-1/+1
|
* mdoc(7) police: print #ifdef/#endif literally,ru2001-02-081-3/+3
| | | | and as list items (to get the correct offset).
* Fixed errors in prototypes. Many were hiding under mdoc errors.bde2001-02-051-0/+4
|
* man(7) -> mdoc(7).ru2001-01-181-583/+475
|
* Do proper byte swapping in 64bit routines.sheldonh2000-04-121-14/+23
| | | | | | PR: 17681 Submitted by: "David E. Cross" <crossd@cs.rpi.edu> Obtained from: NetBSD
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-021-12/+24
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Close PR#16028. Make the sanity check saner. The condition that wewpaul2000-01-191-1/+1
| | | | | | | | | check for on the server may arise legitimately on the client. The correct way to check for a zero record length is to check for it without the LAST_FRAG marker in it, since it's legal to send a LAST_FRAG marker with 0 bytes of data. PR: misc/16028
* $Id$ -> $FreeBSD$peter1999-08-289-9/+9
|
* Add support for the RPC 64-bit integer type ``hyper''.obrien1998-09-081-1/+57
|
* Change the sanity test here. It's not correct to assume that the recordwpaul1998-05-201-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | size we receive here should fit into the receive buffer. Unfortunately, there's no 100% foolproof way to distinguish a ridiculously large record size that a client actually meant to send us from a ridiculously large record size that was sent as a spoof attempt. The one value that we can positively identify as bogus is zero. A zero-sized record makes absolutely no sense, and sending an endless supply of zeroes will cause the server to loop forever trying to fill its receive buffer. Note that the changes made to readtcp() make it okay to revert this sanity test since the deadlock case where a client can keep the server occupied forever in the readtcp() select() loop can't happen anymore. This solution is not ideal, but is relatively easy to implement. The ideal solution would be to re-arrange the way dispatching is handled so that the select() loop in readtcp() can be eliminated, but this is difficult to implement. I do plan to implement the complete solution eventually but in the meantime I don't want to leave the RPC library totally vulnerable. That you very much Sun, may I have another.
* Patch RPC library to avoid possible denial of service attacks as describedwpaul1998-05-151-1/+7
| | | | | | | | | | | | recently in BUGTRAQ. The set_input_fragment() routine in the XDR record marking code blindly trusts that the first two bytes it sees will in fact be an actual record header and that the specified size will be sane. In fact, if you just telnet to a listening port of an RPC service and send a few carriage returns, set_input_fragment() will obtain a ridiculously large record size and sit there for a long time trying to read from the network. A sanity test is required: if the record size is larger than the receive buffer, punt.
* Cast a pointer to a long, not an int and make the arg passed to the functionjb1998-05-111-2/+2
| | | | a long too (it does have a proper prototype).
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-151-3/+2
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* Restore Id.wpaul1997-05-281-0/+1
| | | | Pointed out by: bde
* Resolve conflicts.wpaul1997-05-289-11/+10
|
* This commit was generated by cvs2svn to compensate for changes in r26216,wpaul1997-05-281-0/+163
| | | | which included commits to RCS files with non-trunk default branches.
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-031-2/+6
| | | | | | | | | | 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.
* Revert $FreeBSD$ to $Id$peter1997-02-228-8/+8
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-148-8/+8
| | | | | | | | 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.
* - Missing prototypes, including pointers to functionspeter1996-12-307-150/+375
| | | | | | | | - 64 bit long type safe (wire protocols specified in explicit sized types) - Support systems that don't do unaligned accesses - Support for explicit int16 and int32 sizes in xdr Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* xdr manpage linkspeter1996-12-301-0/+33
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* delete doubled words, e.g.: "the the" -> "the"wosch1996-10-051-1/+3
|
* Minor cleanup of the rpc man pages to silence manck.mpp1996-02-121-2/+2
|
* minor cleanup, #includes.phk1995-10-225-6/+11
|
* Confirmed to work by: rcarter@geli.com (Russell Carter)bde1995-07-221-4/+1
| | | | | Enable xdr_float.c. I believe it works on i386's although it isn't portable enough to be in a machine-independent directory.
* Remove trailing whitespace.rgrimes1995-05-308-62/+62
|
* More directory cleanup after YP merge.wollman1994-08-072-7/+4
|
* Moving RPC stuff into libc, part 2.wollman1994-08-079-0/+2947
OpenPOWER on IntegriCloud