Add macro SMBD_SMB2_SHORT_RECEIVEFILE_WRITE_LEN.
authorJeremy Allison <jra@samba.org>
Mon, 1 Apr 2013 20:14:13 +0000 (13:14 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 19 Apr 2013 21:11:03 +0000 (14:11 -0700)
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>
source3/smbd/globals.h

index d6ca15286dbc85ac53f7eee5a7e876f0c9242ad9..46baeed204b44ae226b6bcbcae5437002e5b3abe 100644 (file)
@@ -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)