Commit Graph

266 Commits

Author SHA1 Message Date
christos 388c103e83 PR/25003: John Kohl: File is missing a copyright. 2004-05-28 14:38:53 +00:00
lukem 5f5a907836 fix description for svc_getreqset() 2004-05-03 15:57:36 +00:00
lukem aff9207208 document svcudp_create 2004-02-16 02:39:36 +00:00
martin f6ee845eac Fix a cast for little endian archs 2004-01-03 23:50:47 +00:00
martin a2c6783de5 When writing/reading longs use explicit 32bit temporary values (this is
what "long" means in xdr context).
Fixes PR lib/23960.
2004-01-03 23:01:41 +00:00
matt aa6e9c56c3 Make this compile on non-IEEE GCC3 targets (aka VAX). 2003-12-08 06:18:16 +00:00
drochner 71baa97c0b -don't update the RPC server address with the reply's sender address;
this breaks server failover under some circumstances, and Solaris doesn't
 seem to do it either
-minor cleanup
approved by fvdl
2003-10-22 15:38:31 +00:00
fvdl b279ed6377 Don't compare NULL against a character. 2003-10-21 00:07:17 +00:00
fvdl bc018099a2 Don't use NULL to compare against a char. 2003-10-21 00:03:47 +00:00
fvdl 39d7a2e359 Don't use NULL to compare against a character. 2003-10-21 00:00:34 +00:00
christos 44eab0895d PR/20768: Martin Blapp: Remove special handling for non-blocking connections
that breaks amd clients.
2003-10-03 21:29:16 +00:00
itojun 1ecc9b581c use internal names for randomid() 2003-09-13 21:27:43 +00:00
itojun cfbab92fdb use randomid(3). actually generate random ID for DNS queries (previous
fix was incomplete)
2003-09-09 22:16:58 +00:00
itojun 5c945215d0 __RCSID police 2003-09-09 03:56:39 +00:00
itojun 35beb40305 have __rpc_getxid.c 2003-09-09 03:56:23 +00:00
itojun 8b08fa0d3b use niels provos' random sequence number generator to initialize RPC XID. 2003-09-09 00:22:17 +00:00
wiz 47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
salo 99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
wiz bbe810ed82 Use Em instead of weird Bf usage. 2003-07-01 10:20:54 +00:00
wiz cc45dace72 Use Aq Pa instead of Fd \*[Lt]...\*[Gt]. 2003-06-27 15:33:24 +00:00
wiz 6f235494c5 Fix typos in macro names. 2003-06-27 13:02:27 +00:00
yamt 795dfe8877 - change default message size for udp to UDPMSGSIZE(8800) from 8192.
(to be compatible with pre-TIRPC)
- bump message size limit to 256k.

from FreeBSD's rev.1.3.
2003-06-07 07:41:41 +00:00
yamt 675f9cd51a add a missing release_fd_lock. 2003-06-06 00:48:45 +00:00
christos 25cb0b1e94 de-lint pointer casts. 2003-05-29 18:15:25 +00:00
fvdl b2a54b691e Back out previous for now. I already suspected part of it was wrong,
and there has been one report of problems in the mean time.
2003-05-19 09:26:15 +00:00
christos 56a0a03629 From Martin Blapp mb at imp dot ch, should fix PR/20768
Remove the special treatment off non-blocking mode in
xdrrec_eof(). This change broke seriously reading serialized
xdr-records. A end of a request could sometimes not
be recognized and the socket got closed too early.

Initialize in_reclen and in_received in a second case
if we get more outstanding records.
2003-05-18 23:59:28 +00:00
yamt 8f781c36ef fix a simple bug that prevents svc_tli_create to bind to the address
specified by caller.
2003-05-13 11:57:21 +00:00
scw c7dadf502a The second parameter of strchr() is an integer, not a pointer.
So use '\0' instead of NULL.
2003-04-29 14:56:05 +00:00
wiz 4472b40375 Convert to mdoc. Fix an error (two many arguments to a function). 2003-04-17 17:57:12 +00:00
wiz df25ca4551 Convert to mdoc. Fix one or two bugs while here, hope I didn't introduce
more :)
2003-04-17 17:02:48 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
christos 036ef4f391 cast int to size_t to appease lint (Geoff Wing) 2003-04-05 17:02:14 +00:00
christos cf3a405a52 PR/21014: Tom Lyon: Failure to clear string by passing the wrong size to memset 2003-04-05 03:47:18 +00:00
christos d5632de9bf Don't do:
if ((xdrp->x_handy -= need) < 0)
		return FALSE;

because by repeatedly calling this we can cause overflow, and then overwrite
valid memory. Instead do:

	if (xdrp->x_handy < need)
		return FALSE;
	xdrp->x_handy -= need;
2003-03-16 15:42:22 +00:00
fvdl 161423ddca Reset in_reclen and in_received after having received a full record in
the nonblocking case.
2003-01-27 20:56:45 +00:00
thorpej 3fdac2b8c5 Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
mjl 71b7c0b242 Fix typos (from PR 19650) 2003-01-03 21:41:28 +00:00
jschauma 708eed1953 Fix typos pointed out by Igor Sobrado in PR misc/19632
rpc(3)             - addres (address)
rpc_reg(3)         - truct (struct, in struct rpc_msg)
rpcb_getaddr(3)    - Copyright: Sun Microsystems (not Microsystem's)
			All Rights Reserved (not Right's)
2003-01-01 22:24:29 +00:00
wiz 667e9783e6 Fn arguments do not need (empty) braces. 2002-12-18 19:34:53 +00:00
jdolecek 015545ffb2 Add description of struct netconfig.
This adresses PR lib/18501 by Benedikt Meurer

While here, finish mdocifying of the manpage. There is no .B, .I, .SB
in mdoc, and some items were missing in output due to that.
2002-12-07 12:21:45 +00:00
skrll 3f05b3f7ab Add extern svc_fd_lock if __REENT and include rpc_internal.h only once. 2002-11-12 14:50:23 +00:00
thorpej 08a7b34528 Fix signed/unsigned comparison warnings. 2002-11-11 22:15:42 +00:00
thorpej d6e3c04143 Fix signed/unsigned comparison warnings. 2002-11-11 20:34:10 +00:00
thorpej 045cceecae Fix signed/unsigned comparison warnings. 2002-11-11 17:13:59 +00:00
fvdl 79d5b270d9 * Adapt include files for rpc_com.h/rpc_internal.h split.
* Add rpc_control to svc.c
* Implement non-blocking connections.
2002-11-08 00:13:07 +00:00
yamt b8bc8c45f2 add missing __rpc_fixup_addr.
it's needed to make mount_nfs -T work for scoped addresses.
2002-10-02 01:22:09 +00:00
wiz 6569c5c509 New sentence, new line. From Robert Elz. 2002-10-01 17:22:00 +00:00
mycroft 59e83d385e Make this work in the !INET6 case -- if we mismatch the AF, don't return a
bogus (uninitialized) structure.
Also, ignore v4 ifa's with no broadcast address (rather than core dumping).
2002-09-23 14:12:31 +00:00
itojun cf0cafaa38 correct range check. from openbsd 2002-08-01 05:22:43 +00:00
soren a6eb4c51f7 Make pmap_set(3) prototype match reality.
Fixes PR lib/6064.
2002-07-31 01:46:02 +00:00