Skip to contentSkip to conversation

SUNRPC: Support registering IPv6 interfaces with local rpcbind daemon

PATCH New Chuck Lever 1 participant 1 message Jan 8, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index a4f6d04..3ffb7b3 100644
@@ -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