summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-04-01 13:14:13 -0700
committerKarolin Seeger <kseeger@samba.org>2013-04-25 12:50:59 +0200
commit97fc9b9af3f5a2b1af04bdb9c3d71ab3a065a022 (patch)
treeee47589c0eadc4de3d2af685368aa464b565c6f3
parent1828c74c6c85cdba9689012ac991187b5eb2cfa3 (diff)
downloadsamba-97fc9b9af3f5a2b1af04bdb9c3d71ab3a065a022.tar.gz
Add macro SMBD_SMB2_SHORT_RECEIVEFILE_WRITE_LEN.
This is the 'short' length we'll read in the SMB2_WRITE receivefile code path. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan (metze) Metzmacher <metze@samba.org> (cherry picked from commit 36d4b9d208c0025f054ad8ae4062ca3c81e345d5)
-rw-r--r--source3/smbd/globals.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index 653466d4a61..16ac24baf61 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -541,6 +541,8 @@ struct smbd_smb2_request {
#define SMBD_SMB2_OUT_DYN_PTR(req) (uint8_t *)(SMBD_SMB2_OUT_DYN_IOV(req)->iov_base)
#define SMBD_SMB2_OUT_DYN_LEN(req) (SMBD_SMB2_OUT_DYN_IOV(req)->iov_len)
+#define SMBD_SMB2_SHORT_RECEIVEFILE_WRITE_LEN (SMB2_HDR_BODY + 0x30)
+
struct {
/*
* vector[0] TRANSPORT HEADER (empty)