summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-04 12:59:47 +0100
committerGünther Deschner <gd@samba.org>2009-02-04 17:17:33 +0100
commit4974554de9c513973191d9a745009fe988ec0fcd (patch)
treef7f67b48d224c4d5c1597e99e865fa844a7e1efd
parenta5597d75d218bff810928d618f4ea41277e554a9 (diff)
downloadsamba-4974554de9c513973191d9a745009fe988ec0fcd.tar.gz
samba-4974554de9c513973191d9a745009fe988ec0fcd.tar.bz2
samba-4974554de9c513973191d9a745009fe988ec0fcd.zip
eventlog: calculate offsets in EVENTLOGRECORD struct.
We cannot use [relative] pointer properties here for various reasons. Guenther
-rw-r--r--librpc/idl/eventlog.idl6
1 files changed, 3 insertions, 3 deletions
diff --git a/librpc/idl/eventlog.idl b/librpc/idl/eventlog.idl
index c0230f3693..c7524f3c38 100644
--- a/librpc/idl/eventlog.idl
+++ b/librpc/idl/eventlog.idl
@@ -124,11 +124,11 @@ import "lsa.idl", "security.idl";
uint16 EventCategory;
uint16 ReservedFlags;
uint32 ClosingRecordNumber;
- uint32 StringOffset;
+ [value(56+2*(strlen_m_term(SourceName)+strlen_m_term(Computername))+UserSidLength)] uint32 StringOffset;
[value(ndr_size_dom_sid0(&UserSid, ndr->flags))] uint32 UserSidLength;
- uint32 UserSidOffset;
+ [value(56+2*(strlen_m_term(SourceName)+strlen_m_term(Computername)))] uint32 UserSidOffset;
uint32 DataLength;
- uint32 DataOffset;
+ [value(56+2*(strlen_m_term(SourceName)+strlen_m_term(Computername))+UserSidLength+(2*ndr_size_string_array(Strings, NumStrings, STR_NULLTERM)))] uint32 DataOffset;
nstring SourceName;
nstring Computername;
[flag(NDR_ALIGN4),subcontext(0),subcontext_size(UserSidLength)] dom_sid0 UserSid;