SUNRPC: Introduce a specific rpcb_create for contacting localhost
authorChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jul 2008 20:03:27 +0000 (16:03 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 15 Jul 2008 22:08:44 +0000 (18:08 -0400)
commitcc5598b78fd320dd6d1f90c14491e08029f3c4f6
treede62ba86decdc7bdb69ed717e3c42b4a7d6b774b
parent166b88d755f925139af7f7b75aa0a1b896ca0670
SUNRPC: Introduce a specific rpcb_create for contacting localhost

Add rpcb_create_local() for use by rpcb_register() and upcoming IPv6
registration functions.

Ensure any errors encountered by rpcb_create_local() are properly
reported.

We can also use a statically allocated constant loopback socket address
instead of one allocated on the stack and initialized every time the
function is called.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/rpcb_clnt.c