summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/rpc.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-11 21:16:35 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-11 21:16:35 +0000
commitbd8ecb86d024eee0bdef1687b582f64879354c36 (patch)
treeda8b6f57fb17a32a5be0c935529f070dac5affc6 /nuttx/fs/nfs/rpc.h
parent0b9b04441d3bb7ad5386f35b4af31e5c551ab5b1 (diff)
downloadpx4-nuttx-bd8ecb86d024eee0bdef1687b582f64879354c36.tar.gz
px4-nuttx-bd8ecb86d024eee0bdef1687b582f64879354c36.tar.bz2
px4-nuttx-bd8ecb86d024eee0bdef1687b582f64879354c36.zip
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4829 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/rpc.h')
-rw-r--r--nuttx/fs/nfs/rpc.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/nuttx/fs/nfs/rpc.h b/nuttx/fs/nfs/rpc.h
index 73b6a5eca..2aa01a69a 100644
--- a/nuttx/fs/nfs/rpc.h
+++ b/nuttx/fs/nfs/rpc.h
@@ -281,7 +281,7 @@ enum auth_flavor
struct rpc_auth_info
{
- enum auth_flavor authtype; /* auth type */
+ uint32_t authtype; /* auth type */
uint32_t authlen; /* auth length */
};
@@ -394,6 +394,16 @@ struct rpc_reply_header
uint32_t status;
};
+struct nfs_reply_header
+{
+ uint32_t rp_xid; /* Request transaction id */
+ uint32_t rp_direction; /* Call direction (1) */
+ uint32_t type;
+ struct rpc_auth_info rpc_verfi;
+ uint32_t status;
+ uint32_t nfs_status;
+};
+
struct rpc_reply_pmap
{
struct rpc_reply_header rh;
@@ -538,27 +548,23 @@ struct rpcclnt
int rc_sent; /* Request send count */
int rc_cwnd; /* Request send window */
int rc_timeouts; /* Request timeouts */
-
+ int rc_authtype; /* Authenticator type */
//int rc_deadthresh; /* Threshold of timeouts-->dead server*/
/* authentication: */
/* currently can be RPCAUTH_NULL, RPCAUTH_KERBV4, RPCAUTH_UNIX */
/* should be kept in XDR form */
-// int rc_authtype; /* Authenticator type */
+ /* RPCAUTH_UNIX */
#ifdef CONFIG_NFS_UNIX_AUTH
- /* RPCAUTH_UNIX*/
-
struct rpc_auth_info rc_oldauth; /* authentication */
+ void *rc_auth;
#endif
-//void *rc_auth;
struct rpc_program *rc_prog;
-//char *rc_servername;
-
- int rc_proctlen; /* if == 0 then rc_proct == NULL */
- int *rc_proct;
+ int rc_proctlen; /* if == 0 then rc_proct == NULL */
+ int *rc_proct;
};
/****************************************************************************