aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/svcsock.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-02-12 03:53:28 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:35 -0500
commit6b174337e5126de834a971d3edc3681bbfa45e2c (patch)
treeb1dc3e0ecd82353896b07c433f98f547abc5adc2 /include/linux/sunrpc/svcsock.h
parentf85aaeba458fda1de199a73566c641516e9a935d (diff)
[PATCH] knfsd: SUNRPC: update internal API: separate pmap register and temp sockets
Currently in the RPC server, registering with the local portmapper and creating "permanent" sockets are tied together. Expand the internal APIs to allow these two socket characteristics to be separately specified. This will be externalized in the next patch. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/sunrpc/svcsock.h')
-rw-r--r--include/linux/sunrpc/svcsock.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h
index db312a1e2eeb..cef11a6e81e9 100644
--- a/include/linux/sunrpc/svcsock.h
+++ b/include/linux/sunrpc/svcsock.h
@@ -74,4 +74,11 @@ int svc_addsock(struct svc_serv *serv,
74 char *name_return, 74 char *name_return,
75 int *proto); 75 int *proto);
76 76
77/*
78 * svc_makesock socket characteristics
79 */
80#define SVC_SOCK_DEFAULTS (0U)
81#define SVC_SOCK_ANONYMOUS (1U << 0) /* don't register with pmap */
82#define SVC_SOCK_TEMPORARY (1U << 1) /* flag socket as temporary */
83
77#endif /* SUNRPC_SVCSOCK_H */ 84#endif /* SUNRPC_SVCSOCK_H */