From 36d4b9d208c0025f054ad8ae4062ca3c81e345d5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 1 Apr 2013 13:14:13 -0700 Subject: 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 --- source3/smbd/globals.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') 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) -- cgit