summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpcbind
Commit message (Collapse)AuthorAgeFilesLines
* No network addresses in the system isn't a good excuseyar2008-02-141-4/+4
| | | | | | | | | for rpcbind(8) to crash. The crash was due to a boolean variable initialized improperly. Besides fixing the initialization, pick a better name for the variable so that its meaning is clear and no more coding errors appear around it.
* Cleanup of userland __P usekevlo2007-11-079-100/+100
|
* Avoid leaking file descriptorsmatteo2007-10-231-3/+7
|
* Remove a comment I forgot to removematteo2007-06-091-1/+1
|
* Correctly inizialize local/unix transport. I broke it in rev.1.15.matteo2007-05-011-97/+162
| | | | | PR: bin/1122566 MFC after: 1 week
* 1)Make it possible for rpcbind(8) to bind TCP listening socket to an IPmatteo2007-04-232-236/+181
| | | | | | | | | | | | other than INADDR_ANY. 2) Add the -6 option to specify "IPv6 only". Glanced at by: bms Requested by: bms [2] PR: bin/84494 [1] Approved by: silence from maintainer (~2 weeks) [1] MFC after: 2 weeks
* Bump .Dd for revision 1.8.ceri2006-11-301-1/+1
|
* o Xr netconfig(5).maxim2006-11-291-0/+1
| | | | | | PR: docs/105720 Submitted by: koitsu MFC after: 1 week
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-1/+2
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Remove including of libc sources. All the required functionsdeischen2006-03-101-8/+2
| | | | | are exported by libc with prototypes in our standard headers. I guess at one time this was necessary, but not any longer.
* Don't build IPv6 support if NO_INET6 was definedmatteo2006-03-061-1/+5
| | | | | | PR: kern/73865 Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com> MFC after: 3 days
* Sort sections.ru2005-01-181-3/+3
|
* Reflect that -h takes an argument and belatedly bump .Dd for addition of -hdd2004-11-071-3/+4
|
* Make the usage message match reality about -h and -w.dd2004-11-071-2/+10
|
* MFNetBSDmbr2004-08-161-1/+5
| | | | | | | Decrease log severity to debug if a protocol is not supported by the kernel (rpcbind checks /etc/netconfig if a protocol is available). This avoids "rpcbind: cannot create socket for tcp6" messages at startup on IPv4-only kernels.
* Don't pass NULL as an integer.mbr2003-10-291-1/+1
| | | | Obtained from: NetBSD
* Don't compare a char to NULL.mbr2003-10-292-3/+3
| | | | Obtained from: NetBSD
* style.Makefile(5)obrien2003-04-041-1/+1
|
* Implement nonblocking tpc-connections. rpcgen -m does stillmbr2003-01-162-5/+14
| | | | | | | | produce backcompatible code. Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-013-6/+6
| | | | especially in troff files.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* Change the name for the local unix-socket based protocolmbr2002-12-162-6/+13
| | | | | | | | | from "unix" back to "local". Add some compat stuff so both ways work for some time. Reviewed by: phk Approved by: imp (UPDATING) Requested by: iedowse, lukem@netbsd.org
* Check if rpcbind is already running and print a warning.mbr2002-12-101-0/+13
| | | | | | | | | Fixes segfault if rpcbind is started up a second time. Solution has been taken from mountd(8). Reviewed by: phk Approved by: re (rwatson)
* mdoc(7) police:ru2002-11-271-6/+12
| | | | | | | Added the -h option to the synopsis, documented the -a option, sorted options descriptions according to style(9). Approved by: re
* Add 'break' to empty 'default' 'switch' statements.alfred2002-10-071-4/+4
| | | | Requested by: mike
* WARNS=3 safety (mostly), use __unused for unused params and unsigned wherealfred2002-10-0710-40/+40
| | | | needed to avoid warnings about comparing signed and unsigned values.
* fix line wrap.alfred2002-10-071-15/+30
|
* cast xdr_rpcblist_ptr to xdrproc_t to silence warnings.alfred2002-10-071-4/+4
|
* Add ';' after 'default:' labels to avoid 'deprecated use of label at endalfred2002-10-071-0/+4
| | | | of compound statement' warnings.
* Don't pass a NULL pointer to syslog(3).alfred2002-10-071-0/+1
| | | | Submitted by: kris
* use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.ume2002-07-221-1/+1
| | | | MFC after: 1 week
* The .Nm utilitycharnier2002-07-141-6/+9
|
* Add -h option to rpcbind, used to specify what address to bind to foralfred2002-07-112-51/+223
| | | | | | UDP requests. Submitted by: mbr
* Stop this program's abuse of malloc(3). Its return value doesn't need thesejmallett2002-05-174-17/+14
| | | | | ugly explicit casts, and its argument doesn't need explicitly cast to u_int, especially if sizeof() is being used.
* Capitalize the first word in sentences, and put periods at the end ofdd2001-08-201-3/+3
| | | | sentences.
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-10/+10
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Free things in the right orderbrian2001-07-161-1/+1
|
* This is a selection of essentially cosmetic changes:iedowse2001-07-142-38/+42
| | | | | | | | | | | | | | - Use '\0' for a char instead of NULL. - Explicitly compare against the global `nullstring' to determine if a non-NULL uaddr is not malloc'd. - Remove some unnecessary casting of the argument to free(). - In rpcbproc_callit_com(), move the freeing of m_uaddr to the cleanup code at the end of the function. - To avoid confusion and possible alignment problems, change netbufdup() to allocate the netbuf struct and the sockaddr buffer separately, and change netbuffree() accordingly. This makes it produce netbufs that are consistent with all other netbufs in rpcbind.
* Fix a memory leak in check_bound() by freeing the buffer area ofiedowse2001-07-141-0/+2
| | | | the netbuf before freeing the netbuf structure itself.
* Add missing #include <stdio.h>.iedowse2001-07-141-1/+2
| | | | | Fix an off-by-one error in logit() when determining if a procedure number has a known name.
* Simplify to bitmaskcmp() to use the obvious approach instead ofiedowse2001-07-141-22/+19
| | | | | | | | | | | | comparing bit by bit. Make the logic in in6_fillscopeid() match that in our ifconfig(8): only set the scope ID if there is one in the address and none in sin6_scope_id. Correct a comment in network_init() that didn't make sense; it was probably never updated after it was pasted from similar code in addrmerge().
* Use snprintf instead of sprintf.iedowse2001-07-141-4/+5
|
* Avoid a harmless compiler warning, and add a missing \n to aiedowse2001-07-141-1/+3
| | | | | | debugging fprintf. Submitted by: Martin Blapp <mb@imp.ch>
* Clean up the addrmerge() function, which was over-complicated andiedowse2001-06-241-136/+120
| | | | | | | | | | | | | | | | | contained a number of memory leaks. The changes include: - Add a comment describing what addrmerge() does. - Deal with 0.0.0.0./::. or AF_LOCAL callers correctly. - Use rpcbind_get_conf() instead of getnetconfigent() so we don't have to remember to free the returned netconfig struct. - Make just one pass through the ifaddrs list; we can pick up a fallback interface address in the same pass as the netmask comparison. - Define and use SA2SIN* macros to avoid the need for loads of protocol-specific local variables. - Use mostly protocol-independent code for building the netbuf version of the address to be returned. - Use the common cleanup code for virtually all error and non-error cases, fixing a number of memory leaks.
* Fix some return-value brain-damage in forward_register(). Thisiedowse2001-06-231-16/+21
| | | | | | | | | | | | | | function has a return type of u_int32_t, into which it was somehow supposed to encode: * A valid 32-bit XID (which could be any value including 0). * 0, meaning a duplicate request. * -1, meaning a malloc failed (!); We now ensure that all XIDs are non-zero, and pass the XID out via a pointer argument. In forward_find() and free_slot_by_xid(), remove an unnecessary and confusing test for a negative result from an unsigned modulo operation, but add an unnecessary cast to highlight why.
* Bring in some bugfixes from NetBSD. I'm going to make a moreiedowse2001-04-261-17/+37
| | | | | | | | | | | | | | | extensive pass through the rpcbind code soon, but I might as well bring these in now. - (NetBSD util.c r1.5) Move the initialisation of `tbuf' to avoid a case where it could end up containing junk from the stack. This should address the issue in PR bin/26806. - (NetBSD util.c r1.6) Don't `merge' AF_LOCAL addresses, fix a few memory leaks. PR: bin/26806 Submitted by: Martin Blapp <mb@imp.ch> Obtained from: NetBSD
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Hopefully fix some of the bugs in passing credentials over UNIX ↵alfred2001-03-222-12/+10
| | | | | | | | | | | | domain sockets. Make struct cmessage visible from socket.h (about 4 places were defining it for themselves which wasn't good) Make __rpc_get_local_uid() useable and give it prototype that's visible. Fix some issues with printing out usernames from rpcbind and keyserv.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-1913-0/+4637
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
OpenPOWER on IntegriCloud