| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Notes:
svn path=/head/; revision=113091
|
| |
|
|
|
|
|
|
|
|
|
| |
produce backcompatible code.
Reviewed by: rwatson
Obtained from: NetBSD
MFC after: 1 day
Notes:
svn path=/head/; revision=109363
|
| |
|
|
|
|
|
| |
especially in troff files.
Notes:
svn path=/head/; revision=108533
|
| |
|
|
|
|
|
| |
Add FreeBSD Id tag where missing.
Notes:
svn path=/head/; revision=108470
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=107952
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Fixes segfault if rpcbind is started up a second time.
Solution has been taken from mountd(8).
Reviewed by: phk
Approved by: re (rwatson)
Notes:
svn path=/head/; revision=107725
|
| |
|
|
|
|
|
|
|
|
| |
Added the -h option to the synopsis, documented the -a option,
sorted options descriptions according to style(9).
Approved by: re
Notes:
svn path=/head/; revision=107313
|
| |
|
|
|
|
|
| |
Requested by: mike
Notes:
svn path=/head/; revision=104593
|
| |
|
|
|
|
|
| |
needed to avoid warnings about comparing signed and unsigned values.
Notes:
svn path=/head/; revision=104592
|
| |
|
|
| |
Notes:
svn path=/head/; revision=104590
|
| |
|
|
| |
Notes:
svn path=/head/; revision=104589
|
| |
|
|
|
|
|
| |
of compound statement' warnings.
Notes:
svn path=/head/; revision=104588
|
| |
|
|
|
|
|
| |
Submitted by: kris
Notes:
svn path=/head/; revision=104587
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=100505
|
| |
|
|
| |
Notes:
svn path=/head/; revision=99968
|
| |
|
|
|
|
|
|
|
| |
UDP requests.
Submitted by: mbr
Notes:
svn path=/head/; revision=99774
|
| |
|
|
|
|
|
|
| |
ugly explicit casts, and its argument doesn't need explicitly cast to u_int,
especially if sizeof() is being used.
Notes:
svn path=/head/; revision=96788
|
| |
|
|
|
|
|
| |
sentences.
Notes:
svn path=/head/; revision=81929
|
| |
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=80029
|
| |
|
|
| |
Notes:
svn path=/head/; revision=79806
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
Notes:
svn path=/head/; revision=79723
|
| |
|
|
|
|
|
| |
the netbuf before freeing the netbuf structure itself.
Notes:
svn path=/head/; revision=79722
|
| |
|
|
|
|
|
|
| |
Fix an off-by-one error in logit() when determining if a procedure
number has a known name.
Notes:
svn path=/head/; revision=79721
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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().
Notes:
svn path=/head/; revision=79720
|
| |
|
|
| |
Notes:
svn path=/head/; revision=79719
|
| |
|
|
|
|
|
|
|
| |
debugging fprintf.
Submitted by: Martin Blapp <mb@imp.ch>
Notes:
svn path=/head/; revision=79718
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=78705
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=78681
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=76037
|
| |
|
|
|
|
|
| |
- MAN[1-9] -> MAN.
Notes:
svn path=/head/; revision=74816
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=74627
|
| |
|
|
| |
Notes:
svn path=/head/; revision=74532
|
|
|
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
|