]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/sunrpc/rpcb_clnt.c
SUNRPC: Support registering IPv6 interfaces with local rpcbind daemon
authorChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jul 2008 20:03:30 +0000 (16:03 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 15 Jul 2008 22:08:55 +0000 (18:08 -0400)
commitc2e1b09ff237c0a3687b9a804cc8bf489743cffc
tree9571ae56e29de0d0b165b136863c2363f2a78569
parentbabe80eb4994dfdc97d5be19a68b5af66d667585
SUNRPC: Support registering IPv6 interfaces with local rpcbind daemon

Introduce a new API to register RPC services on IPv6 interfaces to allow
the NFS server and lockd to advertise on IPv6 networks.

Unlike rpcb_register(), the new rpcb_v4_register() function uses rpcbind
protocol version 4 to contact the local rpcbind daemon.  The version 4
SET/UNSET procedures allow services to register address families besides
AF_INET, register at specific network interfaces, and register transport
protocols besides UDP and TCP.  All of this functionality is exposed via
the new rpcb_v4_register() kernel API.

A user-space rpcbind daemon implementation that supports version 4 of the
rpcbind protocol is required in order to make use of this new API.

Note that rpcbind version 3 is sufficient to support the new rpcbind
facilities listed above, but most extant implementations use version 4.

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>
include/linux/sunrpc/clnt.h
net/sunrpc/rpcb_clnt.c