summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-09-06 15:41:30 +0200
committerAndreas Schneider <asn@cryptomilk.org>2016-10-26 11:20:13 +0200
commit4400d3bde58551cf504c99e9d82041d597ee5eeb (patch)
tree3f139b636938f0cc83f3c82403ecfe423cb57630 /librpc
parent81d730edb59d3ab000fc28b23c3758fffca60c98 (diff)
downloadsamba-4400d3bde58551cf504c99e9d82041d597ee5eeb.tar.gz
dcerpc.idl: remove unused dcerpc_request._pad
typedef struct { uint32 alloc_hint; uint16 context_id; uint16 opnum; /* * NDR_DCERPC_REQUEST_OBJECT_PRESENT * is defined differently for ndr_dcerpc.c and py_dcerpc.c */ [switch_is(NDR_DCERPC_REQUEST_OBJECT_PRESENT)] dcerpc_object object; [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier; } dcerpc_request; - the generic dcerpc header has a size of 16 bytes. - alloc_hint, context_id and opnum are 8 bytes together. - dcerpc_object is 0 or 16 bytes. That means stub_and_verifier is always aligned to 8 bytes (either at offset 24 or 40). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/dcerpc.idl1
1 files changed, 0 insertions, 1 deletions
diff --git a/librpc/idl/dcerpc.idl b/librpc/idl/dcerpc.idl
index c295d7a0cf5..fe08bce1c52 100644
--- a/librpc/idl/dcerpc.idl
+++ b/librpc/idl/dcerpc.idl
@@ -61,7 +61,6 @@ interface dcerpc
* is defined differently for ndr_dcerpc.c and py_dcerpc.c
*/
[switch_is(NDR_DCERPC_REQUEST_OBJECT_PRESENT)] dcerpc_object object;
- [flag(NDR_ALIGN8)] DATA_BLOB _pad;
[flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier;
} dcerpc_request;