summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2009-05-28 09:17:37 -0400
committerSteve Dickson <steved@redhat.com>2009-05-28 09:17:37 -0400
commita0b9b6cd58378f0cb24c7eae82185b06e5aaec37 (patch)
treeb9e82a149bea17f935950f76e839d24d0eba69d1
parent8f840586d9ceba6d682ab424ae48a0cf08f7ea41 (diff)
downloadti-rpc-a0b9b6cd58378f0cb24c7eae82185b06e5aaec37.tar.gz
Added the RPCB_OWNER_STRING define which is defined
as the "libtirpc" constant string Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--src/rpcb_clnt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rpcb_clnt.c b/src/rpcb_clnt.c
index b1c0038..615ce0b 100644
--- a/src/rpcb_clnt.c
+++ b/src/rpcb_clnt.c
@@ -85,6 +85,8 @@ extern bool_t xdr_wrapstring(XDR *, char **);
static const char nullstring[] = "\000";
+#define RPCB_OWNER_STRING "libtirpc"
+
#define CACHESIZE 6
struct address_cache {
@@ -752,10 +754,11 @@ __rpcb_findaddr_timed(program, version, nconf, host, clpp, tp)
parms.r_netid = nconf->nc_netid;
/*
- * According to wire captures, the reference implementation
- * (OpenSolaris) sends a blank string here too.
+ * rpcbind ignores the r_owner field in GETADDR requests, but we
+ * need to give xdr_rpcb something to gnaw on. Might as well make
+ * it something human readable for when we see these in captures.
*/
- parms.r_owner = "";
+ parms.r_owner = RPCB_OWNER_STRING;
/*
* Use default total timeout if no timeout is specified.