summaryrefslogtreecommitdiffstats
path: root/source3/smbd/globals.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-04-01 13:14:13 -0700
committerJeremy Allison <jra@samba.org>2013-04-19 14:11:03 -0700
commit36d4b9d208c0025f054ad8ae4062ca3c81e345d5 (patch)
tree6d7f0d793f49a175c2adc4c1d5c7a6f2adc6db79 /source3/smbd/globals.h
parent61da7f00b3f3daebb82e6a5d987883e0897dc4e9 (diff)
downloadsamba-36d4b9d208c0025f054ad8ae4062ca3c81e345d5.tar.gz
samba-36d4b9d208c0025f054ad8ae4062ca3c81e345d5.tar.xz
samba-36d4b9d208c0025f054ad8ae4062ca3c81e345d5.zip
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>
Diffstat (limited to 'source3/smbd/globals.h')
-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 d6ca15286d..46baeed204 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -549,6 +549,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)