mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[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>
This commit is contained in:
parent
f85aaeba45
commit
6b174337e5
2 changed files with 34 additions and 20 deletions
|
@ -74,4 +74,11 @@ int svc_addsock(struct svc_serv *serv,
|
|||
char *name_return,
|
||||
int *proto);
|
||||
|
||||
/*
|
||||
* svc_makesock socket characteristics
|
||||
*/
|
||||
#define SVC_SOCK_DEFAULTS (0U)
|
||||
#define SVC_SOCK_ANONYMOUS (1U << 0) /* don't register with pmap */
|
||||
#define SVC_SOCK_TEMPORARY (1U << 1) /* flag socket as temporary */
|
||||
|
||||
#endif /* SUNRPC_SVCSOCK_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue