summaryrefslogtreecommitdiffstats
path: root/sys/rpc/clnt.h
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2012-12-08 00:29:16 +0000
committerrmacklem <rmacklem@FreeBSD.org>2012-12-08 00:29:16 +0000
commitded0f38e615d39bdc5ac38cdb3cecf37a66c75fe (patch)
treeb8b979991f852a5c25a95ddbabb63117c46bef2e /sys/rpc/clnt.h
parentb8327e28a33a6bb69cb12171c683fc2756305c0a (diff)
downloadFreeBSD-src-ded0f38e615d39bdc5ac38cdb3cecf37a66c75fe.zip
FreeBSD-src-ded0f38e615d39bdc5ac38cdb3cecf37a66c75fe.tar.gz
Add support for backchannels to the kernel RPC. Backchannels
are used by NFSv4.1 for callbacks. A backchannel is a connection established by the client, but used for RPCs done by the server on the client (callbacks). As a result, this patch mixes some client side calls in the server side and vice versa. Some definitions in the .c files were extracted out into a file called krpc.h, so that they could be included in multiple .c files. This code has been in projects/nfsv4.1-client for some time. Although no one has given it a formal review, I believe kib@ has taken a look at it.
Diffstat (limited to 'sys/rpc/clnt.h')
-rw-r--r--sys/rpc/clnt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/rpc/clnt.h b/sys/rpc/clnt.h
index e4da36a..36dca8e 100644
--- a/sys/rpc/clnt.h
+++ b/sys/rpc/clnt.h
@@ -372,6 +372,7 @@ enum clnt_stat clnt_call_private(CLIENT *, struct rpc_callextra *, rpcproc_t,
#define CLGET_RETRIES 26 /* get retry count for reconnect */
#define CLSET_PRIVPORT 27 /* set privileged source port flag */
#define CLGET_PRIVPORT 28 /* get privileged source port flag */
+#define CLSET_BACKCHANNEL 29 /* set backchannel for socket */
#endif
OpenPOWER on IntegriCloud