SUNRPC: Support registering IPv6 interfaces with local rpcbind daemon
Subsystems (3)
PATCH 1/4 SUNRPC: Support registering IPv6 interfaces with local rpcbind daemon
Add 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_register_v3() function uses rpcbind protocol version 3 to contact the local rpcbind daemon. The version 3 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_register_v3() kernel API.
A user-space rpcbind daemon implementation that supports version 3 of the rpcbind protocol is required in order to make use of this new API.
---
include/linux/sunrpc/clnt.h | 3 + net/sunrpc/rpcb_clnt.c | 154 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 153 insertions(+), 4 deletions(-)
include/linux/sunrpc/clnt.h +3 -0
@@ -123,6 +123,9 @@ void rpc_shutdown_client(struct rpc_clnt *);void rpc_release_client (struct rpc_clnt *);int rpcb_register (u32 ,u32 ,int ,unsigned short ,int *); +int rpcb_v3_register (u32 program,u32 version, +struct sockaddr *address, +char *netid,int *result);int rpcb_getport_sync (struct sockaddr_in *,u32 ,u32 ,int );void rpcb_getport_async (struct rpc_task *);
net/sunrpc/rpcb_clnt.c +150 -4
176 lines not on this page · raw message