aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/portmap
Commit message (Collapse)AuthorAgeFilesLines
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andAlfred Perlstein2001-03-1910-1445/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=74462
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68965
* Treat all interface aliases as local addresses.Brian Somers2000-08-091-15/+40
| | | | | | | | | | The new rtiparse() function should really be in libc IMHO.... I'm sick of writing this code :-( PR: 20381 Notes: svn path=/head/; revision=64450
* Mention that portmap(8) utilizes hosts_access(5).Chris Timmons2000-03-021-1/+8
| | | | | | | Reviewed by: asmodai Notes: svn path=/head/; revision=57702
* K&RifyBrian Somers2000-01-156-41/+81
| | | | Notes: svn path=/head/; revision=56074
* As we parse the interface list, ignore sockaddr_dl's thatBrian Somers2000-01-126-103/+108
| | | | | | | | | | | | | | | | | | | don't have an interface index that's the same as the if_msghdr interface index. This prevents the occasional perror("SIOCGIFFLAGS") from appearing at boot time. While I'm there: Make a couple of error messages more useful. Add a missing include. Add some braces to silence gccs dumb complaints. Add some consts Ansify decls Add copyright to pmap_check.h (well, you could say it's been rewritten) Notes: svn path=/head/; revision=55865
* $Id$ -> $FreeBSD$Peter Wemm1999-08-287-7/+7
| | | | Notes: svn path=/head/; revision=50479
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48791
* Fixed world breakage in previous commit. -lwrap was in LDFLAGS whereBruce Evans1999-03-291-3/+3
| | | | | | | | | it has no effect. Fixed the usual style bugs for DPADD and LDADD. Notes: svn path=/head/; revision=45101
* Enable tcp_wrapper support by default.Mark Murray1999-03-281-2/+4
| | | | Notes: svn path=/head/; revision=45090
* Ad #include stdlib.h to get the prototype for malloc().John Birrell1998-08-171-1/+2
| | | | Notes: svn path=/head/; revision=38379
* Don't clobber errno when reaping child processes.Tor Egge1998-04-261-1/+6
| | | | Notes: svn path=/head/; revision=35455
* Don't assume that a computer can have no more thanBrian Somers1998-01-211-46/+79
| | | | | | | | 256 interfaces (mine doesn't). Instead, find local interface addresses using sysctl(). Notes: svn path=/head/; revision=32669
* Use err(3). Add usage().Philippe Charnier1997-10-096-42/+86
| | | | | | | | Correct the .Nd string: in real life, portmap is translating rpc prog numbers to darpa ports, not the opposite. Notes: svn path=/head/; revision=30242
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-311-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24428
* Sort cross references.Wolfram Schneider1997-01-201-2/+2
| | | | Notes: svn path=/head/; revision=21880
* This is purely a bandaid to lower the risk of running out of slotsPeter Wemm1997-01-111-1/+1
| | | | | | | | | for the local interfaces. It's not uncommon to have >32 interfaces these days. This is a temporary patch until it's fixed to use sysctl or whatever. Notes: svn path=/head/; revision=21534
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadGarrett Wollman1996-12-101-3/+6
| | | | | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it. Notes: svn path=/head/; revision=20287
* Typo.Joerg Wunsch1996-02-051-1/+1
| | | | | | | Submitted by: somebody in Usenet whose name i forgot Notes: svn path=/head/; revision=13916
* Correct ip protocol in error message, when binding the tcp port.Adam David1995-10-271-1/+1
| | | | Notes: svn path=/head/; revision=11841
* Close:Jordan K. Hubbard1995-08-051-0/+1
| | | | | | | | | | >Number: 656 >Category: docs >Synopsis: -v is not fully documented in portmap.8 Submitted by: Mike Grupenhoff <kashmir@umiacs.umd.edu> Notes: svn path=/head/; revision=9948
* Remove trailing whitespace.Rodney W. Grimes1995-05-305-31/+31
| | | | Notes: svn path=/head/; revision=8857
* Fix conflicts from importPaul Traina1994-09-291-1/+2
| | | | Notes: svn path=/head/; revision=3195
* Portmap 3.0 from win.tue.nlPaul Traina1994-09-2910-4/+624
| | | | Notes: svn path=/cvs2svn/branches/WIN_TUE_NL/; revision=3192
* Delete obsolete references to librpc.a.Garrett Wollman1994-08-081-2/+0
| | | | Notes: svn path=/head/; revision=1923
* Get rid of update. Make man page installation work with our schemeGarrett Wollman1994-08-051-1/+1
| | | | | | | (and rename a few in the process). Notes: svn path=/head/; revision=1863
* BSD 4.4 Lite usr.sbin SourcesRodney W. Grimes1994-05-263-0/+659
Notes: svn path=/cvs2svn/branches/WIN_TUE_NL/; revision=1553