From: Jeff Layton Date: Thu, 28 May 2009 13:17:37 +0000 (-0400) Subject: Added the RPCB_OWNER_STRING define which is defined X-Git-Tag: libtirpc-0-2-0~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0b9b6cd58378f0cb24c7eae82185b06e5aaec37;p=libtirpc Added the RPCB_OWNER_STRING define which is defined as the "libtirpc" constant string Signed-off-by: Jeff Layton Signed-off-by: Steve Dickson --- 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.