dcerpc.idl: replace dcerpc_response._pad with a uint8 reserved
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Oct 2015 14:00:40 +0000 (16:00 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 26 Oct 2016 09:20:13 +0000 (11:20 +0200)
typedef struct {
        uint32 alloc_hint;
        uint16 context_id;
        uint8 cancel_count;
        [value(0)] uint8 reserved;
        [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier;
} dcerpc_response;

- the generic dcerpc header has a size of 16 bytes

- alloc_hint, context_id, cancel_count and reserved are 8 bytes together

So stub_and_verifier is 8 byte aligned at offset 24.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
librpc/idl/dcerpc.idl

index 01816eeae7b8cd04d75a33a206775865b4685ce6..c295d7a0cf59243af12b94ee02e4d9b67d6b534c 100644 (file)
@@ -146,7 +146,7 @@ interface dcerpc
                uint32 alloc_hint;
                uint16 context_id;
                uint8 cancel_count;
-               [flag(NDR_ALIGN8)]    DATA_BLOB _pad;
+               [value(0)] uint8 reserved;
                [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier;
        } dcerpc_response;