-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nfsd4: check backchannel attributes on create_session
Make sure the client gives us an adequate backchannel. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
- Loading branch information
J. Bruce Fields
committed
Apr 9, 2013
1 parent
55c760c
commit 06b332a
Showing
4 changed files
with
52 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#define NFS4_MAXTAGLEN 20 | ||
|
||
#define NFS4_enc_cb_null_sz 0 | ||
#define NFS4_dec_cb_null_sz 0 | ||
#define cb_compound_enc_hdr_sz 4 | ||
#define cb_compound_dec_hdr_sz (3 + (NFS4_MAXTAGLEN >> 2)) | ||
#define sessionid_sz (NFS4_MAX_SESSIONID_LEN >> 2) | ||
#define cb_sequence_enc_sz (sessionid_sz + 4 + \ | ||
1 /* no referring calls list yet */) | ||
#define cb_sequence_dec_sz (op_dec_sz + sessionid_sz + 4) | ||
|
||
#define op_enc_sz 1 | ||
#define op_dec_sz 2 | ||
#define enc_nfs4_fh_sz (1 + (NFS4_FHSIZE >> 2)) | ||
#define enc_stateid_sz (NFS4_STATEID_SIZE >> 2) | ||
#define NFS4_enc_cb_recall_sz (cb_compound_enc_hdr_sz + \ | ||
cb_sequence_enc_sz + \ | ||
1 + enc_stateid_sz + \ | ||
enc_nfs4_fh_sz) | ||
|
||
#define NFS4_dec_cb_recall_sz (cb_compound_dec_hdr_sz + \ | ||
cb_sequence_dec_sz + \ | ||
op_dec_sz) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters