Skip to contentSkip to conversation

nfs: add server port to rpc_pipe info file

RFC/PATCH J. Bruce Fields 1 participant 1 message Aug 14, 2007

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

On the server side, when sending krb5 callbacks to the client, gssd needs to know the callback port.

Together with an nfs-utils patch, this also allows us to support krb5 mounts of servers using non-standard ports; currently if you specify an alternate server port on the commandline the mount fails.

I don't know whether appending an extra "port:" line here is the right approach, though. Comments?

---
 net/sunrpc/rpc_pipe.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/sunrpc/rpc_pipe.c +1 -0
index 669e12a..9b0a489 100644
@@ -329,6 +329,7 @@ rpc_show_info(struct seq_file *m, void *v)
 			clnt->cl_prog, clnt->cl_vers);
 	seq_printf(m, "address: %s\n", rpc_peeraddr2str(clnt, RPC_DISPLAY_ADDR));
 	seq_printf(m, "protocol: %s\n", rpc_peeraddr2str(clnt, RPC_DISPLAY_PROTO));
+	seq_printf(m, "port: %s\n", rpc_peeraddr2str(clnt, RPC_DISPLAY_PORT));
 	return 0;
 }
 
Signature · 11 lines
1.5.3.rc4.67.gf9286


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs