summaryrefslogtreecommitdiffstats
path: root/include/net/9p
diff options
context:
space:
mode:
authorJim Garlick <garlick@llnl.gov>2013-05-29 21:15:07 +0200
committerEric Van Hensbergen <ericvh@gmail.com>2013-07-08 04:59:54 +0200
commit2f28c8b31dc501027d9aa6acf496c5941736312b (patch)
tree30c8060085b6bb41d07534431b00d9733c78665a /include/net/9p
parent9p: Add rest of 9p files to MAINTAINERS entry (diff)
downloadlinux-2f28c8b31dc501027d9aa6acf496c5941736312b.tar.xz
linux-2f28c8b31dc501027d9aa6acf496c5941736312b.zip
net/9p: add privport option to 9p tcp transport
If the privport option is specified, the tcp transport binds local address to a reserved port before connecting to the 9p server. In some cases when 9P AUTH cannot be implemented, this is better than nothing. Signed-off-by: Jim Garlick <garlick@llnl.gov> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include/net/9p')
-rw-r--r--include/net/9p/transport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/9p/transport.h b/include/net/9p/transport.h
index adcbb20f6511..9a36d9297114 100644
--- a/include/net/9p/transport.h
+++ b/include/net/9p/transport.h
@@ -26,6 +26,9 @@
#ifndef NET_9P_TRANSPORT_H
#define NET_9P_TRANSPORT_H
+#define P9_DEF_MIN_RESVPORT (665U)
+#define P9_DEF_MAX_RESVPORT (1023U)
+
/**
* struct p9_trans_module - transport module interface
* @list: used to maintain a list of currently available transports