From: Jeremy Allison Date: Mon, 1 Apr 2013 20:14:13 +0000 (-0700) Subject: Add macro SMBD_SMB2_SHORT_RECEIVEFILE_WRITE_LEN. X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=36d4b9d208c0025f054ad8ae4062ca3c81e345d5 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 Reviewed-by: Stefan (metze) Metzmacher --- diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index d6ca15286dbc..46baeed204b4 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)