Commit Graph

171 Commits

Author SHA1 Message Date
fvdl
3b9024546d For an accepted connection (tcp), set xp_netid, as it might be examined
by some applications, most notably rpcbind.
2000-08-03 00:01:53 +00:00
matt
dd8046c23f fix a bug in the NOIEEE (aka VAX) case. 2000-07-17 04:59:51 +00:00
itojun
52f552d80a correct delint mistake (missing "&").
may fix recent rpc/nfs-related PRs, including 10579 and 10601.
2000-07-16 06:41:43 +00:00
fvdl
4063df8381 Use rpcvers_t, not long, for some variables holding version numbers. They
were sometimes passed by reference, creating problems on 64bit be systems.
2000-07-14 10:29:16 +00:00
fvdl
7c5c8962ad Use explicit int32 get/put macros. Needed for 64bit big-endian systems. 2000-07-14 08:40:41 +00:00
kleink
1e67e23b6f De-delint previous: svc_vc_rendezvous_ops() isn't unused unless the single
reference to it is accidently deleted; from Shuuichirou Murata in PR lib/10537.
2000-07-08 11:41:50 +00:00
christos
deb154d2bc add __RPC_GETXID macro
don't const castway __rpc_getconf and __rpc_getconfig. It might try to
write const strings
fix non-portable casts
remove duplicated prototypes
cast things to proper types
remove extraneous casts to NULL
fix variable cast mismatches
remove register var declarations
2000-07-06 03:10:34 +00:00
christos
b056680b9b remove register
adjust types to match functions
elide non-portable casts
cast to proper types
2000-07-06 03:06:45 +00:00
christos
6a3d07cc2d get prototypes from rpc/nettype.h
avoid non-portable casts
add explicit casts
2000-07-06 03:05:20 +00:00
christos
3ee90709fb elide non-portable casts 2000-07-06 03:03:59 +00:00
christos
ea5394abfa remove unnecessary casts to NULL 2000-07-06 03:03:30 +00:00
msaitoh
f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
christos
4af2eb7264 PR/10499: IWAMOTO Toshihiro: getnetconfig uses strtok. Applied suggested patch
to use strtok_r
2000-07-03 12:08:13 +00:00
fvdl
dc01bcc976 Plug a memory leak. 2000-06-22 11:06:23 +00:00
fvdl
d7fde522ec Fix 2 items. 2000-06-20 00:53:08 +00:00
assar
598be7b0b7 syslog an error if /etc/netconfig is not found. fixes lib/10275 2000-06-11 16:26:53 +00:00
fvdl
eaee8c445a Set the error code sanely in a few cases.
When connecting to a version 2 portmapper, don't use the "udp" nettype,
since that includes udp on ipv6, but just use the "udp" netconfig entry
directly.
2000-06-07 21:46:01 +00:00
fvdl
737db7ee0a The two unchanged interfaces (svc_create and clnt_create) resulted
in sockets bound to reserved ports in the old code. Since old binaries
will still expect this, always try to bind to a reserved port in
clnt_cli_create and svc_tli_create, unless we're already bound.
2000-06-07 18:27:39 +00:00
simonb
d649f5ebb1 Spell registerrpc properly. 2000-06-07 13:39:43 +00:00
fvdl
5b761cd338 Always do a listen() in the old svctcp_create backward compat code. 2000-06-07 01:45:25 +00:00
fvdl
3f80608ea9 Correct misleading error messages. 2000-06-06 14:44:45 +00:00
thorpej
934426175d - An initialized variable kept LOCAL_CREDS from being set on
the listen socket properly.  This caused spurious rpcbind(8)
  failures.
- Don't define a "credmsg" structure.  Instead, dynamically
  allocate a buffer of the correct size of the message with
  CMSG_SPACE() and free it when we're done.  This gets the
  size of the buffer right on LP64 platforms, which has padding
  for alignment thrown in.
- Check for non-present or truncated cred messages when recvmsg(2)
  returns.
2000-06-05 05:58:46 +00:00
thorpej
c444e0d694 Need <string.h> for LP64 systems. 2000-06-04 04:35:13 +00:00
thorpej
11e5c6cccf Get <string.h> so this builds on LP64. 2000-06-04 03:55:20 +00:00
fvdl
327cb95a94 Zero out the xprt in makefd_xprt to avoid bad free() calls in some cases. 2000-06-03 20:26:05 +00:00
fvdl
8b656ef91d Correct prototype for rpcb_unset(). 2000-06-03 18:47:28 +00:00
fvdl
67bfc2d3ab include <string.h> for mem* prototypes. 2000-06-03 14:55:43 +00:00
fvdl
746a942a9c Add missing weak alias for svcfd_create. 2000-06-03 14:30:11 +00:00
fvdl
a4a23df233 Fix typo in weak alias, causing unresolved externals. 2000-06-03 13:04:14 +00:00
fvdl
8bf1d5a03a Add missed manual page when updating RPC dode. 2000-06-03 09:29:50 +00:00
fvdl
cfe96f8218 Move rpcb_prot.x to include/rpc. 2000-06-03 02:28:40 +00:00
fvdl
550e62c47a Move rpcb_prot.x to include/rpc instead. 2000-06-03 02:28:12 +00:00
fvdl
198594fe25 Fix rpcb_prot.h target. 2000-06-03 02:12:00 +00:00
fvdl
cc755ae9f6 Change unix domain socket to rpcbind.sock. 2000-06-03 00:43:21 +00:00
fvdl
7df0ccbadc Add new RPC code, based on Sun's TI-RPC code. Adapted to not use XTI,
but sockets instead, internally. Old, backward compatible interfaces
maintained.
2000-06-02 23:11:05 +00:00
itojun
1cac955ef7 remove unnecessary _DISGASSERT(). 2000-05-15 17:11:29 +00:00
itojun
614637a5f5 use getifaddrs instead of SIOCGIFCONF (do we need to keep old code around?)
avoid buffer overrun, when you configure more than 20 IPv4 broadcast addresses
on a node.
2000-05-15 17:06:05 +00:00
bjh21
6c97e2bd78 Initial commit of arm26 port 2000-05-09 21:55:44 +00:00
itojun
1ae287d8f9 fix alignment issue with 64bit arch (packed struct/SIOCGIFCONF).
From: =?iso-8859-1?Q?G=F6ran_Bengtson?= <goeran@cdg.chalmers.se>
2000-02-18 08:26:01 +00:00
itojun
5a38b81b42 implement bindresvport_sa(), which is necessary for IPv6 support in certain
programs (like rshd or rlogind).

bindresvport() and bindresvport_sa() exhibits exactly the same functionality,
with different function prototype (sockaddr_in * and sockaddr *).

The behavior and prototype was discussed and agreed among shin@kame.net
(who is doing freebsd-current kame merge), deraadt@openbsd.org, and
Jean-Luc.Richier@imag.fr (INRIA IPv6/IPv6 RPC support).  so it will be
portable across *bsd.
2000-01-26 13:20:24 +00:00
itojun
e5aaa3fce0 fix include file. bindresvport() is declared in rpc/rpc.h, not netinet/in.h. 2000-01-26 07:06:03 +00:00
mycroft
c6a0f46b4f Delint. 2000-01-22 22:53:59 +00:00
mycroft
605490369c Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
drochner
65bf8c30e2 fix use of uninitialized "buflen" (botched in 1.18), closes PR lib/9104
by bgrayson@ece.utexas.edu
2000-01-05 18:40:06 +00:00
thorpej
22b2fb0830 Document the 64-bit XDR routines that Sun also documents. This manual
page needs a lot of help:
- restructure it into xdr_admin(3), xdr_complex(3), xdr_create(3), and
  xdr_simple(3), as is done in Solaris.
- rewrite in mandoc, and document all of the XDR primitives that NetBSD
  actually supplies.
1999-12-01 19:00:23 +00:00
thorpej
0bbf216692 Implement XDR routines for 64-bit integer data types:
- xdr_int64_t(), xdr_u_int64_t(), per NetBSD convention.
- xdr_hyper(), xdr_u_hyper(), xdr_longlong_t(), xdr_u_longlong_t(), a'la
  Solaris, implemented in terms of the above.
1999-12-01 18:34:21 +00:00
lukem
67fecdbace remove unnecessary exit() after err() 1999-11-28 03:47:24 +00:00
msaitoh
4e87e41c66 check __sh3__ 1999-11-26 07:39:45 +00:00
explorer
93eb76dd3d Fix incorrectly initialized value from _DIAGASSERT() changes. 1999-09-29 03:58:51 +00:00
lukem
d896261208 back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00