summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2003-06-11 05:15:29 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-06-11 05:15:29 -0700
commit9bd741ae48785d0c0e75cf906ff66f893d600c2d (patch)
tree228b16a520cb5251452c7484391a820a8b4df5f3
parentf638a1e10918a74c707fc09178e04e078cee5786 (diff)
Add a "protocol: udp/tcp" line so that gssd can use the same protocol for
null calls that was specified in the mount options.
-rw-r--r--net/sunrpc/rpc_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index abcb5ee4b890..fa80f1a44808 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -273,6 +273,8 @@ rpc_show_info(struct seq_file *m, void *v)
clnt->cl_prog, clnt->cl_vers);
seq_printf(m, "address: %u.%u.%u.%u\n",
NIPQUAD(clnt->cl_xprt->addr.sin_addr.s_addr));
+ seq_printf(m, "protocol: %s\n",
+ clnt->cl_xprt->prot == IPPROTO_UDP ? "udp" : "tcp");
return 0;
}