diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-06-22 16:58:03 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-07-04 09:09:51 +0200 |
commit | 65096890c7b2c4f8a28ac7548f253f04286f84f4 (patch) | |
tree | 294562d0976d8e79c19391d6701bc8e08b977950 /librpc/idl/dcerpc.idl | |
parent | 9c6e91338b55d4d294edf695fe13186a4bca8996 (diff) | |
download | samba-65096890c7b2c4f8a28ac7548f253f04286f84f4.tar.gz |
dcerpc.idl: add DCERPC_NCACN_{REQUEST,RESPONSE}_DEFAULT_MAX_SIZE
This will replace DCERPC_NCACN_PAYLOAD_MAX_SIZE (4 MByte),
this limit is too strict for some workloads, e.g. DRSUAPI replication
with large objects.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11948
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 281e11b53f676647997fb9ce21227782529a62ad)
Diffstat (limited to 'librpc/idl/dcerpc.idl')
-rw-r--r-- | librpc/idl/dcerpc.idl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/librpc/idl/dcerpc.idl b/librpc/idl/dcerpc.idl index 015eb3d1815..5e0f9193d08 100644 --- a/librpc/idl/dcerpc.idl +++ b/librpc/idl/dcerpc.idl @@ -537,6 +537,23 @@ interface dcerpc const uint8 DCERPC_NCACN_PAYLOAD_OFFSET = 16; const uint32 DCERPC_NCACN_PAYLOAD_MAX_SIZE = 0x400000; /* 4 MByte */ + /* + * See [MS-RPCE] 3.3.3.5.4 Maximum Server Input Data Size + * 4 MByte is the default limit of reassembled request payload + */ + const uint32 DCERPC_NCACN_REQUEST_DEFAULT_MAX_SIZE = 0x400000; + + /* + * See [MS-RPCE] 3.3.2.5.2 Handling Responses + * + * Indicates that Windows accepts up to 0x7FFFFFFF ~2 GByte + * + * talloc has a limit of 256 MByte, so we need to use something smaller. + * + * For now we try our luck with 240 MByte. + */ + const uint32 DCERPC_NCACN_RESPONSE_DEFAULT_MAX_SIZE = 0xf000000; /* 240 MByte */ + /* little-endian flag */ const uint8 DCERPC_DREP_LE = 0x10; |