2 This file was automatically generated by Pidl
3 from eventlog.idl and eventlog.cnf.
5 Pidl is a perl based IDL compiler for DCE/RPC idl files.
6 It is maintained by the Samba team, not the Wireshark team.
7 Instructions on how to download and install Pidl can be
8 found at https://wiki.wireshark.org/Pidl
14 #include <wsutil/array.h>
15 #include <epan/packet.h>
18 #include "packet-dcerpc.h"
19 #include "packet-dcerpc-nt.h"
20 #include "packet-windows-common.h"
21 #include "packet-dcerpc-eventlog.h"
22 void proto_register_dcerpc_eventlog(void);
23 void proto_reg_handoff_dcerpc_eventlog(void);
25 /* Ett declarations */
26 static int ett_dcerpc_eventlog
;
27 static int ett_eventlog_eventlogReadFlags
;
28 static int ett_eventlog_eventlogEventTypes
;
29 static int ett_eventlog_eventlog_OpenUnknown0
;
30 static int ett_eventlog_eventlog_Record
;
31 static int ett_eventlog_eventlog_ChangeUnknown0
;
34 /* Header field declarations */
35 static int hf_eventlog_Record
;
36 static int hf_eventlog_Record_computer_name
;
37 static int hf_eventlog_Record_length
;
38 static int hf_eventlog_Record_source_name
;
39 static int hf_eventlog_Record_string
;
40 static int hf_eventlog_eventlogEventTypes_EVENTLOG_AUDIT_FAILURE
;
41 static int hf_eventlog_eventlogEventTypes_EVENTLOG_AUDIT_SUCCESS
;
42 static int hf_eventlog_eventlogEventTypes_EVENTLOG_ERROR_TYPE
;
43 static int hf_eventlog_eventlogEventTypes_EVENTLOG_INFORMATION_TYPE
;
44 static int hf_eventlog_eventlogEventTypes_EVENTLOG_WARNING_TYPE
;
45 static int hf_eventlog_eventlogReadFlags_EVENTLOG_BACKWARDS_READ
;
46 static int hf_eventlog_eventlogReadFlags_EVENTLOG_FORWARDS_READ
;
47 static int hf_eventlog_eventlogReadFlags_EVENTLOG_SEEK_READ
;
48 static int hf_eventlog_eventlogReadFlags_EVENTLOG_SEQUENTIAL_READ
;
49 static int hf_eventlog_eventlog_BackupEventLogW_backupfilename
;
50 static int hf_eventlog_eventlog_BackupEventLogW_handle
;
51 static int hf_eventlog_eventlog_ChangeNotify_handle
;
52 static int hf_eventlog_eventlog_ChangeNotify_unknown2
;
53 static int hf_eventlog_eventlog_ChangeNotify_unknown3
;
54 static int hf_eventlog_eventlog_ChangeUnknown0_unknown0
;
55 static int hf_eventlog_eventlog_ChangeUnknown0_unknown1
;
56 static int hf_eventlog_eventlog_ClearEventLogW_backupfilename
;
57 static int hf_eventlog_eventlog_ClearEventLogW_handle
;
58 static int hf_eventlog_eventlog_CloseEventLog_handle
;
59 static int hf_eventlog_eventlog_DeregisterEventSource_handle
;
60 static int hf_eventlog_eventlog_FlushEventLog_handle
;
61 static int hf_eventlog_eventlog_GetLogInformation_cbBufSize
;
62 static int hf_eventlog_eventlog_GetLogInformation_cbBytesNeeded
;
63 static int hf_eventlog_eventlog_GetLogInformation_dwInfoLevel
;
64 static int hf_eventlog_eventlog_GetLogInformation_handle
;
65 static int hf_eventlog_eventlog_GetLogInformation_lpBuffer
;
66 static int hf_eventlog_eventlog_GetNumRecords_handle
;
67 static int hf_eventlog_eventlog_GetNumRecords_number
;
68 static int hf_eventlog_eventlog_GetOldestRecord_handle
;
69 static int hf_eventlog_eventlog_GetOldestRecord_oldest
;
70 static int hf_eventlog_eventlog_OpenBackupEventLogW_handle
;
71 static int hf_eventlog_eventlog_OpenBackupEventLogW_logname
;
72 static int hf_eventlog_eventlog_OpenBackupEventLogW_unknown0
;
73 static int hf_eventlog_eventlog_OpenBackupEventLogW_unknown2
;
74 static int hf_eventlog_eventlog_OpenBackupEventLogW_unknown3
;
75 static int hf_eventlog_eventlog_OpenEventLogW_MajorVersion
;
76 static int hf_eventlog_eventlog_OpenEventLogW_MinorVersion
;
77 static int hf_eventlog_eventlog_OpenEventLogW_Module
;
78 static int hf_eventlog_eventlog_OpenEventLogW_RegModuleName
;
79 static int hf_eventlog_eventlog_OpenEventLogW_handle
;
80 static int hf_eventlog_eventlog_OpenEventLogW_unknown0
;
81 static int hf_eventlog_eventlog_OpenUnknown0_unknown0
;
82 static int hf_eventlog_eventlog_OpenUnknown0_unknown1
;
83 static int hf_eventlog_eventlog_ReadEventLogW_data
;
84 static int hf_eventlog_eventlog_ReadEventLogW_flags
;
85 static int hf_eventlog_eventlog_ReadEventLogW_handle
;
86 static int hf_eventlog_eventlog_ReadEventLogW_number_of_bytes
;
87 static int hf_eventlog_eventlog_ReadEventLogW_offset
;
88 static int hf_eventlog_eventlog_ReadEventLogW_real_size
;
89 static int hf_eventlog_eventlog_ReadEventLogW_sent_size
;
90 static int hf_eventlog_eventlog_Record_closing_record_number
;
91 static int hf_eventlog_eventlog_Record_computer_name
;
92 static int hf_eventlog_eventlog_Record_data_length
;
93 static int hf_eventlog_eventlog_Record_data_offset
;
94 static int hf_eventlog_eventlog_Record_event_category
;
95 static int hf_eventlog_eventlog_Record_event_id
;
96 static int hf_eventlog_eventlog_Record_event_type
;
97 static int hf_eventlog_eventlog_Record_num_of_strings
;
98 static int hf_eventlog_eventlog_Record_raw_data
;
99 static int hf_eventlog_eventlog_Record_record_number
;
100 static int hf_eventlog_eventlog_Record_reserved
;
101 static int hf_eventlog_eventlog_Record_reserved_flags
;
102 static int hf_eventlog_eventlog_Record_sid_length
;
103 static int hf_eventlog_eventlog_Record_sid_offset
;
104 static int hf_eventlog_eventlog_Record_size
;
105 static int hf_eventlog_eventlog_Record_source_name
;
106 static int hf_eventlog_eventlog_Record_stringoffset
;
107 static int hf_eventlog_eventlog_Record_strings
;
108 static int hf_eventlog_eventlog_Record_time_generated
;
109 static int hf_eventlog_eventlog_Record_time_written
;
110 static int hf_eventlog_eventlog_RegisterEventSourceW_handle
;
111 static int hf_eventlog_eventlog_RegisterEventSourceW_logname
;
112 static int hf_eventlog_eventlog_RegisterEventSourceW_servername
;
113 static int hf_eventlog_eventlog_RegisterEventSourceW_unknown0
;
114 static int hf_eventlog_eventlog_RegisterEventSourceW_unknown2
;
115 static int hf_eventlog_eventlog_RegisterEventSourceW_unknown3
;
116 static int hf_eventlog_eventlog_ReportEventW_Type
;
117 static int hf_eventlog_eventlog_ReportEventW_computer_name
;
118 static int hf_eventlog_eventlog_ReportEventW_data_length
;
119 static int hf_eventlog_eventlog_ReportEventW_event_category
;
120 static int hf_eventlog_eventlog_ReportEventW_event_id
;
121 static int hf_eventlog_eventlog_ReportEventW_handle
;
122 static int hf_eventlog_eventlog_ReportEventW_num_of_strings
;
123 static int hf_eventlog_eventlog_ReportEventW_time
;
124 static int hf_eventlog_opnum
;
125 static int hf_eventlog_status
;
127 static int proto_dcerpc_eventlog
;
128 /* Version information */
131 static e_guid_t uuid_dcerpc_eventlog
= {
132 0x82273fdc, 0xe32a, 0x18c3,
133 { 0x3f, 0x78, 0x82, 0x79, 0x29, 0xdc, 0x23, 0xea }
135 static uint16_t ver_dcerpc_eventlog
= 0;
137 static const true_false_string eventlogReadFlags_EVENTLOG_SEQUENTIAL_READ_tfs
= {
138 "EVENTLOG_SEQUENTIAL_READ is SET",
139 "EVENTLOG_SEQUENTIAL_READ is NOT SET",
141 static const true_false_string eventlogReadFlags_EVENTLOG_SEEK_READ_tfs
= {
142 "EVENTLOG_SEEK_READ is SET",
143 "EVENTLOG_SEEK_READ is NOT SET",
145 static const true_false_string eventlogReadFlags_EVENTLOG_FORWARDS_READ_tfs
= {
146 "EVENTLOG_FORWARDS_READ is SET",
147 "EVENTLOG_FORWARDS_READ is NOT SET",
149 static const true_false_string eventlogReadFlags_EVENTLOG_BACKWARDS_READ_tfs
= {
150 "EVENTLOG_BACKWARDS_READ is SET",
151 "EVENTLOG_BACKWARDS_READ is NOT SET",
153 static const true_false_string eventlogEventTypes_EVENTLOG_ERROR_TYPE_tfs
= {
154 "EVENTLOG_ERROR_TYPE is SET",
155 "EVENTLOG_ERROR_TYPE is NOT SET",
157 static const true_false_string eventlogEventTypes_EVENTLOG_WARNING_TYPE_tfs
= {
158 "EVENTLOG_WARNING_TYPE is SET",
159 "EVENTLOG_WARNING_TYPE is NOT SET",
161 static const true_false_string eventlogEventTypes_EVENTLOG_INFORMATION_TYPE_tfs
= {
162 "EVENTLOG_INFORMATION_TYPE is SET",
163 "EVENTLOG_INFORMATION_TYPE is NOT SET",
165 static const true_false_string eventlogEventTypes_EVENTLOG_AUDIT_SUCCESS_tfs
= {
166 "EVENTLOG_AUDIT_SUCCESS is SET",
167 "EVENTLOG_AUDIT_SUCCESS is NOT SET",
169 static const true_false_string eventlogEventTypes_EVENTLOG_AUDIT_FAILURE_tfs
= {
170 "EVENTLOG_AUDIT_FAILURE is SET",
171 "EVENTLOG_AUDIT_FAILURE is NOT SET",
173 static int eventlog_dissect_element_OpenUnknown0_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
174 static int eventlog_dissect_element_OpenUnknown0_unknown1(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
175 static int eventlog_dissect_element_Record_size(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
176 static int eventlog_dissect_element_Record_reserved(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
177 static int eventlog_dissect_element_Record_record_number(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
178 static int eventlog_dissect_element_Record_time_generated(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
179 static int eventlog_dissect_element_Record_time_written(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
180 static int eventlog_dissect_element_Record_event_id(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
181 static int eventlog_dissect_element_Record_event_type(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
182 static int eventlog_dissect_element_Record_num_of_strings(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
, uint16_t *num_of_strings
);
183 static int eventlog_dissect_element_Record_event_category(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
184 static int eventlog_dissect_element_Record_reserved_flags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
185 static int eventlog_dissect_element_Record_closing_record_number(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
186 static int eventlog_dissect_element_Record_stringoffset(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
187 static int eventlog_dissect_element_Record_sid_length(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
188 static int eventlog_dissect_element_Record_sid_offset(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
189 static int eventlog_dissect_element_Record_data_length(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
190 static int eventlog_dissect_element_Record_data_offset(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
191 static int eventlog_dissect_element_Record_source_name(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
192 static int eventlog_dissect_element_Record_computer_name(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
193 static int eventlog_dissect_element_Record_strings(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
, uint16_t *num_of_strings
);
194 static int eventlog_dissect_element_Record_raw_data(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
195 static int eventlog_dissect_element_ChangeUnknown0_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
196 static int eventlog_dissect_element_ChangeUnknown0_unknown1(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
197 static int eventlog_dissect_element_ClearEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
198 static int eventlog_dissect_element_ClearEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
199 static int eventlog_dissect_element_ClearEventLogW_backupfilename(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
200 static int eventlog_dissect_element_ClearEventLogW_backupfilename_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
201 static int eventlog_dissect_element_BackupEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
202 static int eventlog_dissect_element_BackupEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
203 static int eventlog_dissect_element_BackupEventLogW_backupfilename(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
204 static int eventlog_dissect_element_BackupEventLogW_backupfilename_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
205 static int eventlog_dissect_element_CloseEventLog_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
206 static int eventlog_dissect_element_CloseEventLog_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
207 static int eventlog_dissect_element_DeregisterEventSource_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
208 static int eventlog_dissect_element_DeregisterEventSource_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
209 static int eventlog_dissect_element_GetNumRecords_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
210 static int eventlog_dissect_element_GetNumRecords_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
211 static int eventlog_dissect_element_GetNumRecords_number(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
212 static int eventlog_dissect_element_GetNumRecords_number_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
213 static int eventlog_dissect_element_GetOldestRecord_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
214 static int eventlog_dissect_element_GetOldestRecord_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
215 static int eventlog_dissect_element_GetOldestRecord_oldest(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
216 static int eventlog_dissect_element_GetOldestRecord_oldest_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
217 static int eventlog_dissect_element_ChangeNotify_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
218 static int eventlog_dissect_element_ChangeNotify_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
219 static int eventlog_dissect_element_ChangeNotify_unknown2(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
220 static int eventlog_dissect_element_ChangeNotify_unknown2_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
221 static int eventlog_dissect_element_ChangeNotify_unknown3(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
222 static int eventlog_dissect_element_OpenEventLogW_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
223 static int eventlog_dissect_element_OpenEventLogW_unknown0_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
224 static int eventlog_dissect_element_OpenEventLogW_Module(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
225 static int eventlog_dissect_element_OpenEventLogW_RegModuleName(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
226 static int eventlog_dissect_element_OpenEventLogW_MajorVersion(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
227 static int eventlog_dissect_element_OpenEventLogW_MinorVersion(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
228 static int eventlog_dissect_element_OpenEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
229 static int eventlog_dissect_element_OpenEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
230 static int eventlog_dissect_element_RegisterEventSourceW_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
231 static int eventlog_dissect_element_RegisterEventSourceW_unknown0_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
232 static int eventlog_dissect_element_RegisterEventSourceW_logname(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
233 static int eventlog_dissect_element_RegisterEventSourceW_servername(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
234 static int eventlog_dissect_element_RegisterEventSourceW_unknown2(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
235 static int eventlog_dissect_element_RegisterEventSourceW_unknown3(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
236 static int eventlog_dissect_element_RegisterEventSourceW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
237 static int eventlog_dissect_element_RegisterEventSourceW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
238 static int eventlog_dissect_element_OpenBackupEventLogW_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
239 static int eventlog_dissect_element_OpenBackupEventLogW_unknown0_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
240 static int eventlog_dissect_element_OpenBackupEventLogW_logname(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
241 static int eventlog_dissect_element_OpenBackupEventLogW_unknown2(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
242 static int eventlog_dissect_element_OpenBackupEventLogW_unknown3(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
243 static int eventlog_dissect_element_OpenBackupEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
244 static int eventlog_dissect_element_OpenBackupEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
245 static int eventlog_dissect_element_ReadEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
246 static int eventlog_dissect_element_ReadEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
247 static int eventlog_dissect_element_ReadEventLogW_flags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
248 static int eventlog_dissect_element_ReadEventLogW_offset(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
249 static int eventlog_dissect_element_ReadEventLogW_number_of_bytes(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
250 static int eventlog_dissect_element_ReadEventLogW_data(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
251 static int eventlog_dissect_element_ReadEventLogW_data_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
252 static int eventlog_dissect_element_ReadEventLogW_sent_size(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
253 static int eventlog_dissect_element_ReadEventLogW_sent_size_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
254 static int eventlog_dissect_element_ReadEventLogW_real_size(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
255 static int eventlog_dissect_element_ReadEventLogW_real_size_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
256 static int eventlog_dissect_element_ReportEventW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
257 static int eventlog_dissect_element_ReportEventW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
258 static int eventlog_dissect_element_ReportEventW_time(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
259 static int eventlog_dissect_element_ReportEventW_Type(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
260 static int eventlog_dissect_element_ReportEventW_event_category(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
261 static int eventlog_dissect_element_ReportEventW_event_id(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
262 static int eventlog_dissect_element_ReportEventW_num_of_strings(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
263 static int eventlog_dissect_element_ReportEventW_data_length(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
264 static int eventlog_dissect_element_ReportEventW_computer_name(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
265 static int eventlog_dissect_element_GetLogInformation_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
266 static int eventlog_dissect_element_GetLogInformation_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
267 static int eventlog_dissect_element_GetLogInformation_dwInfoLevel(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
268 static int eventlog_dissect_element_GetLogInformation_lpBuffer(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
269 static int eventlog_dissect_element_GetLogInformation_lpBuffer_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
270 static int eventlog_dissect_element_GetLogInformation_cbBufSize(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
271 static int eventlog_dissect_element_GetLogInformation_cbBytesNeeded(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
272 static int eventlog_dissect_element_GetLogInformation_cbBytesNeeded_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
273 static int eventlog_dissect_element_FlushEventLog_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
274 static int eventlog_dissect_element_FlushEventLog_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
276 eventlog_dissect_element_ReadEventLogW_data_(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
, proto_tree
*tree
, dcerpc_info
*di
, uint8_t *drep
)
279 tvbuff_t
*record_tvb
;
280 if(di
->conformant_run
){
281 /*just a run to handle conformant arrays, nothing to dissect */
284 offset
= dissect_ndr_uint32 (tvb
, offset
, pinfo
, tree
, di
, drep
,
285 hf_eventlog_Record_length
, &len
);
286 /* Create a new tvb so that we know that offset==0 is the beginning
287 * of the record. We need to know this since the data is not really
288 * NDR encoded at all and there are byte offsets into this buffer
291 record_tvb
=tvb_new_subset_length_caplen(tvb
, offset
, MIN((int)len
, tvb_captured_length_remaining(tvb
, offset
)), len
);
292 eventlog_dissect_struct_Record(record_tvb
, 0, pinfo
, tree
, di
, drep
, hf_eventlog_Record
, 0);
296 /* sid_length and sid_offset handled by manual code since this is not NDR
297 and we want to dissect the sid from the data blob */
298 static uint32_t sid_length
;
300 eventlog_dissect_element_Record_sid_length(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
, proto_tree
*tree
, dcerpc_info
*di
, uint8_t *drep
)
303 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_sid_length
,&sid_length
);
307 eventlog_dissect_element_Record_sid_offset(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
, proto_tree
*tree
, dcerpc_info
*di
, uint8_t *drep
)
309 uint32_t sid_offset
=0;
310 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_sid_offset
,&sid_offset
);
311 if(sid_offset
&& sid_length
){
313 /* this blob contains an NT SID.
314 * tvb starts at the beginning of the record.
316 sid_tvb
=tvb_new_subset_length_caplen(tvb
, sid_offset
, MIN((int)sid_length
, tvb_captured_length_remaining(tvb
, offset
)), sid_length
);
317 dissect_nt_sid(sid_tvb
, 0, tree
, "SID", NULL
, -1);
322 eventlog_dissect_element_Record_source_name(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo _U_
, proto_tree
*tree
, dcerpc_info
*di _U_
, uint8_t *drep _U_
)
325 len
=tvb_unicode_strsize(tvb
, offset
);
326 proto_tree_add_item(tree
, hf_eventlog_Record_source_name
, tvb
, offset
, len
, ENC_UTF_16
|ENC_LITTLE_ENDIAN
);
331 eventlog_dissect_element_Record_computer_name(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo _U_
, proto_tree
*tree
, dcerpc_info
*di _U_
, uint8_t *drep _U_
)
334 len
=tvb_unicode_strsize(tvb
, offset
);
335 proto_tree_add_item(tree
, hf_eventlog_Record_computer_name
, tvb
, offset
, len
, ENC_UTF_16
|ENC_LITTLE_ENDIAN
);
340 eventlog_dissect_element_Record_num_of_strings(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
, proto_tree
*tree
, dcerpc_info
* di
, uint8_t *drep
, uint16_t *num_of_strings
)
343 offset
= dissect_ndr_uint16(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_num_of_strings
,num_of_strings
);
346 static uint32_t string_offset
;
348 eventlog_dissect_element_Record_stringoffset(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
, proto_tree
*tree
, dcerpc_info
*di
, uint8_t *drep
)
351 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_stringoffset
,&string_offset
);
355 eventlog_dissect_element_Record_strings(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo _U_
, proto_tree
*tree
, dcerpc_info
* di _U_
, uint8_t *drep _U_
, uint16_t *num_of_strings
)
357 while(string_offset
&& *num_of_strings
){
359 len
=tvb_unicode_strsize(tvb
, string_offset
);
360 proto_tree_add_item(tree
, hf_eventlog_Record_string
, tvb
, string_offset
, len
, ENC_UTF_16
|ENC_LITTLE_ENDIAN
);
369 /* IDL: EVENTLOG_SEQUENTIAL_READ = 0x00000001 , */
370 /* IDL: EVENTLOG_SEEK_READ = 0x00000002 , */
371 /* IDL: EVENTLOG_FORWARDS_READ = 0x00000004 , */
372 /* IDL: EVENTLOG_BACKWARDS_READ = 0x00000008 , */
376 eventlog_dissect_bitmap_eventlogReadFlags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*parent_tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
, int hf_index _U_
, uint32_t param _U_
)
379 static int * const eventlog_eventlogReadFlags_fields
[] = {
380 &hf_eventlog_eventlogReadFlags_EVENTLOG_SEQUENTIAL_READ
,
381 &hf_eventlog_eventlogReadFlags_EVENTLOG_SEEK_READ
,
382 &hf_eventlog_eventlogReadFlags_EVENTLOG_FORWARDS_READ
,
383 &hf_eventlog_eventlogReadFlags_EVENTLOG_BACKWARDS_READ
,
389 item
= proto_tree_add_bitmask_with_flags(parent_tree
, tvb
, offset
, hf_index
,
390 ett_eventlog_eventlogReadFlags
, eventlog_eventlogReadFlags_fields
, DREP_ENC_INTEGER(drep
), BMT_NO_FALSE
);
392 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, parent_tree
, di
, drep
, -1, &flags
);
395 proto_item_append_text(item
, ": (No values set)");
397 if (flags
& (~0x0000000f)) {
398 flags
&= (~0x0000000f);
399 proto_item_append_text(item
, "Unknown bitmap value 0x%x", flags
);
407 /* IDL: EVENTLOG_SUCCESS = 0x00000000 , */
408 /* IDL: EVENTLOG_ERROR_TYPE = 0x00000001 , */
409 /* IDL: EVENTLOG_WARNING_TYPE = 0x00000002 , */
410 /* IDL: EVENTLOG_INFORMATION_TYPE = 0x00000004 , */
411 /* IDL: EVENTLOG_AUDIT_SUCCESS = 0x00000008 , */
412 /* IDL: EVENTLOG_AUDIT_FAILURE = 0x00000010 , */
416 eventlog_dissect_bitmap_eventlogEventTypes(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*parent_tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
, int hf_index _U_
, uint32_t param _U_
)
419 static int * const eventlog_eventlogEventTypes_fields
[] = {
420 &hf_eventlog_eventlogEventTypes_EVENTLOG_ERROR_TYPE
,
421 &hf_eventlog_eventlogEventTypes_EVENTLOG_WARNING_TYPE
,
422 &hf_eventlog_eventlogEventTypes_EVENTLOG_INFORMATION_TYPE
,
423 &hf_eventlog_eventlogEventTypes_EVENTLOG_AUDIT_SUCCESS
,
424 &hf_eventlog_eventlogEventTypes_EVENTLOG_AUDIT_FAILURE
,
430 item
= proto_tree_add_bitmask_with_flags(parent_tree
, tvb
, offset
, hf_index
,
431 ett_eventlog_eventlogEventTypes
, eventlog_eventlogEventTypes_fields
, DREP_ENC_INTEGER(drep
), BMT_NO_FALSE
);
433 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, parent_tree
, di
, drep
, -1, &flags
);
436 proto_item_append_text(item
, ": (No values set)");
438 if (flags
& (~0x0000001f)) {
439 flags
&= (~0x0000001f);
440 proto_item_append_text(item
, "Unknown bitmap value 0x%x", flags
);
448 /* IDL: uint16 unknown0; */
449 /* IDL: uint16 unknown1; */
453 eventlog_dissect_element_OpenUnknown0_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
455 offset
= PIDL_dissect_uint16(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenUnknown0_unknown0
, 0);
461 eventlog_dissect_element_OpenUnknown0_unknown1(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
463 offset
= PIDL_dissect_uint16(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenUnknown0_unknown1
, 0);
469 eventlog_dissect_struct_OpenUnknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*parent_tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
, int hf_index _U_
, uint32_t param _U_
)
471 proto_item
*item
= NULL
;
472 proto_tree
*tree
= NULL
;
480 item
= proto_tree_add_item(parent_tree
, hf_index
, tvb
, offset
, -1, ENC_NA
);
481 tree
= proto_item_add_subtree(item
, ett_eventlog_eventlog_OpenUnknown0
);
484 offset
= eventlog_dissect_element_OpenUnknown0_unknown0(tvb
, offset
, pinfo
, tree
, di
, drep
);
486 offset
= eventlog_dissect_element_OpenUnknown0_unknown1(tvb
, offset
, pinfo
, tree
, di
, drep
);
489 proto_item_set_len(item
, offset
-old_offset
);
492 if (di
->call_data
->flags
& DCERPC_IS_NDR64
) {
501 /* IDL: uint32 size; */
502 /* IDL: uint32 reserved; */
503 /* IDL: uint32 record_number; */
504 /* IDL: uint32 time_generated; */
505 /* IDL: uint32 time_written; */
506 /* IDL: uint32 event_id; */
507 /* IDL: uint16 event_type; */
508 /* IDL: uint16 num_of_strings; */
509 /* IDL: uint16 event_category; */
510 /* IDL: uint16 reserved_flags; */
511 /* IDL: uint32 closing_record_number; */
512 /* IDL: uint32 stringoffset; */
513 /* IDL: uint32 sid_length; */
514 /* IDL: uint32 sid_offset; */
515 /* IDL: uint32 data_length; */
516 /* IDL: uint32 data_offset; */
517 /* IDL: [flag(LIBNDR_FLAG_STR_NULLTERM)] string source_name; */
518 /* IDL: [flag(LIBNDR_FLAG_STR_NULLTERM)] string computer_name; */
519 /* IDL: [flag(LIBNDR_FLAG_STR_NULLTERM)] string strings[num_of_strings]; */
520 /* IDL: [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] string raw_data; */
524 eventlog_dissect_element_Record_size(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
526 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_size
, 0);
532 eventlog_dissect_element_Record_reserved(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
534 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_reserved
, 0);
540 eventlog_dissect_element_Record_record_number(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
542 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_record_number
, 0);
548 eventlog_dissect_element_Record_time_generated(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
550 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_time_generated
, 0);
556 eventlog_dissect_element_Record_time_written(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
558 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_time_written
, 0);
564 eventlog_dissect_element_Record_event_id(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
566 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_event_id
, 0);
572 eventlog_dissect_element_Record_event_type(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
574 offset
= PIDL_dissect_uint16(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_event_type
, 0);
580 eventlog_dissect_element_Record_event_category(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
582 offset
= PIDL_dissect_uint16(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_event_category
, 0);
588 eventlog_dissect_element_Record_reserved_flags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
590 offset
= PIDL_dissect_uint16(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_reserved_flags
, 0);
596 eventlog_dissect_element_Record_closing_record_number(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
598 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_closing_record_number
, 0);
604 eventlog_dissect_element_Record_data_length(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
606 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_data_length
, 0);
612 eventlog_dissect_element_Record_data_offset(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
614 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_Record_data_offset
, 0);
620 eventlog_dissect_element_Record_raw_data(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
622 offset
= dissect_null_term_string(tvb
, offset
, pinfo
, tree
, drep
, hf_eventlog_eventlog_Record_raw_data
, 0);
628 eventlog_dissect_struct_Record(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*parent_tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
, int hf_index _U_
, uint32_t param _U_
)
630 uint16_t num_of_strings
= 0;
631 proto_item
*item
= NULL
;
632 proto_tree
*tree
= NULL
;
640 item
= proto_tree_add_item(parent_tree
, hf_index
, tvb
, offset
, -1, ENC_NA
);
641 tree
= proto_item_add_subtree(item
, ett_eventlog_eventlog_Record
);
644 offset
= eventlog_dissect_element_Record_size(tvb
, offset
, pinfo
, tree
, di
, drep
);
646 offset
= eventlog_dissect_element_Record_reserved(tvb
, offset
, pinfo
, tree
, di
, drep
);
648 offset
= eventlog_dissect_element_Record_record_number(tvb
, offset
, pinfo
, tree
, di
, drep
);
650 offset
= eventlog_dissect_element_Record_time_generated(tvb
, offset
, pinfo
, tree
, di
, drep
);
652 offset
= eventlog_dissect_element_Record_time_written(tvb
, offset
, pinfo
, tree
, di
, drep
);
654 offset
= eventlog_dissect_element_Record_event_id(tvb
, offset
, pinfo
, tree
, di
, drep
);
656 offset
= eventlog_dissect_element_Record_event_type(tvb
, offset
, pinfo
, tree
, di
, drep
);
658 offset
= eventlog_dissect_element_Record_num_of_strings(tvb
, offset
, pinfo
, tree
, di
, drep
, &num_of_strings
);
660 offset
= eventlog_dissect_element_Record_event_category(tvb
, offset
, pinfo
, tree
, di
, drep
);
662 offset
= eventlog_dissect_element_Record_reserved_flags(tvb
, offset
, pinfo
, tree
, di
, drep
);
664 offset
= eventlog_dissect_element_Record_closing_record_number(tvb
, offset
, pinfo
, tree
, di
, drep
);
666 offset
= eventlog_dissect_element_Record_stringoffset(tvb
, offset
, pinfo
, tree
, di
, drep
);
668 offset
= eventlog_dissect_element_Record_sid_length(tvb
, offset
, pinfo
, tree
, di
, drep
);
670 offset
= eventlog_dissect_element_Record_sid_offset(tvb
, offset
, pinfo
, tree
, di
, drep
);
672 offset
= eventlog_dissect_element_Record_data_length(tvb
, offset
, pinfo
, tree
, di
, drep
);
674 offset
= eventlog_dissect_element_Record_data_offset(tvb
, offset
, pinfo
, tree
, di
, drep
);
676 offset
= eventlog_dissect_element_Record_source_name(tvb
, offset
, pinfo
, tree
, di
, drep
);
678 offset
= eventlog_dissect_element_Record_computer_name(tvb
, offset
, pinfo
, tree
, di
, drep
);
680 offset
= eventlog_dissect_element_Record_strings(tvb
, offset
, pinfo
, tree
, di
, drep
, &num_of_strings
);
682 offset
= eventlog_dissect_element_Record_raw_data(tvb
, offset
, pinfo
, tree
, di
, drep
);
685 proto_item_set_len(item
, offset
-old_offset
);
688 if (di
->call_data
->flags
& DCERPC_IS_NDR64
) {
697 /* IDL: uint32 unknown0; */
698 /* IDL: uint32 unknown1; */
702 eventlog_dissect_element_ChangeUnknown0_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
704 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ChangeUnknown0_unknown0
, 0);
710 eventlog_dissect_element_ChangeUnknown0_unknown1(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
712 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ChangeUnknown0_unknown1
, 0);
718 eventlog_dissect_struct_ChangeUnknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*parent_tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
, int hf_index _U_
, uint32_t param _U_
)
720 proto_item
*item
= NULL
;
721 proto_tree
*tree
= NULL
;
729 item
= proto_tree_add_item(parent_tree
, hf_index
, tvb
, offset
, -1, ENC_NA
);
730 tree
= proto_item_add_subtree(item
, ett_eventlog_eventlog_ChangeUnknown0
);
733 offset
= eventlog_dissect_element_ChangeUnknown0_unknown0(tvb
, offset
, pinfo
, tree
, di
, drep
);
735 offset
= eventlog_dissect_element_ChangeUnknown0_unknown1(tvb
, offset
, pinfo
, tree
, di
, drep
);
738 proto_item_set_len(item
, offset
-old_offset
);
741 if (di
->call_data
->flags
& DCERPC_IS_NDR64
) {
749 eventlog_dissect_element_ClearEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
751 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_ClearEventLogW_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_ClearEventLogW_handle
);
757 eventlog_dissect_element_ClearEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
759 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ClearEventLogW_handle
, 0);
765 eventlog_dissect_element_ClearEventLogW_backupfilename(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
767 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_ClearEventLogW_backupfilename_
, NDR_POINTER_UNIQUE
, "Pointer to Backupfilename (lsa_String)",hf_eventlog_eventlog_ClearEventLogW_backupfilename
);
773 eventlog_dissect_element_ClearEventLogW_backupfilename_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
775 offset
=dissect_ndr_counted_string(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ClearEventLogW_backupfilename
, 0);
780 /* IDL: NTSTATUS eventlog_ClearEventLogW( */
781 /* IDL: [in] [ref] policy_handle *handle, */
782 /* IDL: [in] [unique(1)] lsa_String *backupfilename */
786 eventlog_dissect_ClearEventLogW_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
790 di
->dcerpc_procedure_name
="ClearEventLogW";
791 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
794 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
800 eventlog_dissect_ClearEventLogW_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
802 di
->dcerpc_procedure_name
="ClearEventLogW";
803 offset
= eventlog_dissect_element_ClearEventLogW_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
804 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
805 offset
= eventlog_dissect_element_ClearEventLogW_backupfilename(tvb
, offset
, pinfo
, tree
, di
, drep
);
806 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
811 eventlog_dissect_element_BackupEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
813 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_BackupEventLogW_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_BackupEventLogW_handle
);
819 eventlog_dissect_element_BackupEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
821 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_BackupEventLogW_handle
, 0);
827 eventlog_dissect_element_BackupEventLogW_backupfilename(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
829 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_BackupEventLogW_backupfilename_
, NDR_POINTER_UNIQUE
, "Pointer to Backupfilename (lsa_String)",hf_eventlog_eventlog_BackupEventLogW_backupfilename
);
835 eventlog_dissect_element_BackupEventLogW_backupfilename_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
837 offset
=dissect_ndr_counted_string(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_BackupEventLogW_backupfilename
, 0);
842 /* IDL: NTSTATUS eventlog_BackupEventLogW( */
843 /* IDL: [in] [ref] policy_handle *handle, */
844 /* IDL: [in] [unique(1)] lsa_String *backupfilename */
848 eventlog_dissect_BackupEventLogW_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
852 di
->dcerpc_procedure_name
="BackupEventLogW";
853 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
856 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
862 eventlog_dissect_BackupEventLogW_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
864 di
->dcerpc_procedure_name
="BackupEventLogW";
865 offset
= eventlog_dissect_element_BackupEventLogW_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
866 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
867 offset
= eventlog_dissect_element_BackupEventLogW_backupfilename(tvb
, offset
, pinfo
, tree
, di
, drep
);
868 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
873 eventlog_dissect_element_CloseEventLog_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
875 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_CloseEventLog_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_CloseEventLog_handle
);
881 eventlog_dissect_element_CloseEventLog_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
883 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_CloseEventLog_handle
, PIDL_POLHND_CLOSE
);
888 /* IDL: NTSTATUS eventlog_CloseEventLog( */
889 /* IDL: [in] [out] [ref] policy_handle *handle */
893 eventlog_dissect_CloseEventLog_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
897 di
->dcerpc_procedure_name
="CloseEventLog";
898 offset
= eventlog_dissect_element_CloseEventLog_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
899 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
901 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
904 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
910 eventlog_dissect_CloseEventLog_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
912 di
->dcerpc_procedure_name
="CloseEventLog";
913 offset
= eventlog_dissect_element_CloseEventLog_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
914 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
919 eventlog_dissect_element_DeregisterEventSource_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
921 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_DeregisterEventSource_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_DeregisterEventSource_handle
);
927 eventlog_dissect_element_DeregisterEventSource_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
929 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_DeregisterEventSource_handle
, 0);
934 /* IDL: NTSTATUS eventlog_DeregisterEventSource( */
935 /* IDL: [in] [out] [ref] policy_handle *handle */
939 eventlog_dissect_DeregisterEventSource_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
943 di
->dcerpc_procedure_name
="DeregisterEventSource";
944 offset
= eventlog_dissect_element_DeregisterEventSource_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
945 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
947 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
950 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
956 eventlog_dissect_DeregisterEventSource_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
958 di
->dcerpc_procedure_name
="DeregisterEventSource";
959 offset
= eventlog_dissect_element_DeregisterEventSource_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
960 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
965 eventlog_dissect_element_GetNumRecords_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
967 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_GetNumRecords_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_GetNumRecords_handle
);
973 eventlog_dissect_element_GetNumRecords_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
975 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_GetNumRecords_handle
, 0);
981 eventlog_dissect_element_GetNumRecords_number(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
983 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_GetNumRecords_number_
, NDR_POINTER_REF
, "Pointer to Number (uint32)",hf_eventlog_eventlog_GetNumRecords_number
);
989 eventlog_dissect_element_GetNumRecords_number_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
991 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_GetNumRecords_number
, 0);
996 /* IDL: NTSTATUS eventlog_GetNumRecords( */
997 /* IDL: [in] [ref] policy_handle *handle, */
998 /* IDL: [out] [ref] uint32 *number */
1002 eventlog_dissect_GetNumRecords_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1006 di
->dcerpc_procedure_name
="GetNumRecords";
1007 offset
= eventlog_dissect_element_GetNumRecords_number(tvb
, offset
, pinfo
, tree
, di
, drep
);
1008 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1010 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1013 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1019 eventlog_dissect_GetNumRecords_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1021 di
->dcerpc_procedure_name
="GetNumRecords";
1022 offset
= eventlog_dissect_element_GetNumRecords_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
1023 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1028 eventlog_dissect_element_GetOldestRecord_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1030 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_GetOldestRecord_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_GetOldestRecord_handle
);
1036 eventlog_dissect_element_GetOldestRecord_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1038 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_GetOldestRecord_handle
, 0);
1044 eventlog_dissect_element_GetOldestRecord_oldest(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1046 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_GetOldestRecord_oldest_
, NDR_POINTER_REF
, "Pointer to Oldest (uint32)",hf_eventlog_eventlog_GetOldestRecord_oldest
);
1052 eventlog_dissect_element_GetOldestRecord_oldest_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1054 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_GetOldestRecord_oldest
, 0);
1059 /* IDL: NTSTATUS eventlog_GetOldestRecord( */
1060 /* IDL: [in] [ref] policy_handle *handle, */
1061 /* IDL: [out] [ref] uint32 *oldest */
1065 eventlog_dissect_GetOldestRecord_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1069 di
->dcerpc_procedure_name
="GetOldestRecord";
1070 offset
= eventlog_dissect_element_GetOldestRecord_oldest(tvb
, offset
, pinfo
, tree
, di
, drep
);
1071 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1073 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1076 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1082 eventlog_dissect_GetOldestRecord_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1084 di
->dcerpc_procedure_name
="GetOldestRecord";
1085 offset
= eventlog_dissect_element_GetOldestRecord_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
1086 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1091 eventlog_dissect_element_ChangeNotify_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1093 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_ChangeNotify_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_ChangeNotify_handle
);
1099 eventlog_dissect_element_ChangeNotify_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1101 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ChangeNotify_handle
, 0);
1107 eventlog_dissect_element_ChangeNotify_unknown2(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1109 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_ChangeNotify_unknown2_
, NDR_POINTER_REF
, "Pointer to Unknown2 (eventlog_ChangeUnknown0)",hf_eventlog_eventlog_ChangeNotify_unknown2
);
1115 eventlog_dissect_element_ChangeNotify_unknown2_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1117 offset
= eventlog_dissect_struct_ChangeUnknown0(tvb
,offset
,pinfo
,tree
,di
,drep
,hf_eventlog_eventlog_ChangeNotify_unknown2
,0);
1123 eventlog_dissect_element_ChangeNotify_unknown3(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1125 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ChangeNotify_unknown3
, 0);
1130 /* IDL: NTSTATUS eventlog_ChangeNotify( */
1131 /* IDL: [in] [ref] policy_handle *handle, */
1132 /* IDL: [in] [ref] eventlog_ChangeUnknown0 *unknown2, */
1133 /* IDL: [in] uint32 unknown3 */
1137 eventlog_dissect_ChangeNotify_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1141 di
->dcerpc_procedure_name
="ChangeNotify";
1142 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1145 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1151 eventlog_dissect_ChangeNotify_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1153 di
->dcerpc_procedure_name
="ChangeNotify";
1154 offset
= eventlog_dissect_element_ChangeNotify_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
1155 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1156 offset
= eventlog_dissect_element_ChangeNotify_unknown2(tvb
, offset
, pinfo
, tree
, di
, drep
);
1157 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1158 offset
= eventlog_dissect_element_ChangeNotify_unknown3(tvb
, offset
, pinfo
, tree
, di
, drep
);
1159 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1164 eventlog_dissect_element_OpenEventLogW_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1166 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_OpenEventLogW_unknown0_
, NDR_POINTER_UNIQUE
, "Pointer to Unknown0 (eventlog_OpenUnknown0)",hf_eventlog_eventlog_OpenEventLogW_unknown0
);
1172 eventlog_dissect_element_OpenEventLogW_unknown0_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1174 offset
= eventlog_dissect_struct_OpenUnknown0(tvb
,offset
,pinfo
,tree
,di
,drep
,hf_eventlog_eventlog_OpenEventLogW_unknown0
,0);
1180 eventlog_dissect_element_OpenEventLogW_Module(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1182 offset
=dissect_ndr_counted_string(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenEventLogW_Module
, 0);
1188 eventlog_dissect_element_OpenEventLogW_RegModuleName(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1190 offset
=dissect_ndr_counted_string(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenEventLogW_RegModuleName
, 0);
1196 eventlog_dissect_element_OpenEventLogW_MajorVersion(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1198 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenEventLogW_MajorVersion
, 0);
1204 eventlog_dissect_element_OpenEventLogW_MinorVersion(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1206 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenEventLogW_MinorVersion
, 0);
1212 eventlog_dissect_element_OpenEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1214 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_OpenEventLogW_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_OpenEventLogW_handle
);
1220 eventlog_dissect_element_OpenEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1222 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenEventLogW_handle
, PIDL_POLHND_OPEN
);
1227 /* IDL: NTSTATUS eventlog_OpenEventLogW( */
1228 /* IDL: [in] [unique(1)] eventlog_OpenUnknown0 *unknown0, */
1229 /* IDL: [in] lsa_String Module, */
1230 /* IDL: [in] lsa_String RegModuleName, */
1231 /* IDL: [in] uint32 MajorVersion, */
1232 /* IDL: [in] uint32 MinorVersion, */
1233 /* IDL: [out] [ref] policy_handle *handle */
1237 eventlog_dissect_OpenEventLogW_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1241 di
->dcerpc_procedure_name
="OpenEventLogW";
1242 offset
= eventlog_dissect_element_OpenEventLogW_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
1243 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1245 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1248 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1254 eventlog_dissect_OpenEventLogW_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1256 di
->dcerpc_procedure_name
="OpenEventLogW";
1257 offset
= eventlog_dissect_element_OpenEventLogW_unknown0(tvb
, offset
, pinfo
, tree
, di
, drep
);
1258 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1259 offset
= eventlog_dissect_element_OpenEventLogW_Module(tvb
, offset
, pinfo
, tree
, di
, drep
);
1260 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1261 offset
= eventlog_dissect_element_OpenEventLogW_RegModuleName(tvb
, offset
, pinfo
, tree
, di
, drep
);
1262 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1263 offset
= eventlog_dissect_element_OpenEventLogW_MajorVersion(tvb
, offset
, pinfo
, tree
, di
, drep
);
1264 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1265 offset
= eventlog_dissect_element_OpenEventLogW_MinorVersion(tvb
, offset
, pinfo
, tree
, di
, drep
);
1266 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1271 eventlog_dissect_element_RegisterEventSourceW_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1273 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_RegisterEventSourceW_unknown0_
, NDR_POINTER_UNIQUE
, "Pointer to Unknown0 (eventlog_OpenUnknown0)",hf_eventlog_eventlog_RegisterEventSourceW_unknown0
);
1279 eventlog_dissect_element_RegisterEventSourceW_unknown0_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1281 offset
= eventlog_dissect_struct_OpenUnknown0(tvb
,offset
,pinfo
,tree
,di
,drep
,hf_eventlog_eventlog_RegisterEventSourceW_unknown0
,0);
1287 eventlog_dissect_element_RegisterEventSourceW_logname(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1289 offset
=dissect_ndr_counted_string(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_RegisterEventSourceW_logname
, 0);
1295 eventlog_dissect_element_RegisterEventSourceW_servername(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1297 offset
=dissect_ndr_counted_string(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_RegisterEventSourceW_servername
, 0);
1303 eventlog_dissect_element_RegisterEventSourceW_unknown2(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1305 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_RegisterEventSourceW_unknown2
, 0);
1311 eventlog_dissect_element_RegisterEventSourceW_unknown3(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1313 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_RegisterEventSourceW_unknown3
, 0);
1319 eventlog_dissect_element_RegisterEventSourceW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1321 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_RegisterEventSourceW_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_RegisterEventSourceW_handle
);
1327 eventlog_dissect_element_RegisterEventSourceW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1329 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_RegisterEventSourceW_handle
, 0);
1334 /* IDL: NTSTATUS eventlog_RegisterEventSourceW( */
1335 /* IDL: [in] [unique(1)] eventlog_OpenUnknown0 *unknown0, */
1336 /* IDL: [in] lsa_String logname, */
1337 /* IDL: [in] lsa_String servername, */
1338 /* IDL: [in] uint32 unknown2, */
1339 /* IDL: [in] uint32 unknown3, */
1340 /* IDL: [out] [ref] policy_handle *handle */
1344 eventlog_dissect_RegisterEventSourceW_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1348 di
->dcerpc_procedure_name
="RegisterEventSourceW";
1349 offset
= eventlog_dissect_element_RegisterEventSourceW_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
1350 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1352 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1355 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1361 eventlog_dissect_RegisterEventSourceW_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1363 di
->dcerpc_procedure_name
="RegisterEventSourceW";
1364 offset
= eventlog_dissect_element_RegisterEventSourceW_unknown0(tvb
, offset
, pinfo
, tree
, di
, drep
);
1365 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1366 offset
= eventlog_dissect_element_RegisterEventSourceW_logname(tvb
, offset
, pinfo
, tree
, di
, drep
);
1367 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1368 offset
= eventlog_dissect_element_RegisterEventSourceW_servername(tvb
, offset
, pinfo
, tree
, di
, drep
);
1369 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1370 offset
= eventlog_dissect_element_RegisterEventSourceW_unknown2(tvb
, offset
, pinfo
, tree
, di
, drep
);
1371 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1372 offset
= eventlog_dissect_element_RegisterEventSourceW_unknown3(tvb
, offset
, pinfo
, tree
, di
, drep
);
1373 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1378 eventlog_dissect_element_OpenBackupEventLogW_unknown0(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1380 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_OpenBackupEventLogW_unknown0_
, NDR_POINTER_UNIQUE
, "Pointer to Unknown0 (eventlog_OpenUnknown0)",hf_eventlog_eventlog_OpenBackupEventLogW_unknown0
);
1386 eventlog_dissect_element_OpenBackupEventLogW_unknown0_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1388 offset
= eventlog_dissect_struct_OpenUnknown0(tvb
,offset
,pinfo
,tree
,di
,drep
,hf_eventlog_eventlog_OpenBackupEventLogW_unknown0
,0);
1394 eventlog_dissect_element_OpenBackupEventLogW_logname(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1396 offset
=dissect_ndr_counted_string(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenBackupEventLogW_logname
, 0);
1402 eventlog_dissect_element_OpenBackupEventLogW_unknown2(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1404 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenBackupEventLogW_unknown2
, 0);
1410 eventlog_dissect_element_OpenBackupEventLogW_unknown3(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1412 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenBackupEventLogW_unknown3
, 0);
1418 eventlog_dissect_element_OpenBackupEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1420 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_OpenBackupEventLogW_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_OpenBackupEventLogW_handle
);
1426 eventlog_dissect_element_OpenBackupEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1428 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_OpenBackupEventLogW_handle
, PIDL_POLHND_OPEN
);
1433 /* IDL: NTSTATUS eventlog_OpenBackupEventLogW( */
1434 /* IDL: [in] [unique(1)] eventlog_OpenUnknown0 *unknown0, */
1435 /* IDL: [in] lsa_String logname, */
1436 /* IDL: [in] uint32 unknown2, */
1437 /* IDL: [in] uint32 unknown3, */
1438 /* IDL: [out] [ref] policy_handle *handle */
1442 eventlog_dissect_OpenBackupEventLogW_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1446 di
->dcerpc_procedure_name
="OpenBackupEventLogW";
1447 offset
= eventlog_dissect_element_OpenBackupEventLogW_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
1448 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1450 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1453 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1459 eventlog_dissect_OpenBackupEventLogW_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1461 di
->dcerpc_procedure_name
="OpenBackupEventLogW";
1462 offset
= eventlog_dissect_element_OpenBackupEventLogW_unknown0(tvb
, offset
, pinfo
, tree
, di
, drep
);
1463 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1464 offset
= eventlog_dissect_element_OpenBackupEventLogW_logname(tvb
, offset
, pinfo
, tree
, di
, drep
);
1465 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1466 offset
= eventlog_dissect_element_OpenBackupEventLogW_unknown2(tvb
, offset
, pinfo
, tree
, di
, drep
);
1467 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1468 offset
= eventlog_dissect_element_OpenBackupEventLogW_unknown3(tvb
, offset
, pinfo
, tree
, di
, drep
);
1469 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1474 eventlog_dissect_element_ReadEventLogW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1476 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_ReadEventLogW_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_ReadEventLogW_handle
);
1482 eventlog_dissect_element_ReadEventLogW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1484 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReadEventLogW_handle
, 0);
1490 eventlog_dissect_element_ReadEventLogW_flags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1492 offset
= eventlog_dissect_bitmap_eventlogReadFlags(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReadEventLogW_flags
, 0);
1498 eventlog_dissect_element_ReadEventLogW_offset(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1500 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReadEventLogW_offset
, 0);
1506 eventlog_dissect_element_ReadEventLogW_number_of_bytes(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1508 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReadEventLogW_number_of_bytes
, 0);
1514 eventlog_dissect_element_ReadEventLogW_data(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1516 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_ReadEventLogW_data_
, NDR_POINTER_REF
, "Pointer to Data (uint8)",hf_eventlog_eventlog_ReadEventLogW_data
);
1522 eventlog_dissect_element_ReadEventLogW_sent_size(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1524 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_ReadEventLogW_sent_size_
, NDR_POINTER_REF
, "Pointer to Sent Size (uint32)",hf_eventlog_eventlog_ReadEventLogW_sent_size
);
1530 eventlog_dissect_element_ReadEventLogW_sent_size_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1532 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReadEventLogW_sent_size
, 0);
1538 eventlog_dissect_element_ReadEventLogW_real_size(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1540 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_ReadEventLogW_real_size_
, NDR_POINTER_REF
, "Pointer to Real Size (uint32)",hf_eventlog_eventlog_ReadEventLogW_real_size
);
1546 eventlog_dissect_element_ReadEventLogW_real_size_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1548 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReadEventLogW_real_size
, 0);
1553 /* IDL: NTSTATUS eventlog_ReadEventLogW( */
1554 /* IDL: [in] [ref] policy_handle *handle, */
1555 /* IDL: [in] eventlogReadFlags flags, */
1556 /* IDL: [in] uint32 offset, */
1557 /* IDL: [in] uint32 number_of_bytes, */
1558 /* IDL: [out] [ref] [size_is(number_of_bytes)] uint8 *data, */
1559 /* IDL: [out] [ref] uint32 *sent_size, */
1560 /* IDL: [out] [ref] uint32 *real_size */
1564 eventlog_dissect_ReadEventLogW_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1568 di
->dcerpc_procedure_name
="ReadEventLogW";
1569 offset
= eventlog_dissect_element_ReadEventLogW_data(tvb
, offset
, pinfo
, tree
, di
, drep
);
1570 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1572 offset
= eventlog_dissect_element_ReadEventLogW_sent_size(tvb
, offset
, pinfo
, tree
, di
, drep
);
1573 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1575 offset
= eventlog_dissect_element_ReadEventLogW_real_size(tvb
, offset
, pinfo
, tree
, di
, drep
);
1576 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1578 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1581 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1587 eventlog_dissect_ReadEventLogW_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1589 di
->dcerpc_procedure_name
="ReadEventLogW";
1590 offset
= eventlog_dissect_element_ReadEventLogW_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
1591 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1592 offset
= eventlog_dissect_element_ReadEventLogW_flags(tvb
, offset
, pinfo
, tree
, di
, drep
);
1593 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1594 offset
= eventlog_dissect_element_ReadEventLogW_offset(tvb
, offset
, pinfo
, tree
, di
, drep
);
1595 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1596 offset
= eventlog_dissect_element_ReadEventLogW_number_of_bytes(tvb
, offset
, pinfo
, tree
, di
, drep
);
1597 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1602 eventlog_dissect_element_ReportEventW_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1604 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_ReportEventW_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_ReportEventW_handle
);
1610 eventlog_dissect_element_ReportEventW_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1612 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReportEventW_handle
, 0);
1618 eventlog_dissect_element_ReportEventW_time(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1620 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReportEventW_time
, 0);
1626 eventlog_dissect_element_ReportEventW_Type(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1628 offset
= eventlog_dissect_bitmap_eventlogEventTypes(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReportEventW_Type
, 0);
1634 eventlog_dissect_element_ReportEventW_event_category(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1636 offset
= PIDL_dissect_uint16(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReportEventW_event_category
, 0);
1642 eventlog_dissect_element_ReportEventW_event_id(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1644 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReportEventW_event_id
, 0);
1650 eventlog_dissect_element_ReportEventW_num_of_strings(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1652 offset
= PIDL_dissect_uint16(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReportEventW_num_of_strings
, 0);
1658 eventlog_dissect_element_ReportEventW_data_length(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1660 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReportEventW_data_length
, 0);
1666 eventlog_dissect_element_ReportEventW_computer_name(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1668 offset
=dissect_ndr_counted_string(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_ReportEventW_computer_name
, 0);
1673 /* IDL: NTSTATUS eventlog_ReportEventW( */
1674 /* IDL: [in] [ref] policy_handle *handle, */
1675 /* IDL: [in] uint32 time, */
1676 /* IDL: [in] eventlogEventTypes Type, */
1677 /* IDL: [in] uint16 event_category, */
1678 /* IDL: [in] uint32 event_id, */
1679 /* IDL: [in] uint16 num_of_strings, */
1680 /* IDL: [in] uint32 data_length, */
1681 /* IDL: [in] lsa_String computer_name */
1685 eventlog_dissect_ReportEventW_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1689 di
->dcerpc_procedure_name
="ReportEventW";
1690 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1693 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1699 eventlog_dissect_ReportEventW_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1701 di
->dcerpc_procedure_name
="ReportEventW";
1702 offset
= eventlog_dissect_element_ReportEventW_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
1703 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1704 offset
= eventlog_dissect_element_ReportEventW_time(tvb
, offset
, pinfo
, tree
, di
, drep
);
1705 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1706 offset
= eventlog_dissect_element_ReportEventW_Type(tvb
, offset
, pinfo
, tree
, di
, drep
);
1707 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1708 offset
= eventlog_dissect_element_ReportEventW_event_category(tvb
, offset
, pinfo
, tree
, di
, drep
);
1709 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1710 offset
= eventlog_dissect_element_ReportEventW_event_id(tvb
, offset
, pinfo
, tree
, di
, drep
);
1711 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1712 offset
= eventlog_dissect_element_ReportEventW_num_of_strings(tvb
, offset
, pinfo
, tree
, di
, drep
);
1713 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1714 offset
= eventlog_dissect_element_ReportEventW_data_length(tvb
, offset
, pinfo
, tree
, di
, drep
);
1715 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1716 offset
= eventlog_dissect_element_ReportEventW_computer_name(tvb
, offset
, pinfo
, tree
, di
, drep
);
1717 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
1721 /* IDL: NTSTATUS eventlog_ClearEventLogA( */
1726 eventlog_dissect_ClearEventLogA_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1730 di
->dcerpc_procedure_name
="ClearEventLogA";
1731 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1734 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1740 eventlog_dissect_ClearEventLogA_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1742 di
->dcerpc_procedure_name
="ClearEventLogA";
1746 /* IDL: NTSTATUS eventlog_BackupEventLogA( */
1751 eventlog_dissect_BackupEventLogA_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1755 di
->dcerpc_procedure_name
="BackupEventLogA";
1756 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1759 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1765 eventlog_dissect_BackupEventLogA_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1767 di
->dcerpc_procedure_name
="BackupEventLogA";
1771 /* IDL: NTSTATUS eventlog_OpenEventLogA( */
1776 eventlog_dissect_OpenEventLogA_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1780 di
->dcerpc_procedure_name
="OpenEventLogA";
1781 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1784 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1790 eventlog_dissect_OpenEventLogA_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1792 di
->dcerpc_procedure_name
="OpenEventLogA";
1796 /* IDL: NTSTATUS eventlog_RegisterEventSourceA( */
1801 eventlog_dissect_RegisterEventSourceA_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1805 di
->dcerpc_procedure_name
="RegisterEventSourceA";
1806 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1809 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1815 eventlog_dissect_RegisterEventSourceA_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1817 di
->dcerpc_procedure_name
="RegisterEventSourceA";
1821 /* IDL: NTSTATUS eventlog_OpenBackupEventLogA( */
1826 eventlog_dissect_OpenBackupEventLogA_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1830 di
->dcerpc_procedure_name
="OpenBackupEventLogA";
1831 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1834 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1840 eventlog_dissect_OpenBackupEventLogA_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1842 di
->dcerpc_procedure_name
="OpenBackupEventLogA";
1846 /* IDL: NTSTATUS eventlog_ReadEventLogA( */
1851 eventlog_dissect_ReadEventLogA_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1855 di
->dcerpc_procedure_name
="ReadEventLogA";
1856 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1859 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1865 eventlog_dissect_ReadEventLogA_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1867 di
->dcerpc_procedure_name
="ReadEventLogA";
1871 /* IDL: NTSTATUS eventlog_ReportEventA( */
1876 eventlog_dissect_ReportEventA_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1880 di
->dcerpc_procedure_name
="ReportEventA";
1881 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1884 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1890 eventlog_dissect_ReportEventA_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1892 di
->dcerpc_procedure_name
="ReportEventA";
1896 /* IDL: NTSTATUS eventlog_RegisterClusterSvc( */
1901 eventlog_dissect_RegisterClusterSvc_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1905 di
->dcerpc_procedure_name
="RegisterClusterSvc";
1906 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1909 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1915 eventlog_dissect_RegisterClusterSvc_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1917 di
->dcerpc_procedure_name
="RegisterClusterSvc";
1921 /* IDL: NTSTATUS eventlog_DeregisterClusterSvc( */
1926 eventlog_dissect_DeregisterClusterSvc_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1930 di
->dcerpc_procedure_name
="DeregisterClusterSvc";
1931 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1934 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1940 eventlog_dissect_DeregisterClusterSvc_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1942 di
->dcerpc_procedure_name
="DeregisterClusterSvc";
1946 /* IDL: NTSTATUS eventlog_WriteClusterEvents( */
1951 eventlog_dissect_WriteClusterEvents_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1955 di
->dcerpc_procedure_name
="WriteClusterEvents";
1956 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
1959 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
1965 eventlog_dissect_WriteClusterEvents_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1967 di
->dcerpc_procedure_name
="WriteClusterEvents";
1972 eventlog_dissect_element_GetLogInformation_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1974 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_GetLogInformation_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_GetLogInformation_handle
);
1980 eventlog_dissect_element_GetLogInformation_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1982 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_GetLogInformation_handle
, 0);
1988 eventlog_dissect_element_GetLogInformation_dwInfoLevel(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1990 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_GetLogInformation_dwInfoLevel
, 0);
1996 eventlog_dissect_element_GetLogInformation_lpBuffer(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
1998 struct ndr_generic_array nga
= { .is_conformant
= false, };
2000 offset
= dissect_ndr_conformant_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
2002 offset
= dissect_ndr_generic_array_bytes(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
, eventlog_dissect_element_GetLogInformation_lpBuffer_
);
2008 eventlog_dissect_element_GetLogInformation_lpBuffer_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2010 offset
= PIDL_dissect_uint8(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_GetLogInformation_lpBuffer
, 0);
2016 eventlog_dissect_element_GetLogInformation_cbBufSize(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2018 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_GetLogInformation_cbBufSize
, 0);
2024 eventlog_dissect_element_GetLogInformation_cbBytesNeeded(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2026 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_GetLogInformation_cbBytesNeeded_
, NDR_POINTER_REF
, "Pointer to CbBytesNeeded (int32)",hf_eventlog_eventlog_GetLogInformation_cbBytesNeeded
);
2032 eventlog_dissect_element_GetLogInformation_cbBytesNeeded_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2034 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_GetLogInformation_cbBytesNeeded
, 0);
2039 /* IDL: NTSTATUS eventlog_GetLogInformation( */
2040 /* IDL: [in] [ref] policy_handle *handle, */
2041 /* IDL: [in] uint32 dwInfoLevel, */
2042 /* IDL: [out] [size_is(cbBufSize)] uint8 lpBuffer[*], */
2043 /* IDL: [in] uint32 cbBufSize, */
2044 /* IDL: [out] [ref] int32 *cbBytesNeeded */
2048 eventlog_dissect_GetLogInformation_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2052 di
->dcerpc_procedure_name
="GetLogInformation";
2053 offset
= eventlog_dissect_element_GetLogInformation_lpBuffer(tvb
, offset
, pinfo
, tree
, di
, drep
);
2054 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
2056 offset
= eventlog_dissect_element_GetLogInformation_cbBytesNeeded(tvb
, offset
, pinfo
, tree
, di
, drep
);
2057 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
2059 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
2062 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
2068 eventlog_dissect_GetLogInformation_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2070 di
->dcerpc_procedure_name
="GetLogInformation";
2071 offset
= eventlog_dissect_element_GetLogInformation_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
2072 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
2073 offset
= eventlog_dissect_element_GetLogInformation_dwInfoLevel(tvb
, offset
, pinfo
, tree
, di
, drep
);
2074 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
2075 offset
= eventlog_dissect_element_GetLogInformation_cbBufSize(tvb
, offset
, pinfo
, tree
, di
, drep
);
2076 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
2081 eventlog_dissect_element_FlushEventLog_handle(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2083 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, eventlog_dissect_element_FlushEventLog_handle_
, NDR_POINTER_REF
, "Pointer to Handle (policy_handle)",hf_eventlog_eventlog_FlushEventLog_handle
);
2089 eventlog_dissect_element_FlushEventLog_handle_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2091 offset
= PIDL_dissect_policy_hnd(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_eventlog_FlushEventLog_handle
, 0);
2096 /* IDL: NTSTATUS eventlog_FlushEventLog( */
2097 /* IDL: [in] [ref] policy_handle *handle */
2101 eventlog_dissect_FlushEventLog_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2105 di
->dcerpc_procedure_name
="FlushEventLog";
2106 offset
= dissect_ntstatus(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_eventlog_status
, &status
);
2109 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Error: %s", val_to_str_ext(status
, &NT_errors_ext
, "Unknown NT status 0x%08x"));
2115 eventlog_dissect_FlushEventLog_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
2117 di
->dcerpc_procedure_name
="FlushEventLog";
2118 offset
= eventlog_dissect_element_FlushEventLog_handle(tvb
, offset
, pinfo
, tree
, di
, drep
);
2119 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
2124 static const dcerpc_sub_dissector eventlog_dissectors
[] = {
2125 { 0, "ClearEventLogW",
2126 eventlog_dissect_ClearEventLogW_request
, eventlog_dissect_ClearEventLogW_response
},
2127 { 1, "BackupEventLogW",
2128 eventlog_dissect_BackupEventLogW_request
, eventlog_dissect_BackupEventLogW_response
},
2129 { 2, "CloseEventLog",
2130 eventlog_dissect_CloseEventLog_request
, eventlog_dissect_CloseEventLog_response
},
2131 { 3, "DeregisterEventSource",
2132 eventlog_dissect_DeregisterEventSource_request
, eventlog_dissect_DeregisterEventSource_response
},
2133 { 4, "GetNumRecords",
2134 eventlog_dissect_GetNumRecords_request
, eventlog_dissect_GetNumRecords_response
},
2135 { 5, "GetOldestRecord",
2136 eventlog_dissect_GetOldestRecord_request
, eventlog_dissect_GetOldestRecord_response
},
2137 { 6, "ChangeNotify",
2138 eventlog_dissect_ChangeNotify_request
, eventlog_dissect_ChangeNotify_response
},
2139 { 7, "OpenEventLogW",
2140 eventlog_dissect_OpenEventLogW_request
, eventlog_dissect_OpenEventLogW_response
},
2141 { 8, "RegisterEventSourceW",
2142 eventlog_dissect_RegisterEventSourceW_request
, eventlog_dissect_RegisterEventSourceW_response
},
2143 { 9, "OpenBackupEventLogW",
2144 eventlog_dissect_OpenBackupEventLogW_request
, eventlog_dissect_OpenBackupEventLogW_response
},
2145 { 10, "ReadEventLogW",
2146 eventlog_dissect_ReadEventLogW_request
, eventlog_dissect_ReadEventLogW_response
},
2147 { 11, "ReportEventW",
2148 eventlog_dissect_ReportEventW_request
, eventlog_dissect_ReportEventW_response
},
2149 { 12, "ClearEventLogA",
2150 eventlog_dissect_ClearEventLogA_request
, eventlog_dissect_ClearEventLogA_response
},
2151 { 13, "BackupEventLogA",
2152 eventlog_dissect_BackupEventLogA_request
, eventlog_dissect_BackupEventLogA_response
},
2153 { 14, "OpenEventLogA",
2154 eventlog_dissect_OpenEventLogA_request
, eventlog_dissect_OpenEventLogA_response
},
2155 { 15, "RegisterEventSourceA",
2156 eventlog_dissect_RegisterEventSourceA_request
, eventlog_dissect_RegisterEventSourceA_response
},
2157 { 16, "OpenBackupEventLogA",
2158 eventlog_dissect_OpenBackupEventLogA_request
, eventlog_dissect_OpenBackupEventLogA_response
},
2159 { 17, "ReadEventLogA",
2160 eventlog_dissect_ReadEventLogA_request
, eventlog_dissect_ReadEventLogA_response
},
2161 { 18, "ReportEventA",
2162 eventlog_dissect_ReportEventA_request
, eventlog_dissect_ReportEventA_response
},
2163 { 19, "RegisterClusterSvc",
2164 eventlog_dissect_RegisterClusterSvc_request
, eventlog_dissect_RegisterClusterSvc_response
},
2165 { 20, "DeregisterClusterSvc",
2166 eventlog_dissect_DeregisterClusterSvc_request
, eventlog_dissect_DeregisterClusterSvc_response
},
2167 { 21, "WriteClusterEvents",
2168 eventlog_dissect_WriteClusterEvents_request
, eventlog_dissect_WriteClusterEvents_response
},
2169 { 22, "GetLogInformation",
2170 eventlog_dissect_GetLogInformation_request
, eventlog_dissect_GetLogInformation_response
},
2171 { 23, "FlushEventLog",
2172 eventlog_dissect_FlushEventLog_request
, eventlog_dissect_FlushEventLog_response
},
2173 { 0, NULL
, NULL
, NULL
}
2176 void proto_register_dcerpc_eventlog(void)
2178 static hf_register_info hf
[] = {
2179 { &hf_eventlog_Record
,
2180 { "Record", "eventlog.Record", FT_NONE
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2181 { &hf_eventlog_Record_computer_name
,
2182 { "Computer Name", "eventlog.Record.computer_name", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2183 { &hf_eventlog_Record_length
,
2184 { "Record Length", "eventlog.Record.length", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2185 { &hf_eventlog_Record_source_name
,
2186 { "Source Name", "eventlog.Record.source_name", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2187 { &hf_eventlog_Record_string
,
2188 { "string", "eventlog.Record.string", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2189 { &hf_eventlog_eventlogEventTypes_EVENTLOG_AUDIT_FAILURE
,
2190 { "EVENTLOG AUDIT FAILURE", "eventlog.eventlogEventTypes.EVENTLOG_AUDIT_FAILURE", FT_BOOLEAN
, 32, TFS(&eventlogEventTypes_EVENTLOG_AUDIT_FAILURE_tfs
), ( 0x00000010 ), NULL
, HFILL
}},
2191 { &hf_eventlog_eventlogEventTypes_EVENTLOG_AUDIT_SUCCESS
,
2192 { "EVENTLOG AUDIT SUCCESS", "eventlog.eventlogEventTypes.EVENTLOG_AUDIT_SUCCESS", FT_BOOLEAN
, 32, TFS(&eventlogEventTypes_EVENTLOG_AUDIT_SUCCESS_tfs
), ( 0x00000008 ), NULL
, HFILL
}},
2193 { &hf_eventlog_eventlogEventTypes_EVENTLOG_ERROR_TYPE
,
2194 { "EVENTLOG ERROR TYPE", "eventlog.eventlogEventTypes.EVENTLOG_ERROR_TYPE", FT_BOOLEAN
, 32, TFS(&eventlogEventTypes_EVENTLOG_ERROR_TYPE_tfs
), ( 0x00000001 ), NULL
, HFILL
}},
2195 { &hf_eventlog_eventlogEventTypes_EVENTLOG_INFORMATION_TYPE
,
2196 { "EVENTLOG INFORMATION TYPE", "eventlog.eventlogEventTypes.EVENTLOG_INFORMATION_TYPE", FT_BOOLEAN
, 32, TFS(&eventlogEventTypes_EVENTLOG_INFORMATION_TYPE_tfs
), ( 0x00000004 ), NULL
, HFILL
}},
2197 { &hf_eventlog_eventlogEventTypes_EVENTLOG_WARNING_TYPE
,
2198 { "EVENTLOG WARNING TYPE", "eventlog.eventlogEventTypes.EVENTLOG_WARNING_TYPE", FT_BOOLEAN
, 32, TFS(&eventlogEventTypes_EVENTLOG_WARNING_TYPE_tfs
), ( 0x00000002 ), NULL
, HFILL
}},
2199 { &hf_eventlog_eventlogReadFlags_EVENTLOG_BACKWARDS_READ
,
2200 { "EVENTLOG BACKWARDS READ", "eventlog.eventlogReadFlags.EVENTLOG_BACKWARDS_READ", FT_BOOLEAN
, 32, TFS(&eventlogReadFlags_EVENTLOG_BACKWARDS_READ_tfs
), ( 0x00000008 ), NULL
, HFILL
}},
2201 { &hf_eventlog_eventlogReadFlags_EVENTLOG_FORWARDS_READ
,
2202 { "EVENTLOG FORWARDS READ", "eventlog.eventlogReadFlags.EVENTLOG_FORWARDS_READ", FT_BOOLEAN
, 32, TFS(&eventlogReadFlags_EVENTLOG_FORWARDS_READ_tfs
), ( 0x00000004 ), NULL
, HFILL
}},
2203 { &hf_eventlog_eventlogReadFlags_EVENTLOG_SEEK_READ
,
2204 { "EVENTLOG SEEK READ", "eventlog.eventlogReadFlags.EVENTLOG_SEEK_READ", FT_BOOLEAN
, 32, TFS(&eventlogReadFlags_EVENTLOG_SEEK_READ_tfs
), ( 0x00000002 ), NULL
, HFILL
}},
2205 { &hf_eventlog_eventlogReadFlags_EVENTLOG_SEQUENTIAL_READ
,
2206 { "EVENTLOG SEQUENTIAL READ", "eventlog.eventlogReadFlags.EVENTLOG_SEQUENTIAL_READ", FT_BOOLEAN
, 32, TFS(&eventlogReadFlags_EVENTLOG_SEQUENTIAL_READ_tfs
), ( 0x00000001 ), NULL
, HFILL
}},
2207 { &hf_eventlog_eventlog_BackupEventLogW_backupfilename
,
2208 { "Backupfilename", "eventlog.eventlog_BackupEventLogW.backupfilename", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2209 { &hf_eventlog_eventlog_BackupEventLogW_handle
,
2210 { "Handle", "eventlog.eventlog_BackupEventLogW.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2211 { &hf_eventlog_eventlog_ChangeNotify_handle
,
2212 { "Handle", "eventlog.eventlog_ChangeNotify.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2213 { &hf_eventlog_eventlog_ChangeNotify_unknown2
,
2214 { "Unknown2", "eventlog.eventlog_ChangeNotify.unknown2", FT_NONE
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2215 { &hf_eventlog_eventlog_ChangeNotify_unknown3
,
2216 { "Unknown3", "eventlog.eventlog_ChangeNotify.unknown3", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2217 { &hf_eventlog_eventlog_ChangeUnknown0_unknown0
,
2218 { "Unknown0", "eventlog.eventlog_ChangeUnknown0.unknown0", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2219 { &hf_eventlog_eventlog_ChangeUnknown0_unknown1
,
2220 { "Unknown1", "eventlog.eventlog_ChangeUnknown0.unknown1", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2221 { &hf_eventlog_eventlog_ClearEventLogW_backupfilename
,
2222 { "Backupfilename", "eventlog.eventlog_ClearEventLogW.backupfilename", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2223 { &hf_eventlog_eventlog_ClearEventLogW_handle
,
2224 { "Handle", "eventlog.eventlog_ClearEventLogW.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2225 { &hf_eventlog_eventlog_CloseEventLog_handle
,
2226 { "Handle", "eventlog.eventlog_CloseEventLog.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2227 { &hf_eventlog_eventlog_DeregisterEventSource_handle
,
2228 { "Handle", "eventlog.eventlog_DeregisterEventSource.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2229 { &hf_eventlog_eventlog_FlushEventLog_handle
,
2230 { "Handle", "eventlog.eventlog_FlushEventLog.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2231 { &hf_eventlog_eventlog_GetLogInformation_cbBufSize
,
2232 { "CbBufSize", "eventlog.eventlog_GetLogInformation.cbBufSize", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2233 { &hf_eventlog_eventlog_GetLogInformation_cbBytesNeeded
,
2234 { "CbBytesNeeded", "eventlog.eventlog_GetLogInformation.cbBytesNeeded", FT_INT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2235 { &hf_eventlog_eventlog_GetLogInformation_dwInfoLevel
,
2236 { "DwInfoLevel", "eventlog.eventlog_GetLogInformation.dwInfoLevel", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2237 { &hf_eventlog_eventlog_GetLogInformation_handle
,
2238 { "Handle", "eventlog.eventlog_GetLogInformation.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2239 { &hf_eventlog_eventlog_GetLogInformation_lpBuffer
,
2240 { "LpBuffer", "eventlog.eventlog_GetLogInformation.lpBuffer", FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2241 { &hf_eventlog_eventlog_GetNumRecords_handle
,
2242 { "Handle", "eventlog.eventlog_GetNumRecords.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2243 { &hf_eventlog_eventlog_GetNumRecords_number
,
2244 { "Number", "eventlog.eventlog_GetNumRecords.number", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2245 { &hf_eventlog_eventlog_GetOldestRecord_handle
,
2246 { "Handle", "eventlog.eventlog_GetOldestRecord.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2247 { &hf_eventlog_eventlog_GetOldestRecord_oldest
,
2248 { "Oldest", "eventlog.eventlog_GetOldestRecord.oldest", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2249 { &hf_eventlog_eventlog_OpenBackupEventLogW_handle
,
2250 { "Handle", "eventlog.eventlog_OpenBackupEventLogW.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2251 { &hf_eventlog_eventlog_OpenBackupEventLogW_logname
,
2252 { "Logname", "eventlog.eventlog_OpenBackupEventLogW.logname", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2253 { &hf_eventlog_eventlog_OpenBackupEventLogW_unknown0
,
2254 { "Unknown0", "eventlog.eventlog_OpenBackupEventLogW.unknown0", FT_NONE
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2255 { &hf_eventlog_eventlog_OpenBackupEventLogW_unknown2
,
2256 { "Unknown2", "eventlog.eventlog_OpenBackupEventLogW.unknown2", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2257 { &hf_eventlog_eventlog_OpenBackupEventLogW_unknown3
,
2258 { "Unknown3", "eventlog.eventlog_OpenBackupEventLogW.unknown3", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2259 { &hf_eventlog_eventlog_OpenEventLogW_MajorVersion
,
2260 { "MajorVersion", "eventlog.eventlog_OpenEventLogW.MajorVersion", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2261 { &hf_eventlog_eventlog_OpenEventLogW_MinorVersion
,
2262 { "MinorVersion", "eventlog.eventlog_OpenEventLogW.MinorVersion", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2263 { &hf_eventlog_eventlog_OpenEventLogW_Module
,
2264 { "Module", "eventlog.eventlog_OpenEventLogW.Module", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2265 { &hf_eventlog_eventlog_OpenEventLogW_RegModuleName
,
2266 { "RegModuleName", "eventlog.eventlog_OpenEventLogW.RegModuleName", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2267 { &hf_eventlog_eventlog_OpenEventLogW_handle
,
2268 { "Handle", "eventlog.eventlog_OpenEventLogW.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2269 { &hf_eventlog_eventlog_OpenEventLogW_unknown0
,
2270 { "Unknown0", "eventlog.eventlog_OpenEventLogW.unknown0", FT_NONE
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2271 { &hf_eventlog_eventlog_OpenUnknown0_unknown0
,
2272 { "Unknown0", "eventlog.eventlog_OpenUnknown0.unknown0", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2273 { &hf_eventlog_eventlog_OpenUnknown0_unknown1
,
2274 { "Unknown1", "eventlog.eventlog_OpenUnknown0.unknown1", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2275 { &hf_eventlog_eventlog_ReadEventLogW_data
,
2276 { "Data", "eventlog.eventlog_ReadEventLogW.data", FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2277 { &hf_eventlog_eventlog_ReadEventLogW_flags
,
2278 { "Flags", "eventlog.eventlog_ReadEventLogW.flags", FT_UINT32
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
2279 { &hf_eventlog_eventlog_ReadEventLogW_handle
,
2280 { "Handle", "eventlog.eventlog_ReadEventLogW.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2281 { &hf_eventlog_eventlog_ReadEventLogW_number_of_bytes
,
2282 { "Number Of Bytes", "eventlog.eventlog_ReadEventLogW.number_of_bytes", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2283 { &hf_eventlog_eventlog_ReadEventLogW_offset
,
2284 { "Offset", "eventlog.eventlog_ReadEventLogW.offset", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2285 { &hf_eventlog_eventlog_ReadEventLogW_real_size
,
2286 { "Real Size", "eventlog.eventlog_ReadEventLogW.real_size", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2287 { &hf_eventlog_eventlog_ReadEventLogW_sent_size
,
2288 { "Sent Size", "eventlog.eventlog_ReadEventLogW.sent_size", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2289 { &hf_eventlog_eventlog_Record_closing_record_number
,
2290 { "Closing Record Number", "eventlog.eventlog_Record.closing_record_number", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2291 { &hf_eventlog_eventlog_Record_computer_name
,
2292 { "Computer Name", "eventlog.eventlog_Record.computer_name", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2293 { &hf_eventlog_eventlog_Record_data_length
,
2294 { "Data Length", "eventlog.eventlog_Record.data_length", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2295 { &hf_eventlog_eventlog_Record_data_offset
,
2296 { "Data Offset", "eventlog.eventlog_Record.data_offset", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2297 { &hf_eventlog_eventlog_Record_event_category
,
2298 { "Event Category", "eventlog.eventlog_Record.event_category", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2299 { &hf_eventlog_eventlog_Record_event_id
,
2300 { "Event Id", "eventlog.eventlog_Record.event_id", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2301 { &hf_eventlog_eventlog_Record_event_type
,
2302 { "Event Type", "eventlog.eventlog_Record.event_type", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2303 { &hf_eventlog_eventlog_Record_num_of_strings
,
2304 { "Num Of Strings", "eventlog.eventlog_Record.num_of_strings", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2305 { &hf_eventlog_eventlog_Record_raw_data
,
2306 { "Raw Data", "eventlog.eventlog_Record.raw_data", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2307 { &hf_eventlog_eventlog_Record_record_number
,
2308 { "Record Number", "eventlog.eventlog_Record.record_number", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2309 { &hf_eventlog_eventlog_Record_reserved
,
2310 { "Reserved", "eventlog.eventlog_Record.reserved", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2311 { &hf_eventlog_eventlog_Record_reserved_flags
,
2312 { "Reserved Flags", "eventlog.eventlog_Record.reserved_flags", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2313 { &hf_eventlog_eventlog_Record_sid_length
,
2314 { "Sid Length", "eventlog.eventlog_Record.sid_length", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2315 { &hf_eventlog_eventlog_Record_sid_offset
,
2316 { "Sid Offset", "eventlog.eventlog_Record.sid_offset", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2317 { &hf_eventlog_eventlog_Record_size
,
2318 { "Size", "eventlog.eventlog_Record.size", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2319 { &hf_eventlog_eventlog_Record_source_name
,
2320 { "Source Name", "eventlog.eventlog_Record.source_name", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2321 { &hf_eventlog_eventlog_Record_stringoffset
,
2322 { "Stringoffset", "eventlog.eventlog_Record.stringoffset", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2323 { &hf_eventlog_eventlog_Record_strings
,
2324 { "Strings", "eventlog.eventlog_Record.strings", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2325 { &hf_eventlog_eventlog_Record_time_generated
,
2326 { "Time Generated", "eventlog.eventlog_Record.time_generated", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2327 { &hf_eventlog_eventlog_Record_time_written
,
2328 { "Time Written", "eventlog.eventlog_Record.time_written", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2329 { &hf_eventlog_eventlog_RegisterEventSourceW_handle
,
2330 { "Handle", "eventlog.eventlog_RegisterEventSourceW.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2331 { &hf_eventlog_eventlog_RegisterEventSourceW_logname
,
2332 { "Logname", "eventlog.eventlog_RegisterEventSourceW.logname", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2333 { &hf_eventlog_eventlog_RegisterEventSourceW_servername
,
2334 { "Servername", "eventlog.eventlog_RegisterEventSourceW.servername", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2335 { &hf_eventlog_eventlog_RegisterEventSourceW_unknown0
,
2336 { "Unknown0", "eventlog.eventlog_RegisterEventSourceW.unknown0", FT_NONE
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2337 { &hf_eventlog_eventlog_RegisterEventSourceW_unknown2
,
2338 { "Unknown2", "eventlog.eventlog_RegisterEventSourceW.unknown2", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2339 { &hf_eventlog_eventlog_RegisterEventSourceW_unknown3
,
2340 { "Unknown3", "eventlog.eventlog_RegisterEventSourceW.unknown3", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2341 { &hf_eventlog_eventlog_ReportEventW_Type
,
2342 { "Type", "eventlog.eventlog_ReportEventW.Type", FT_UINT32
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
2343 { &hf_eventlog_eventlog_ReportEventW_computer_name
,
2344 { "Computer Name", "eventlog.eventlog_ReportEventW.computer_name", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2345 { &hf_eventlog_eventlog_ReportEventW_data_length
,
2346 { "Data Length", "eventlog.eventlog_ReportEventW.data_length", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2347 { &hf_eventlog_eventlog_ReportEventW_event_category
,
2348 { "Event Category", "eventlog.eventlog_ReportEventW.event_category", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2349 { &hf_eventlog_eventlog_ReportEventW_event_id
,
2350 { "Event Id", "eventlog.eventlog_ReportEventW.event_id", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2351 { &hf_eventlog_eventlog_ReportEventW_handle
,
2352 { "Handle", "eventlog.eventlog_ReportEventW.handle", FT_BYTES
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
2353 { &hf_eventlog_eventlog_ReportEventW_num_of_strings
,
2354 { "Num Of Strings", "eventlog.eventlog_ReportEventW.num_of_strings", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2355 { &hf_eventlog_eventlog_ReportEventW_time
,
2356 { "Time", "eventlog.eventlog_ReportEventW.time", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2357 { &hf_eventlog_opnum
,
2358 { "Operation", "eventlog.opnum", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
2359 { &hf_eventlog_status
,
2360 { "NT Error", "eventlog.status", FT_UINT32
, BASE_HEX
|BASE_EXT_STRING
, &NT_errors_ext
, 0, NULL
, HFILL
}},
2364 static int *ett
[] = {
2365 &ett_dcerpc_eventlog
,
2366 &ett_eventlog_eventlogReadFlags
,
2367 &ett_eventlog_eventlogEventTypes
,
2368 &ett_eventlog_eventlog_OpenUnknown0
,
2369 &ett_eventlog_eventlog_Record
,
2370 &ett_eventlog_eventlog_ChangeUnknown0
,
2373 proto_dcerpc_eventlog
= proto_register_protocol("Event Logger", "EVENTLOG", "eventlog");
2374 proto_register_field_array(proto_dcerpc_eventlog
, hf
, array_length (hf
));
2375 proto_register_subtree_array(ett
, array_length(ett
));
2378 void proto_reg_handoff_dcerpc_eventlog(void)
2380 dcerpc_init_uuid(proto_dcerpc_eventlog
, ett_dcerpc_eventlog
,
2381 &uuid_dcerpc_eventlog
, ver_dcerpc_eventlog
,
2382 eventlog_dissectors
, hf_eventlog_opnum
);