Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/librpc/gen_ndr/ndr_dfs.h"
5 :
6 : #include "librpc/gen_ndr/ndr_misc.h"
7 2 : static enum ndr_err_code ndr_push_dfs_ManagerVersion(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum dfs_ManagerVersion r)
8 : {
9 2 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
10 2 : return NDR_ERR_SUCCESS;
11 : }
12 :
13 4 : static enum ndr_err_code ndr_pull_dfs_ManagerVersion(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum dfs_ManagerVersion *r)
14 : {
15 2 : uint32_t v;
16 4 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
17 4 : *r = v;
18 4 : return NDR_ERR_SUCCESS;
19 : }
20 :
21 2 : _PUBLIC_ void ndr_print_dfs_ManagerVersion(struct ndr_print *ndr, const char *name, enum dfs_ManagerVersion r)
22 : {
23 2 : const char *val = NULL;
24 :
25 2 : switch (r) {
26 0 : case DFS_MANAGER_VERSION_NT4: val = "DFS_MANAGER_VERSION_NT4"; break;
27 0 : case DFS_MANAGER_VERSION_W2K: val = "DFS_MANAGER_VERSION_W2K"; break;
28 2 : case DFS_MANAGER_VERSION_W2K3: val = "DFS_MANAGER_VERSION_W2K3"; break;
29 0 : case DFS_MANAGER_VERSION_W2K8: val = "DFS_MANAGER_VERSION_W2K8"; break;
30 : }
31 2 : ndr_print_enum(ndr, name, "ENUM", val, r);
32 2 : }
33 :
34 0 : static enum ndr_err_code ndr_push_dfs_Info0(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info0 *r)
35 : {
36 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
37 0 : if (ndr_flags & NDR_SCALARS) {
38 0 : NDR_CHECK(ndr_push_align(ndr, 1));
39 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
40 : }
41 0 : if (ndr_flags & NDR_BUFFERS) {
42 0 : }
43 0 : return NDR_ERR_SUCCESS;
44 : }
45 :
46 0 : static enum ndr_err_code ndr_pull_dfs_Info0(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info0 *r)
47 : {
48 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
49 0 : if (ndr_flags & NDR_SCALARS) {
50 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
51 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
52 : }
53 0 : if (ndr_flags & NDR_BUFFERS) {
54 0 : }
55 0 : return NDR_ERR_SUCCESS;
56 : }
57 :
58 0 : _PUBLIC_ void ndr_print_dfs_Info0(struct ndr_print *ndr, const char *name, const struct dfs_Info0 *r)
59 : {
60 0 : ndr_print_struct(ndr, name, "dfs_Info0");
61 0 : if (r == NULL) { ndr_print_null(ndr); return; }
62 0 : ndr->depth++;
63 0 : ndr->depth--;
64 : }
65 :
66 2 : static enum ndr_err_code ndr_push_dfs_Info1(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info1 *r)
67 : {
68 2 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
69 2 : if (ndr_flags & NDR_SCALARS) {
70 2 : NDR_CHECK(ndr_push_align(ndr, 5));
71 2 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->path));
72 2 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
73 : }
74 2 : if (ndr_flags & NDR_BUFFERS) {
75 2 : if (r->path) {
76 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
77 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
78 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
79 2 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->path, ndr_charset_length(r->path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
80 : }
81 : }
82 2 : return NDR_ERR_SUCCESS;
83 : }
84 :
85 2 : static enum ndr_err_code ndr_pull_dfs_Info1(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info1 *r)
86 : {
87 0 : uint32_t _ptr_path;
88 2 : uint32_t size_path_1 = 0;
89 2 : uint32_t length_path_1 = 0;
90 2 : TALLOC_CTX *_mem_save_path_0 = NULL;
91 2 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
92 2 : if (ndr_flags & NDR_SCALARS) {
93 2 : NDR_CHECK(ndr_pull_align(ndr, 5));
94 2 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_path));
95 2 : if (_ptr_path) {
96 2 : NDR_PULL_ALLOC(ndr, r->path);
97 : } else {
98 0 : r->path = NULL;
99 : }
100 2 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
101 : }
102 2 : if (ndr_flags & NDR_BUFFERS) {
103 2 : if (r->path) {
104 2 : _mem_save_path_0 = NDR_PULL_GET_MEM_CTX(ndr);
105 2 : NDR_PULL_SET_MEM_CTX(ndr, r->path, 0);
106 2 : NDR_CHECK(ndr_pull_array_size(ndr, &r->path));
107 2 : NDR_CHECK(ndr_pull_array_length(ndr, &r->path));
108 2 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->path, &size_path_1));
109 2 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->path, &length_path_1));
110 2 : if (length_path_1 > size_path_1) {
111 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_path_1, length_path_1);
112 : }
113 2 : NDR_CHECK(ndr_check_string_terminator(ndr, length_path_1, sizeof(uint16_t)));
114 2 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->path, length_path_1, sizeof(uint16_t), CH_UTF16));
115 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_path_0, 0);
116 : }
117 : }
118 2 : return NDR_ERR_SUCCESS;
119 : }
120 :
121 0 : _PUBLIC_ void ndr_print_dfs_Info1(struct ndr_print *ndr, const char *name, const struct dfs_Info1 *r)
122 : {
123 0 : ndr_print_struct(ndr, name, "dfs_Info1");
124 0 : if (r == NULL) { ndr_print_null(ndr); return; }
125 0 : ndr->depth++;
126 0 : ndr_print_ptr(ndr, "path", r->path);
127 0 : ndr->depth++;
128 0 : if (r->path) {
129 0 : ndr_print_string(ndr, "path", r->path);
130 : }
131 0 : ndr->depth--;
132 0 : ndr->depth--;
133 : }
134 :
135 0 : _PUBLIC_ enum ndr_err_code ndr_push_dfs_VolumeState(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
136 : {
137 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
138 0 : return NDR_ERR_SUCCESS;
139 : }
140 :
141 0 : _PUBLIC_ enum ndr_err_code ndr_pull_dfs_VolumeState(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
142 : {
143 0 : uint32_t v;
144 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
145 0 : *r = v;
146 0 : return NDR_ERR_SUCCESS;
147 : }
148 :
149 0 : _PUBLIC_ void ndr_print_dfs_VolumeState(struct ndr_print *ndr, const char *name, uint32_t r)
150 : {
151 0 : ndr_print_uint32(ndr, name, r);
152 0 : ndr->depth++;
153 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_VOLUME_STATE_OK", DFS_VOLUME_STATE_OK, r);
154 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_VOLUME_STATE_INCONSISTENT", DFS_VOLUME_STATE_INCONSISTENT, r);
155 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_VOLUME_STATE_OFFLINE", DFS_VOLUME_STATE_OFFLINE, r);
156 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_VOLUME_STATE_ONLINE", DFS_VOLUME_STATE_ONLINE, r);
157 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_VOLUME_STATE_STANDALONE", DFS_VOLUME_STATE_STANDALONE, r);
158 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_VOLUME_STATE_AD_BLOB", DFS_VOLUME_STATE_AD_BLOB, r);
159 0 : ndr->depth--;
160 0 : }
161 :
162 0 : static enum ndr_err_code ndr_push_dfs_Info2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info2 *r)
163 : {
164 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
165 0 : if (ndr_flags & NDR_SCALARS) {
166 0 : NDR_CHECK(ndr_push_align(ndr, 5));
167 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->path));
168 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
169 0 : NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
170 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_stores));
171 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
172 : }
173 0 : if (ndr_flags & NDR_BUFFERS) {
174 0 : if (r->path) {
175 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
176 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
177 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
178 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->path, ndr_charset_length(r->path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
179 : }
180 0 : if (r->comment) {
181 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
182 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
183 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
184 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->comment, ndr_charset_length(r->comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
185 : }
186 : }
187 0 : return NDR_ERR_SUCCESS;
188 : }
189 :
190 0 : static enum ndr_err_code ndr_pull_dfs_Info2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info2 *r)
191 : {
192 0 : uint32_t _ptr_path;
193 0 : uint32_t size_path_1 = 0;
194 0 : uint32_t length_path_1 = 0;
195 0 : TALLOC_CTX *_mem_save_path_0 = NULL;
196 0 : uint32_t _ptr_comment;
197 0 : uint32_t size_comment_1 = 0;
198 0 : uint32_t length_comment_1 = 0;
199 0 : TALLOC_CTX *_mem_save_comment_0 = NULL;
200 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
201 0 : if (ndr_flags & NDR_SCALARS) {
202 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
203 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_path));
204 0 : if (_ptr_path) {
205 0 : NDR_PULL_ALLOC(ndr, r->path);
206 : } else {
207 0 : r->path = NULL;
208 : }
209 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
210 0 : if (_ptr_comment) {
211 0 : NDR_PULL_ALLOC(ndr, r->comment);
212 : } else {
213 0 : r->comment = NULL;
214 : }
215 0 : NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
216 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_stores));
217 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
218 : }
219 0 : if (ndr_flags & NDR_BUFFERS) {
220 0 : if (r->path) {
221 0 : _mem_save_path_0 = NDR_PULL_GET_MEM_CTX(ndr);
222 0 : NDR_PULL_SET_MEM_CTX(ndr, r->path, 0);
223 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->path));
224 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->path));
225 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->path, &size_path_1));
226 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->path, &length_path_1));
227 0 : if (length_path_1 > size_path_1) {
228 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_path_1, length_path_1);
229 : }
230 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_path_1, sizeof(uint16_t)));
231 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->path, length_path_1, sizeof(uint16_t), CH_UTF16));
232 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_path_0, 0);
233 : }
234 0 : if (r->comment) {
235 0 : _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
236 0 : NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
237 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->comment));
238 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->comment));
239 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->comment, &size_comment_1));
240 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->comment, &length_comment_1));
241 0 : if (length_comment_1 > size_comment_1) {
242 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_1, length_comment_1);
243 : }
244 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_1, sizeof(uint16_t)));
245 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->comment, length_comment_1, sizeof(uint16_t), CH_UTF16));
246 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
247 : }
248 : }
249 0 : return NDR_ERR_SUCCESS;
250 : }
251 :
252 0 : _PUBLIC_ void ndr_print_dfs_Info2(struct ndr_print *ndr, const char *name, const struct dfs_Info2 *r)
253 : {
254 0 : ndr_print_struct(ndr, name, "dfs_Info2");
255 0 : if (r == NULL) { ndr_print_null(ndr); return; }
256 0 : ndr->depth++;
257 0 : ndr_print_ptr(ndr, "path", r->path);
258 0 : ndr->depth++;
259 0 : if (r->path) {
260 0 : ndr_print_string(ndr, "path", r->path);
261 : }
262 0 : ndr->depth--;
263 0 : ndr_print_ptr(ndr, "comment", r->comment);
264 0 : ndr->depth++;
265 0 : if (r->comment) {
266 0 : ndr_print_string(ndr, "comment", r->comment);
267 : }
268 0 : ndr->depth--;
269 0 : ndr_print_dfs_VolumeState(ndr, "state", r->state);
270 0 : ndr_print_uint32(ndr, "num_stores", r->num_stores);
271 0 : ndr->depth--;
272 : }
273 :
274 0 : _PUBLIC_ enum ndr_err_code ndr_push_dfs_StorageState(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
275 : {
276 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
277 0 : return NDR_ERR_SUCCESS;
278 : }
279 :
280 0 : _PUBLIC_ enum ndr_err_code ndr_pull_dfs_StorageState(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
281 : {
282 0 : uint32_t v;
283 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
284 0 : *r = v;
285 0 : return NDR_ERR_SUCCESS;
286 : }
287 :
288 0 : _PUBLIC_ void ndr_print_dfs_StorageState(struct ndr_print *ndr, const char *name, uint32_t r)
289 : {
290 0 : ndr_print_uint32(ndr, name, r);
291 0 : ndr->depth++;
292 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_STORAGE_STATE_OFFLINE", DFS_STORAGE_STATE_OFFLINE, r);
293 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_STORAGE_STATE_ONLINE", DFS_STORAGE_STATE_ONLINE, r);
294 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_STORAGE_STATE_ACTIVE", DFS_STORAGE_STATE_ACTIVE, r);
295 0 : ndr->depth--;
296 0 : }
297 :
298 0 : static enum ndr_err_code ndr_push_dfs_StorageInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_StorageInfo *r)
299 : {
300 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
301 0 : if (ndr_flags & NDR_SCALARS) {
302 0 : NDR_CHECK(ndr_push_align(ndr, 5));
303 0 : NDR_CHECK(ndr_push_dfs_StorageState(ndr, NDR_SCALARS, r->state));
304 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->server));
305 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->share));
306 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
307 : }
308 0 : if (ndr_flags & NDR_BUFFERS) {
309 0 : if (r->server) {
310 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->server, CH_UTF16)));
311 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
312 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->server, CH_UTF16)));
313 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->server, ndr_charset_length(r->server, CH_UTF16), sizeof(uint16_t), CH_UTF16));
314 : }
315 0 : if (r->share) {
316 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->share, CH_UTF16)));
317 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
318 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->share, CH_UTF16)));
319 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->share, ndr_charset_length(r->share, CH_UTF16), sizeof(uint16_t), CH_UTF16));
320 : }
321 : }
322 0 : return NDR_ERR_SUCCESS;
323 : }
324 :
325 0 : static enum ndr_err_code ndr_pull_dfs_StorageInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_StorageInfo *r)
326 : {
327 0 : uint32_t _ptr_server;
328 0 : uint32_t size_server_1 = 0;
329 0 : uint32_t length_server_1 = 0;
330 0 : TALLOC_CTX *_mem_save_server_0 = NULL;
331 0 : uint32_t _ptr_share;
332 0 : uint32_t size_share_1 = 0;
333 0 : uint32_t length_share_1 = 0;
334 0 : TALLOC_CTX *_mem_save_share_0 = NULL;
335 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
336 0 : if (ndr_flags & NDR_SCALARS) {
337 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
338 0 : NDR_CHECK(ndr_pull_dfs_StorageState(ndr, NDR_SCALARS, &r->state));
339 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_server));
340 0 : if (_ptr_server) {
341 0 : NDR_PULL_ALLOC(ndr, r->server);
342 : } else {
343 0 : r->server = NULL;
344 : }
345 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_share));
346 0 : if (_ptr_share) {
347 0 : NDR_PULL_ALLOC(ndr, r->share);
348 : } else {
349 0 : r->share = NULL;
350 : }
351 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
352 : }
353 0 : if (ndr_flags & NDR_BUFFERS) {
354 0 : if (r->server) {
355 0 : _mem_save_server_0 = NDR_PULL_GET_MEM_CTX(ndr);
356 0 : NDR_PULL_SET_MEM_CTX(ndr, r->server, 0);
357 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->server));
358 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->server));
359 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->server, &size_server_1));
360 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->server, &length_server_1));
361 0 : if (length_server_1 > size_server_1) {
362 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_server_1, length_server_1);
363 : }
364 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_server_1, sizeof(uint16_t)));
365 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->server, length_server_1, sizeof(uint16_t), CH_UTF16));
366 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_0, 0);
367 : }
368 0 : if (r->share) {
369 0 : _mem_save_share_0 = NDR_PULL_GET_MEM_CTX(ndr);
370 0 : NDR_PULL_SET_MEM_CTX(ndr, r->share, 0);
371 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->share));
372 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->share));
373 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->share, &size_share_1));
374 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->share, &length_share_1));
375 0 : if (length_share_1 > size_share_1) {
376 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_share_1, length_share_1);
377 : }
378 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_share_1, sizeof(uint16_t)));
379 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->share, length_share_1, sizeof(uint16_t), CH_UTF16));
380 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_share_0, 0);
381 : }
382 : }
383 0 : return NDR_ERR_SUCCESS;
384 : }
385 :
386 0 : _PUBLIC_ void ndr_print_dfs_StorageInfo(struct ndr_print *ndr, const char *name, const struct dfs_StorageInfo *r)
387 : {
388 0 : ndr_print_struct(ndr, name, "dfs_StorageInfo");
389 0 : if (r == NULL) { ndr_print_null(ndr); return; }
390 0 : ndr->depth++;
391 0 : ndr_print_dfs_StorageState(ndr, "state", r->state);
392 0 : ndr_print_ptr(ndr, "server", r->server);
393 0 : ndr->depth++;
394 0 : if (r->server) {
395 0 : ndr_print_string(ndr, "server", r->server);
396 : }
397 0 : ndr->depth--;
398 0 : ndr_print_ptr(ndr, "share", r->share);
399 0 : ndr->depth++;
400 0 : if (r->share) {
401 0 : ndr_print_string(ndr, "share", r->share);
402 : }
403 0 : ndr->depth--;
404 0 : ndr->depth--;
405 : }
406 :
407 0 : static enum ndr_err_code ndr_push_dfs_Info3(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info3 *r)
408 : {
409 0 : uint32_t cntr_stores_1;
410 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
411 0 : if (ndr_flags & NDR_SCALARS) {
412 0 : NDR_CHECK(ndr_push_align(ndr, 5));
413 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->path));
414 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
415 0 : NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
416 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_stores));
417 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->stores));
418 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
419 : }
420 0 : if (ndr_flags & NDR_BUFFERS) {
421 0 : if (r->path) {
422 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
423 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
424 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
425 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->path, ndr_charset_length(r->path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
426 : }
427 0 : if (r->comment) {
428 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
429 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
430 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
431 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->comment, ndr_charset_length(r->comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
432 : }
433 0 : if (r->stores) {
434 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_stores));
435 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (r->num_stores); cntr_stores_1++) {
436 0 : NDR_CHECK(ndr_push_dfs_StorageInfo(ndr, NDR_SCALARS, &r->stores[cntr_stores_1]));
437 : }
438 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (r->num_stores); cntr_stores_1++) {
439 0 : NDR_CHECK(ndr_push_dfs_StorageInfo(ndr, NDR_BUFFERS, &r->stores[cntr_stores_1]));
440 : }
441 : }
442 : }
443 0 : return NDR_ERR_SUCCESS;
444 : }
445 :
446 0 : static enum ndr_err_code ndr_pull_dfs_Info3(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info3 *r)
447 : {
448 0 : uint32_t _ptr_path;
449 0 : uint32_t size_path_1 = 0;
450 0 : uint32_t length_path_1 = 0;
451 0 : TALLOC_CTX *_mem_save_path_0 = NULL;
452 0 : uint32_t _ptr_comment;
453 0 : uint32_t size_comment_1 = 0;
454 0 : uint32_t length_comment_1 = 0;
455 0 : TALLOC_CTX *_mem_save_comment_0 = NULL;
456 0 : uint32_t _ptr_stores;
457 0 : uint32_t size_stores_1 = 0;
458 0 : uint32_t cntr_stores_1;
459 0 : TALLOC_CTX *_mem_save_stores_0 = NULL;
460 0 : TALLOC_CTX *_mem_save_stores_1 = NULL;
461 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
462 0 : if (ndr_flags & NDR_SCALARS) {
463 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
464 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_path));
465 0 : if (_ptr_path) {
466 0 : NDR_PULL_ALLOC(ndr, r->path);
467 : } else {
468 0 : r->path = NULL;
469 : }
470 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
471 0 : if (_ptr_comment) {
472 0 : NDR_PULL_ALLOC(ndr, r->comment);
473 : } else {
474 0 : r->comment = NULL;
475 : }
476 0 : NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
477 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_stores));
478 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_stores));
479 0 : if (_ptr_stores) {
480 0 : NDR_PULL_ALLOC(ndr, r->stores);
481 : } else {
482 0 : r->stores = NULL;
483 : }
484 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
485 : }
486 0 : if (ndr_flags & NDR_BUFFERS) {
487 0 : if (r->path) {
488 0 : _mem_save_path_0 = NDR_PULL_GET_MEM_CTX(ndr);
489 0 : NDR_PULL_SET_MEM_CTX(ndr, r->path, 0);
490 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->path));
491 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->path));
492 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->path, &size_path_1));
493 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->path, &length_path_1));
494 0 : if (length_path_1 > size_path_1) {
495 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_path_1, length_path_1);
496 : }
497 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_path_1, sizeof(uint16_t)));
498 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->path, length_path_1, sizeof(uint16_t), CH_UTF16));
499 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_path_0, 0);
500 : }
501 0 : if (r->comment) {
502 0 : _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
503 0 : NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
504 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->comment));
505 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->comment));
506 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->comment, &size_comment_1));
507 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->comment, &length_comment_1));
508 0 : if (length_comment_1 > size_comment_1) {
509 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_1, length_comment_1);
510 : }
511 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_1, sizeof(uint16_t)));
512 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->comment, length_comment_1, sizeof(uint16_t), CH_UTF16));
513 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
514 : }
515 0 : if (r->stores) {
516 0 : _mem_save_stores_0 = NDR_PULL_GET_MEM_CTX(ndr);
517 0 : NDR_PULL_SET_MEM_CTX(ndr, r->stores, 0);
518 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->stores));
519 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->stores, &size_stores_1));
520 0 : NDR_PULL_ALLOC_N(ndr, r->stores, size_stores_1);
521 0 : _mem_save_stores_1 = NDR_PULL_GET_MEM_CTX(ndr);
522 0 : NDR_PULL_SET_MEM_CTX(ndr, r->stores, 0);
523 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (size_stores_1); cntr_stores_1++) {
524 0 : NDR_CHECK(ndr_pull_dfs_StorageInfo(ndr, NDR_SCALARS, &r->stores[cntr_stores_1]));
525 : }
526 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (size_stores_1); cntr_stores_1++) {
527 0 : NDR_CHECK(ndr_pull_dfs_StorageInfo(ndr, NDR_BUFFERS, &r->stores[cntr_stores_1]));
528 : }
529 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_stores_1, 0);
530 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_stores_0, 0);
531 : }
532 0 : if (r->stores) {
533 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->stores, r->num_stores));
534 : }
535 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (size_stores_1); cntr_stores_1++) {
536 0 : }
537 : }
538 0 : return NDR_ERR_SUCCESS;
539 : }
540 :
541 0 : _PUBLIC_ void ndr_print_dfs_Info3(struct ndr_print *ndr, const char *name, const struct dfs_Info3 *r)
542 : {
543 0 : uint32_t cntr_stores_1;
544 0 : ndr_print_struct(ndr, name, "dfs_Info3");
545 0 : if (r == NULL) { ndr_print_null(ndr); return; }
546 0 : ndr->depth++;
547 0 : ndr_print_ptr(ndr, "path", r->path);
548 0 : ndr->depth++;
549 0 : if (r->path) {
550 0 : ndr_print_string(ndr, "path", r->path);
551 : }
552 0 : ndr->depth--;
553 0 : ndr_print_ptr(ndr, "comment", r->comment);
554 0 : ndr->depth++;
555 0 : if (r->comment) {
556 0 : ndr_print_string(ndr, "comment", r->comment);
557 : }
558 0 : ndr->depth--;
559 0 : ndr_print_dfs_VolumeState(ndr, "state", r->state);
560 0 : ndr_print_uint32(ndr, "num_stores", r->num_stores);
561 0 : ndr_print_ptr(ndr, "stores", r->stores);
562 0 : ndr->depth++;
563 0 : if (r->stores) {
564 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "stores", (uint32_t)(r->num_stores));
565 0 : ndr->depth++;
566 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (r->num_stores); cntr_stores_1++) {
567 0 : ndr_print_dfs_StorageInfo(ndr, "stores", &r->stores[cntr_stores_1]);
568 : }
569 0 : ndr->depth--;
570 : }
571 0 : ndr->depth--;
572 0 : ndr->depth--;
573 : }
574 :
575 0 : static enum ndr_err_code ndr_push_dfs_Info4(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info4 *r)
576 : {
577 0 : uint32_t cntr_stores_1;
578 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
579 0 : if (ndr_flags & NDR_SCALARS) {
580 0 : NDR_CHECK(ndr_push_align(ndr, 5));
581 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->path));
582 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
583 0 : NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
584 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->timeout));
585 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->guid));
586 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_stores));
587 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->stores));
588 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
589 : }
590 0 : if (ndr_flags & NDR_BUFFERS) {
591 0 : if (r->path) {
592 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
593 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
594 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
595 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->path, ndr_charset_length(r->path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
596 : }
597 0 : if (r->comment) {
598 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
599 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
600 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
601 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->comment, ndr_charset_length(r->comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
602 : }
603 0 : if (r->stores) {
604 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_stores));
605 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (r->num_stores); cntr_stores_1++) {
606 0 : NDR_CHECK(ndr_push_dfs_StorageInfo(ndr, NDR_SCALARS, &r->stores[cntr_stores_1]));
607 : }
608 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (r->num_stores); cntr_stores_1++) {
609 0 : NDR_CHECK(ndr_push_dfs_StorageInfo(ndr, NDR_BUFFERS, &r->stores[cntr_stores_1]));
610 : }
611 : }
612 : }
613 0 : return NDR_ERR_SUCCESS;
614 : }
615 :
616 0 : static enum ndr_err_code ndr_pull_dfs_Info4(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info4 *r)
617 : {
618 0 : uint32_t _ptr_path;
619 0 : uint32_t size_path_1 = 0;
620 0 : uint32_t length_path_1 = 0;
621 0 : TALLOC_CTX *_mem_save_path_0 = NULL;
622 0 : uint32_t _ptr_comment;
623 0 : uint32_t size_comment_1 = 0;
624 0 : uint32_t length_comment_1 = 0;
625 0 : TALLOC_CTX *_mem_save_comment_0 = NULL;
626 0 : uint32_t _ptr_stores;
627 0 : uint32_t size_stores_1 = 0;
628 0 : uint32_t cntr_stores_1;
629 0 : TALLOC_CTX *_mem_save_stores_0 = NULL;
630 0 : TALLOC_CTX *_mem_save_stores_1 = NULL;
631 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
632 0 : if (ndr_flags & NDR_SCALARS) {
633 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
634 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_path));
635 0 : if (_ptr_path) {
636 0 : NDR_PULL_ALLOC(ndr, r->path);
637 : } else {
638 0 : r->path = NULL;
639 : }
640 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
641 0 : if (_ptr_comment) {
642 0 : NDR_PULL_ALLOC(ndr, r->comment);
643 : } else {
644 0 : r->comment = NULL;
645 : }
646 0 : NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
647 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->timeout));
648 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->guid));
649 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_stores));
650 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_stores));
651 0 : if (_ptr_stores) {
652 0 : NDR_PULL_ALLOC(ndr, r->stores);
653 : } else {
654 0 : r->stores = NULL;
655 : }
656 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
657 : }
658 0 : if (ndr_flags & NDR_BUFFERS) {
659 0 : if (r->path) {
660 0 : _mem_save_path_0 = NDR_PULL_GET_MEM_CTX(ndr);
661 0 : NDR_PULL_SET_MEM_CTX(ndr, r->path, 0);
662 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->path));
663 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->path));
664 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->path, &size_path_1));
665 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->path, &length_path_1));
666 0 : if (length_path_1 > size_path_1) {
667 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_path_1, length_path_1);
668 : }
669 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_path_1, sizeof(uint16_t)));
670 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->path, length_path_1, sizeof(uint16_t), CH_UTF16));
671 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_path_0, 0);
672 : }
673 0 : if (r->comment) {
674 0 : _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
675 0 : NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
676 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->comment));
677 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->comment));
678 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->comment, &size_comment_1));
679 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->comment, &length_comment_1));
680 0 : if (length_comment_1 > size_comment_1) {
681 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_1, length_comment_1);
682 : }
683 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_1, sizeof(uint16_t)));
684 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->comment, length_comment_1, sizeof(uint16_t), CH_UTF16));
685 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
686 : }
687 0 : if (r->stores) {
688 0 : _mem_save_stores_0 = NDR_PULL_GET_MEM_CTX(ndr);
689 0 : NDR_PULL_SET_MEM_CTX(ndr, r->stores, 0);
690 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->stores));
691 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->stores, &size_stores_1));
692 0 : NDR_PULL_ALLOC_N(ndr, r->stores, size_stores_1);
693 0 : _mem_save_stores_1 = NDR_PULL_GET_MEM_CTX(ndr);
694 0 : NDR_PULL_SET_MEM_CTX(ndr, r->stores, 0);
695 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (size_stores_1); cntr_stores_1++) {
696 0 : NDR_CHECK(ndr_pull_dfs_StorageInfo(ndr, NDR_SCALARS, &r->stores[cntr_stores_1]));
697 : }
698 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (size_stores_1); cntr_stores_1++) {
699 0 : NDR_CHECK(ndr_pull_dfs_StorageInfo(ndr, NDR_BUFFERS, &r->stores[cntr_stores_1]));
700 : }
701 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_stores_1, 0);
702 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_stores_0, 0);
703 : }
704 0 : if (r->stores) {
705 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->stores, r->num_stores));
706 : }
707 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (size_stores_1); cntr_stores_1++) {
708 0 : }
709 : }
710 0 : return NDR_ERR_SUCCESS;
711 : }
712 :
713 0 : _PUBLIC_ void ndr_print_dfs_Info4(struct ndr_print *ndr, const char *name, const struct dfs_Info4 *r)
714 : {
715 0 : uint32_t cntr_stores_1;
716 0 : ndr_print_struct(ndr, name, "dfs_Info4");
717 0 : if (r == NULL) { ndr_print_null(ndr); return; }
718 0 : ndr->depth++;
719 0 : ndr_print_ptr(ndr, "path", r->path);
720 0 : ndr->depth++;
721 0 : if (r->path) {
722 0 : ndr_print_string(ndr, "path", r->path);
723 : }
724 0 : ndr->depth--;
725 0 : ndr_print_ptr(ndr, "comment", r->comment);
726 0 : ndr->depth++;
727 0 : if (r->comment) {
728 0 : ndr_print_string(ndr, "comment", r->comment);
729 : }
730 0 : ndr->depth--;
731 0 : ndr_print_dfs_VolumeState(ndr, "state", r->state);
732 0 : ndr_print_uint32(ndr, "timeout", r->timeout);
733 0 : ndr_print_GUID(ndr, "guid", &r->guid);
734 0 : ndr_print_uint32(ndr, "num_stores", r->num_stores);
735 0 : ndr_print_ptr(ndr, "stores", r->stores);
736 0 : ndr->depth++;
737 0 : if (r->stores) {
738 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "stores", (uint32_t)(r->num_stores));
739 0 : ndr->depth++;
740 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (r->num_stores); cntr_stores_1++) {
741 0 : ndr_print_dfs_StorageInfo(ndr, "stores", &r->stores[cntr_stores_1]);
742 : }
743 0 : ndr->depth--;
744 : }
745 0 : ndr->depth--;
746 0 : ndr->depth--;
747 : }
748 :
749 0 : _PUBLIC_ enum ndr_err_code ndr_push_dfs_PropertyFlags(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
750 : {
751 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
752 0 : return NDR_ERR_SUCCESS;
753 : }
754 :
755 0 : _PUBLIC_ enum ndr_err_code ndr_pull_dfs_PropertyFlags(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
756 : {
757 0 : uint32_t v;
758 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
759 0 : *r = v;
760 0 : return NDR_ERR_SUCCESS;
761 : }
762 :
763 0 : _PUBLIC_ void ndr_print_dfs_PropertyFlags(struct ndr_print *ndr, const char *name, uint32_t r)
764 : {
765 0 : ndr_print_uint32(ndr, name, r);
766 0 : ndr->depth++;
767 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_PROPERTY_FLAG_INSITE_REFERRALS", DFS_PROPERTY_FLAG_INSITE_REFERRALS, r);
768 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_PROPERTY_FLAG_ROOT_SCALABILITY", DFS_PROPERTY_FLAG_ROOT_SCALABILITY, r);
769 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_PROPERTY_FLAG_SITE_COSTING", DFS_PROPERTY_FLAG_SITE_COSTING, r);
770 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_PROPERTY_FLAG_TARGET_FAILBACK", DFS_PROPERTY_FLAG_TARGET_FAILBACK, r);
771 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DFS_PROPERTY_FLAG_CLUSTER_ENABLED", DFS_PROPERTY_FLAG_CLUSTER_ENABLED, r);
772 0 : ndr->depth--;
773 0 : }
774 :
775 0 : static enum ndr_err_code ndr_push_dfs_Info5(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info5 *r)
776 : {
777 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
778 0 : if (ndr_flags & NDR_SCALARS) {
779 0 : NDR_CHECK(ndr_push_align(ndr, 5));
780 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->path));
781 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
782 0 : NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
783 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->timeout));
784 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->guid));
785 0 : NDR_CHECK(ndr_push_dfs_PropertyFlags(ndr, NDR_SCALARS, r->flags));
786 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->pktsize));
787 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_stores));
788 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
789 : }
790 0 : if (ndr_flags & NDR_BUFFERS) {
791 0 : if (r->path) {
792 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
793 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
794 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->path, CH_UTF16)));
795 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->path, ndr_charset_length(r->path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
796 : }
797 0 : if (r->comment) {
798 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
799 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
800 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
801 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->comment, ndr_charset_length(r->comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
802 : }
803 : }
804 0 : return NDR_ERR_SUCCESS;
805 : }
806 :
807 0 : static enum ndr_err_code ndr_pull_dfs_Info5(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info5 *r)
808 : {
809 0 : uint32_t _ptr_path;
810 0 : uint32_t size_path_1 = 0;
811 0 : uint32_t length_path_1 = 0;
812 0 : TALLOC_CTX *_mem_save_path_0 = NULL;
813 0 : uint32_t _ptr_comment;
814 0 : uint32_t size_comment_1 = 0;
815 0 : uint32_t length_comment_1 = 0;
816 0 : TALLOC_CTX *_mem_save_comment_0 = NULL;
817 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
818 0 : if (ndr_flags & NDR_SCALARS) {
819 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
820 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_path));
821 0 : if (_ptr_path) {
822 0 : NDR_PULL_ALLOC(ndr, r->path);
823 : } else {
824 0 : r->path = NULL;
825 : }
826 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
827 0 : if (_ptr_comment) {
828 0 : NDR_PULL_ALLOC(ndr, r->comment);
829 : } else {
830 0 : r->comment = NULL;
831 : }
832 0 : NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
833 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->timeout));
834 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->guid));
835 0 : NDR_CHECK(ndr_pull_dfs_PropertyFlags(ndr, NDR_SCALARS, &r->flags));
836 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pktsize));
837 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_stores));
838 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
839 : }
840 0 : if (ndr_flags & NDR_BUFFERS) {
841 0 : if (r->path) {
842 0 : _mem_save_path_0 = NDR_PULL_GET_MEM_CTX(ndr);
843 0 : NDR_PULL_SET_MEM_CTX(ndr, r->path, 0);
844 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->path));
845 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->path));
846 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->path, &size_path_1));
847 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->path, &length_path_1));
848 0 : if (length_path_1 > size_path_1) {
849 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_path_1, length_path_1);
850 : }
851 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_path_1, sizeof(uint16_t)));
852 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->path, length_path_1, sizeof(uint16_t), CH_UTF16));
853 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_path_0, 0);
854 : }
855 0 : if (r->comment) {
856 0 : _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
857 0 : NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
858 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->comment));
859 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->comment));
860 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->comment, &size_comment_1));
861 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->comment, &length_comment_1));
862 0 : if (length_comment_1 > size_comment_1) {
863 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_1, length_comment_1);
864 : }
865 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_1, sizeof(uint16_t)));
866 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->comment, length_comment_1, sizeof(uint16_t), CH_UTF16));
867 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
868 : }
869 : }
870 0 : return NDR_ERR_SUCCESS;
871 : }
872 :
873 0 : _PUBLIC_ void ndr_print_dfs_Info5(struct ndr_print *ndr, const char *name, const struct dfs_Info5 *r)
874 : {
875 0 : ndr_print_struct(ndr, name, "dfs_Info5");
876 0 : if (r == NULL) { ndr_print_null(ndr); return; }
877 0 : ndr->depth++;
878 0 : ndr_print_ptr(ndr, "path", r->path);
879 0 : ndr->depth++;
880 0 : if (r->path) {
881 0 : ndr_print_string(ndr, "path", r->path);
882 : }
883 0 : ndr->depth--;
884 0 : ndr_print_ptr(ndr, "comment", r->comment);
885 0 : ndr->depth++;
886 0 : if (r->comment) {
887 0 : ndr_print_string(ndr, "comment", r->comment);
888 : }
889 0 : ndr->depth--;
890 0 : ndr_print_dfs_VolumeState(ndr, "state", r->state);
891 0 : ndr_print_uint32(ndr, "timeout", r->timeout);
892 0 : ndr_print_GUID(ndr, "guid", &r->guid);
893 0 : ndr_print_dfs_PropertyFlags(ndr, "flags", r->flags);
894 0 : ndr_print_uint32(ndr, "pktsize", r->pktsize);
895 0 : ndr_print_uint32(ndr, "num_stores", r->num_stores);
896 0 : ndr->depth--;
897 : }
898 :
899 0 : static enum ndr_err_code ndr_push_dfs_Target_PriorityClass(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum dfs_Target_PriorityClass r)
900 : {
901 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
902 0 : return NDR_ERR_SUCCESS;
903 : }
904 :
905 0 : static enum ndr_err_code ndr_pull_dfs_Target_PriorityClass(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum dfs_Target_PriorityClass *r)
906 : {
907 0 : uint32_t v;
908 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
909 0 : *r = v;
910 0 : return NDR_ERR_SUCCESS;
911 : }
912 :
913 0 : _PUBLIC_ void ndr_print_dfs_Target_PriorityClass(struct ndr_print *ndr, const char *name, enum dfs_Target_PriorityClass r)
914 : {
915 0 : const char *val = NULL;
916 :
917 0 : switch (r) {
918 0 : case DFS_INVALID_PRIORITY_CLASS: val = "DFS_INVALID_PRIORITY_CLASS"; break;
919 0 : case DFS_SITE_COST_NORMAL_PRIORITY_CLASS: val = "DFS_SITE_COST_NORMAL_PRIORITY_CLASS"; break;
920 0 : case DFS_GLOBAL_HIGH_PRIORITY_CLASS: val = "DFS_GLOBAL_HIGH_PRIORITY_CLASS"; break;
921 0 : case DFS_SITE_COST_HIGH_PRIORITY_CLASS: val = "DFS_SITE_COST_HIGH_PRIORITY_CLASS"; break;
922 0 : case DFS_SITE_COST_LOW_PRIORITY_CLASS: val = "DFS_SITE_COST_LOW_PRIORITY_CLASS"; break;
923 0 : case DFS_GLOBAL_LOW_PRIORITY_CLASS: val = "DFS_GLOBAL_LOW_PRIORITY_CLASS"; break;
924 : }
925 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
926 0 : }
927 :
928 0 : static enum ndr_err_code ndr_push_dfs_Target_Priority(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Target_Priority *r)
929 : {
930 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
931 0 : if (ndr_flags & NDR_SCALARS) {
932 0 : NDR_CHECK(ndr_push_align(ndr, 4));
933 0 : NDR_CHECK(ndr_push_dfs_Target_PriorityClass(ndr, NDR_SCALARS, r->target_priority_class));
934 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->target_priority_rank));
935 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->reserved));
936 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
937 : }
938 0 : if (ndr_flags & NDR_BUFFERS) {
939 0 : }
940 0 : return NDR_ERR_SUCCESS;
941 : }
942 :
943 0 : static enum ndr_err_code ndr_pull_dfs_Target_Priority(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Target_Priority *r)
944 : {
945 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
946 0 : if (ndr_flags & NDR_SCALARS) {
947 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
948 0 : NDR_CHECK(ndr_pull_dfs_Target_PriorityClass(ndr, NDR_SCALARS, &r->target_priority_class));
949 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->target_priority_rank));
950 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->reserved));
951 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
952 : }
953 0 : if (ndr_flags & NDR_BUFFERS) {
954 0 : }
955 0 : return NDR_ERR_SUCCESS;
956 : }
957 :
958 0 : _PUBLIC_ void ndr_print_dfs_Target_Priority(struct ndr_print *ndr, const char *name, const struct dfs_Target_Priority *r)
959 : {
960 0 : ndr_print_struct(ndr, name, "dfs_Target_Priority");
961 0 : if (r == NULL) { ndr_print_null(ndr); return; }
962 0 : ndr->depth++;
963 0 : ndr_print_dfs_Target_PriorityClass(ndr, "target_priority_class", r->target_priority_class);
964 0 : ndr_print_uint16(ndr, "target_priority_rank", r->target_priority_rank);
965 0 : ndr_print_uint16(ndr, "reserved", r->reserved);
966 0 : ndr->depth--;
967 : }
968 :
969 0 : static enum ndr_err_code ndr_push_dfs_StorageInfo2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_StorageInfo2 *r)
970 : {
971 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
972 0 : if (ndr_flags & NDR_SCALARS) {
973 0 : NDR_CHECK(ndr_push_align(ndr, 5));
974 0 : NDR_CHECK(ndr_push_dfs_StorageInfo(ndr, NDR_SCALARS, &r->info));
975 0 : NDR_CHECK(ndr_push_dfs_Target_Priority(ndr, NDR_SCALARS, &r->target_priority));
976 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
977 : }
978 0 : if (ndr_flags & NDR_BUFFERS) {
979 0 : NDR_CHECK(ndr_push_dfs_StorageInfo(ndr, NDR_BUFFERS, &r->info));
980 : }
981 0 : return NDR_ERR_SUCCESS;
982 : }
983 :
984 0 : static enum ndr_err_code ndr_pull_dfs_StorageInfo2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_StorageInfo2 *r)
985 : {
986 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
987 0 : if (ndr_flags & NDR_SCALARS) {
988 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
989 0 : NDR_CHECK(ndr_pull_dfs_StorageInfo(ndr, NDR_SCALARS, &r->info));
990 0 : NDR_CHECK(ndr_pull_dfs_Target_Priority(ndr, NDR_SCALARS, &r->target_priority));
991 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
992 : }
993 0 : if (ndr_flags & NDR_BUFFERS) {
994 0 : NDR_CHECK(ndr_pull_dfs_StorageInfo(ndr, NDR_BUFFERS, &r->info));
995 : }
996 0 : return NDR_ERR_SUCCESS;
997 : }
998 :
999 0 : _PUBLIC_ void ndr_print_dfs_StorageInfo2(struct ndr_print *ndr, const char *name, const struct dfs_StorageInfo2 *r)
1000 : {
1001 0 : ndr_print_struct(ndr, name, "dfs_StorageInfo2");
1002 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1003 0 : ndr->depth++;
1004 0 : ndr_print_dfs_StorageInfo(ndr, "info", &r->info);
1005 0 : ndr_print_dfs_Target_Priority(ndr, "target_priority", &r->target_priority);
1006 0 : ndr->depth--;
1007 : }
1008 :
1009 0 : static enum ndr_err_code ndr_push_dfs_Info6(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info6 *r)
1010 : {
1011 0 : uint32_t cntr_stores_1;
1012 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1013 0 : if (ndr_flags & NDR_SCALARS) {
1014 0 : NDR_CHECK(ndr_push_align(ndr, 5));
1015 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->entry_path));
1016 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
1017 0 : NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
1018 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->timeout));
1019 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->guid));
1020 0 : NDR_CHECK(ndr_push_dfs_PropertyFlags(ndr, NDR_SCALARS, r->flags));
1021 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->pktsize));
1022 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->num_stores));
1023 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->stores));
1024 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1025 : }
1026 0 : if (ndr_flags & NDR_BUFFERS) {
1027 0 : if (r->entry_path) {
1028 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->entry_path, CH_UTF16)));
1029 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1030 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->entry_path, CH_UTF16)));
1031 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->entry_path, ndr_charset_length(r->entry_path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1032 : }
1033 0 : if (r->comment) {
1034 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
1035 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1036 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
1037 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->comment, ndr_charset_length(r->comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1038 : }
1039 0 : if (r->stores) {
1040 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_stores));
1041 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (r->num_stores); cntr_stores_1++) {
1042 0 : NDR_CHECK(ndr_push_dfs_StorageInfo2(ndr, NDR_SCALARS, &r->stores[cntr_stores_1]));
1043 : }
1044 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (r->num_stores); cntr_stores_1++) {
1045 0 : NDR_CHECK(ndr_push_dfs_StorageInfo2(ndr, NDR_BUFFERS, &r->stores[cntr_stores_1]));
1046 : }
1047 : }
1048 : }
1049 0 : return NDR_ERR_SUCCESS;
1050 : }
1051 :
1052 0 : static enum ndr_err_code ndr_pull_dfs_Info6(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info6 *r)
1053 : {
1054 0 : uint32_t _ptr_entry_path;
1055 0 : uint32_t size_entry_path_1 = 0;
1056 0 : uint32_t length_entry_path_1 = 0;
1057 0 : TALLOC_CTX *_mem_save_entry_path_0 = NULL;
1058 0 : uint32_t _ptr_comment;
1059 0 : uint32_t size_comment_1 = 0;
1060 0 : uint32_t length_comment_1 = 0;
1061 0 : TALLOC_CTX *_mem_save_comment_0 = NULL;
1062 0 : uint32_t _ptr_stores;
1063 0 : uint32_t size_stores_1 = 0;
1064 0 : uint32_t cntr_stores_1;
1065 0 : TALLOC_CTX *_mem_save_stores_0 = NULL;
1066 0 : TALLOC_CTX *_mem_save_stores_1 = NULL;
1067 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1068 0 : if (ndr_flags & NDR_SCALARS) {
1069 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
1070 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_entry_path));
1071 0 : if (_ptr_entry_path) {
1072 0 : NDR_PULL_ALLOC(ndr, r->entry_path);
1073 : } else {
1074 0 : r->entry_path = NULL;
1075 : }
1076 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
1077 0 : if (_ptr_comment) {
1078 0 : NDR_PULL_ALLOC(ndr, r->comment);
1079 : } else {
1080 0 : r->comment = NULL;
1081 : }
1082 0 : NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
1083 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->timeout));
1084 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->guid));
1085 0 : NDR_CHECK(ndr_pull_dfs_PropertyFlags(ndr, NDR_SCALARS, &r->flags));
1086 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pktsize));
1087 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->num_stores));
1088 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_stores));
1089 0 : if (_ptr_stores) {
1090 0 : NDR_PULL_ALLOC(ndr, r->stores);
1091 : } else {
1092 0 : r->stores = NULL;
1093 : }
1094 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1095 : }
1096 0 : if (ndr_flags & NDR_BUFFERS) {
1097 0 : if (r->entry_path) {
1098 0 : _mem_save_entry_path_0 = NDR_PULL_GET_MEM_CTX(ndr);
1099 0 : NDR_PULL_SET_MEM_CTX(ndr, r->entry_path, 0);
1100 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->entry_path));
1101 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->entry_path));
1102 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->entry_path, &size_entry_path_1));
1103 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->entry_path, &length_entry_path_1));
1104 0 : if (length_entry_path_1 > size_entry_path_1) {
1105 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_entry_path_1, length_entry_path_1);
1106 : }
1107 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_entry_path_1, sizeof(uint16_t)));
1108 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->entry_path, length_entry_path_1, sizeof(uint16_t), CH_UTF16));
1109 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entry_path_0, 0);
1110 : }
1111 0 : if (r->comment) {
1112 0 : _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
1113 0 : NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
1114 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->comment));
1115 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->comment));
1116 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->comment, &size_comment_1));
1117 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->comment, &length_comment_1));
1118 0 : if (length_comment_1 > size_comment_1) {
1119 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_1, length_comment_1);
1120 : }
1121 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_1, sizeof(uint16_t)));
1122 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->comment, length_comment_1, sizeof(uint16_t), CH_UTF16));
1123 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
1124 : }
1125 0 : if (r->stores) {
1126 0 : _mem_save_stores_0 = NDR_PULL_GET_MEM_CTX(ndr);
1127 0 : NDR_PULL_SET_MEM_CTX(ndr, r->stores, 0);
1128 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->stores));
1129 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->stores, &size_stores_1));
1130 0 : NDR_PULL_ALLOC_N(ndr, r->stores, size_stores_1);
1131 0 : _mem_save_stores_1 = NDR_PULL_GET_MEM_CTX(ndr);
1132 0 : NDR_PULL_SET_MEM_CTX(ndr, r->stores, 0);
1133 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (size_stores_1); cntr_stores_1++) {
1134 0 : NDR_CHECK(ndr_pull_dfs_StorageInfo2(ndr, NDR_SCALARS, &r->stores[cntr_stores_1]));
1135 : }
1136 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (size_stores_1); cntr_stores_1++) {
1137 0 : NDR_CHECK(ndr_pull_dfs_StorageInfo2(ndr, NDR_BUFFERS, &r->stores[cntr_stores_1]));
1138 : }
1139 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_stores_1, 0);
1140 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_stores_0, 0);
1141 : }
1142 0 : if (r->stores) {
1143 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->stores, r->num_stores));
1144 : }
1145 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (size_stores_1); cntr_stores_1++) {
1146 0 : }
1147 : }
1148 0 : return NDR_ERR_SUCCESS;
1149 : }
1150 :
1151 0 : _PUBLIC_ void ndr_print_dfs_Info6(struct ndr_print *ndr, const char *name, const struct dfs_Info6 *r)
1152 : {
1153 0 : uint32_t cntr_stores_1;
1154 0 : ndr_print_struct(ndr, name, "dfs_Info6");
1155 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1156 0 : ndr->depth++;
1157 0 : ndr_print_ptr(ndr, "entry_path", r->entry_path);
1158 0 : ndr->depth++;
1159 0 : if (r->entry_path) {
1160 0 : ndr_print_string(ndr, "entry_path", r->entry_path);
1161 : }
1162 0 : ndr->depth--;
1163 0 : ndr_print_ptr(ndr, "comment", r->comment);
1164 0 : ndr->depth++;
1165 0 : if (r->comment) {
1166 0 : ndr_print_string(ndr, "comment", r->comment);
1167 : }
1168 0 : ndr->depth--;
1169 0 : ndr_print_dfs_VolumeState(ndr, "state", r->state);
1170 0 : ndr_print_uint32(ndr, "timeout", r->timeout);
1171 0 : ndr_print_GUID(ndr, "guid", &r->guid);
1172 0 : ndr_print_dfs_PropertyFlags(ndr, "flags", r->flags);
1173 0 : ndr_print_uint32(ndr, "pktsize", r->pktsize);
1174 0 : ndr_print_uint16(ndr, "num_stores", r->num_stores);
1175 0 : ndr_print_ptr(ndr, "stores", r->stores);
1176 0 : ndr->depth++;
1177 0 : if (r->stores) {
1178 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "stores", (uint32_t)(r->num_stores));
1179 0 : ndr->depth++;
1180 0 : for (cntr_stores_1 = 0; cntr_stores_1 < (r->num_stores); cntr_stores_1++) {
1181 0 : ndr_print_dfs_StorageInfo2(ndr, "stores", &r->stores[cntr_stores_1]);
1182 : }
1183 0 : ndr->depth--;
1184 : }
1185 0 : ndr->depth--;
1186 0 : ndr->depth--;
1187 : }
1188 :
1189 0 : static enum ndr_err_code ndr_push_dfs_Info7(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info7 *r)
1190 : {
1191 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1192 0 : if (ndr_flags & NDR_SCALARS) {
1193 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1194 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->generation_guid));
1195 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1196 : }
1197 0 : if (ndr_flags & NDR_BUFFERS) {
1198 0 : }
1199 0 : return NDR_ERR_SUCCESS;
1200 : }
1201 :
1202 0 : static enum ndr_err_code ndr_pull_dfs_Info7(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info7 *r)
1203 : {
1204 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1205 0 : if (ndr_flags & NDR_SCALARS) {
1206 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1207 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->generation_guid));
1208 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1209 : }
1210 0 : if (ndr_flags & NDR_BUFFERS) {
1211 0 : }
1212 0 : return NDR_ERR_SUCCESS;
1213 : }
1214 :
1215 0 : _PUBLIC_ void ndr_print_dfs_Info7(struct ndr_print *ndr, const char *name, const struct dfs_Info7 *r)
1216 : {
1217 0 : ndr_print_struct(ndr, name, "dfs_Info7");
1218 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1219 0 : ndr->depth++;
1220 0 : ndr_print_GUID(ndr, "generation_guid", &r->generation_guid);
1221 0 : ndr->depth--;
1222 : }
1223 :
1224 0 : static enum ndr_err_code ndr_push_dfs_Info100(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info100 *r)
1225 : {
1226 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1227 0 : if (ndr_flags & NDR_SCALARS) {
1228 0 : NDR_CHECK(ndr_push_align(ndr, 5));
1229 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
1230 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1231 : }
1232 0 : if (ndr_flags & NDR_BUFFERS) {
1233 0 : if (r->comment) {
1234 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
1235 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1236 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
1237 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->comment, ndr_charset_length(r->comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1238 : }
1239 : }
1240 0 : return NDR_ERR_SUCCESS;
1241 : }
1242 :
1243 0 : static enum ndr_err_code ndr_pull_dfs_Info100(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info100 *r)
1244 : {
1245 0 : uint32_t _ptr_comment;
1246 0 : uint32_t size_comment_1 = 0;
1247 0 : uint32_t length_comment_1 = 0;
1248 0 : TALLOC_CTX *_mem_save_comment_0 = NULL;
1249 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1250 0 : if (ndr_flags & NDR_SCALARS) {
1251 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
1252 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
1253 0 : if (_ptr_comment) {
1254 0 : NDR_PULL_ALLOC(ndr, r->comment);
1255 : } else {
1256 0 : r->comment = NULL;
1257 : }
1258 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1259 : }
1260 0 : if (ndr_flags & NDR_BUFFERS) {
1261 0 : if (r->comment) {
1262 0 : _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
1263 0 : NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
1264 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->comment));
1265 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->comment));
1266 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->comment, &size_comment_1));
1267 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->comment, &length_comment_1));
1268 0 : if (length_comment_1 > size_comment_1) {
1269 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_1, length_comment_1);
1270 : }
1271 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_1, sizeof(uint16_t)));
1272 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->comment, length_comment_1, sizeof(uint16_t), CH_UTF16));
1273 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
1274 : }
1275 : }
1276 0 : return NDR_ERR_SUCCESS;
1277 : }
1278 :
1279 0 : _PUBLIC_ void ndr_print_dfs_Info100(struct ndr_print *ndr, const char *name, const struct dfs_Info100 *r)
1280 : {
1281 0 : ndr_print_struct(ndr, name, "dfs_Info100");
1282 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1283 0 : ndr->depth++;
1284 0 : ndr_print_ptr(ndr, "comment", r->comment);
1285 0 : ndr->depth++;
1286 0 : if (r->comment) {
1287 0 : ndr_print_string(ndr, "comment", r->comment);
1288 : }
1289 0 : ndr->depth--;
1290 0 : ndr->depth--;
1291 : }
1292 :
1293 0 : static enum ndr_err_code ndr_push_dfs_Info101(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info101 *r)
1294 : {
1295 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1296 0 : if (ndr_flags & NDR_SCALARS) {
1297 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1298 0 : NDR_CHECK(ndr_push_dfs_StorageState(ndr, NDR_SCALARS, r->state));
1299 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1300 : }
1301 0 : if (ndr_flags & NDR_BUFFERS) {
1302 0 : }
1303 0 : return NDR_ERR_SUCCESS;
1304 : }
1305 :
1306 0 : static enum ndr_err_code ndr_pull_dfs_Info101(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info101 *r)
1307 : {
1308 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1309 0 : if (ndr_flags & NDR_SCALARS) {
1310 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1311 0 : NDR_CHECK(ndr_pull_dfs_StorageState(ndr, NDR_SCALARS, &r->state));
1312 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1313 : }
1314 0 : if (ndr_flags & NDR_BUFFERS) {
1315 0 : }
1316 0 : return NDR_ERR_SUCCESS;
1317 : }
1318 :
1319 0 : _PUBLIC_ void ndr_print_dfs_Info101(struct ndr_print *ndr, const char *name, const struct dfs_Info101 *r)
1320 : {
1321 0 : ndr_print_struct(ndr, name, "dfs_Info101");
1322 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1323 0 : ndr->depth++;
1324 0 : ndr_print_dfs_StorageState(ndr, "state", r->state);
1325 0 : ndr->depth--;
1326 : }
1327 :
1328 0 : static enum ndr_err_code ndr_push_dfs_Info102(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info102 *r)
1329 : {
1330 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1331 0 : if (ndr_flags & NDR_SCALARS) {
1332 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1333 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->timeout));
1334 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1335 : }
1336 0 : if (ndr_flags & NDR_BUFFERS) {
1337 0 : }
1338 0 : return NDR_ERR_SUCCESS;
1339 : }
1340 :
1341 0 : static enum ndr_err_code ndr_pull_dfs_Info102(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info102 *r)
1342 : {
1343 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1344 0 : if (ndr_flags & NDR_SCALARS) {
1345 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1346 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->timeout));
1347 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1348 : }
1349 0 : if (ndr_flags & NDR_BUFFERS) {
1350 0 : }
1351 0 : return NDR_ERR_SUCCESS;
1352 : }
1353 :
1354 0 : _PUBLIC_ void ndr_print_dfs_Info102(struct ndr_print *ndr, const char *name, const struct dfs_Info102 *r)
1355 : {
1356 0 : ndr_print_struct(ndr, name, "dfs_Info102");
1357 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1358 0 : ndr->depth++;
1359 0 : ndr_print_uint32(ndr, "timeout", r->timeout);
1360 0 : ndr->depth--;
1361 : }
1362 :
1363 0 : static enum ndr_err_code ndr_push_dfs_Info103(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info103 *r)
1364 : {
1365 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1366 0 : if (ndr_flags & NDR_SCALARS) {
1367 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1368 0 : NDR_CHECK(ndr_push_dfs_PropertyFlags(ndr, NDR_SCALARS, r->flags));
1369 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1370 : }
1371 0 : if (ndr_flags & NDR_BUFFERS) {
1372 0 : }
1373 0 : return NDR_ERR_SUCCESS;
1374 : }
1375 :
1376 0 : static enum ndr_err_code ndr_pull_dfs_Info103(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info103 *r)
1377 : {
1378 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1379 0 : if (ndr_flags & NDR_SCALARS) {
1380 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1381 0 : NDR_CHECK(ndr_pull_dfs_PropertyFlags(ndr, NDR_SCALARS, &r->flags));
1382 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1383 : }
1384 0 : if (ndr_flags & NDR_BUFFERS) {
1385 0 : }
1386 0 : return NDR_ERR_SUCCESS;
1387 : }
1388 :
1389 0 : _PUBLIC_ void ndr_print_dfs_Info103(struct ndr_print *ndr, const char *name, const struct dfs_Info103 *r)
1390 : {
1391 0 : ndr_print_struct(ndr, name, "dfs_Info103");
1392 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1393 0 : ndr->depth++;
1394 0 : ndr_print_dfs_PropertyFlags(ndr, "flags", r->flags);
1395 0 : ndr->depth--;
1396 : }
1397 :
1398 0 : static enum ndr_err_code ndr_push_dfs_Info104(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info104 *r)
1399 : {
1400 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1401 0 : if (ndr_flags & NDR_SCALARS) {
1402 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1403 0 : NDR_CHECK(ndr_push_dfs_Target_Priority(ndr, NDR_SCALARS, &r->priority));
1404 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1405 : }
1406 0 : if (ndr_flags & NDR_BUFFERS) {
1407 0 : }
1408 0 : return NDR_ERR_SUCCESS;
1409 : }
1410 :
1411 0 : static enum ndr_err_code ndr_pull_dfs_Info104(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info104 *r)
1412 : {
1413 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1414 0 : if (ndr_flags & NDR_SCALARS) {
1415 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1416 0 : NDR_CHECK(ndr_pull_dfs_Target_Priority(ndr, NDR_SCALARS, &r->priority));
1417 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1418 : }
1419 0 : if (ndr_flags & NDR_BUFFERS) {
1420 0 : }
1421 0 : return NDR_ERR_SUCCESS;
1422 : }
1423 :
1424 0 : _PUBLIC_ void ndr_print_dfs_Info104(struct ndr_print *ndr, const char *name, const struct dfs_Info104 *r)
1425 : {
1426 0 : ndr_print_struct(ndr, name, "dfs_Info104");
1427 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1428 0 : ndr->depth++;
1429 0 : ndr_print_dfs_Target_Priority(ndr, "priority", &r->priority);
1430 0 : ndr->depth--;
1431 : }
1432 :
1433 0 : static enum ndr_err_code ndr_push_dfs_Info105(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info105 *r)
1434 : {
1435 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1436 0 : if (ndr_flags & NDR_SCALARS) {
1437 0 : NDR_CHECK(ndr_push_align(ndr, 5));
1438 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
1439 0 : NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
1440 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->timeout));
1441 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->property_flag_mask));
1442 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->property_flags));
1443 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1444 : }
1445 0 : if (ndr_flags & NDR_BUFFERS) {
1446 0 : if (r->comment) {
1447 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
1448 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1449 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->comment, CH_UTF16)));
1450 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->comment, ndr_charset_length(r->comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1451 : }
1452 : }
1453 0 : return NDR_ERR_SUCCESS;
1454 : }
1455 :
1456 0 : static enum ndr_err_code ndr_pull_dfs_Info105(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info105 *r)
1457 : {
1458 0 : uint32_t _ptr_comment;
1459 0 : uint32_t size_comment_1 = 0;
1460 0 : uint32_t length_comment_1 = 0;
1461 0 : TALLOC_CTX *_mem_save_comment_0 = NULL;
1462 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1463 0 : if (ndr_flags & NDR_SCALARS) {
1464 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
1465 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
1466 0 : if (_ptr_comment) {
1467 0 : NDR_PULL_ALLOC(ndr, r->comment);
1468 : } else {
1469 0 : r->comment = NULL;
1470 : }
1471 0 : NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
1472 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->timeout));
1473 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->property_flag_mask));
1474 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->property_flags));
1475 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1476 : }
1477 0 : if (ndr_flags & NDR_BUFFERS) {
1478 0 : if (r->comment) {
1479 0 : _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
1480 0 : NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
1481 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->comment));
1482 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->comment));
1483 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->comment, &size_comment_1));
1484 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->comment, &length_comment_1));
1485 0 : if (length_comment_1 > size_comment_1) {
1486 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_1, length_comment_1);
1487 : }
1488 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_1, sizeof(uint16_t)));
1489 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->comment, length_comment_1, sizeof(uint16_t), CH_UTF16));
1490 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
1491 : }
1492 : }
1493 0 : return NDR_ERR_SUCCESS;
1494 : }
1495 :
1496 0 : _PUBLIC_ void ndr_print_dfs_Info105(struct ndr_print *ndr, const char *name, const struct dfs_Info105 *r)
1497 : {
1498 0 : ndr_print_struct(ndr, name, "dfs_Info105");
1499 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1500 0 : ndr->depth++;
1501 0 : ndr_print_ptr(ndr, "comment", r->comment);
1502 0 : ndr->depth++;
1503 0 : if (r->comment) {
1504 0 : ndr_print_string(ndr, "comment", r->comment);
1505 : }
1506 0 : ndr->depth--;
1507 0 : ndr_print_dfs_VolumeState(ndr, "state", r->state);
1508 0 : ndr_print_uint32(ndr, "timeout", r->timeout);
1509 0 : ndr_print_uint32(ndr, "property_flag_mask", r->property_flag_mask);
1510 0 : ndr_print_uint32(ndr, "property_flags", r->property_flags);
1511 0 : ndr->depth--;
1512 : }
1513 :
1514 0 : static enum ndr_err_code ndr_push_dfs_Info106(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info106 *r)
1515 : {
1516 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1517 0 : if (ndr_flags & NDR_SCALARS) {
1518 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1519 0 : NDR_CHECK(ndr_push_dfs_StorageState(ndr, NDR_SCALARS, r->state));
1520 0 : NDR_CHECK(ndr_push_dfs_Target_Priority(ndr, NDR_SCALARS, &r->priority));
1521 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1522 : }
1523 0 : if (ndr_flags & NDR_BUFFERS) {
1524 0 : }
1525 0 : return NDR_ERR_SUCCESS;
1526 : }
1527 :
1528 0 : static enum ndr_err_code ndr_pull_dfs_Info106(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info106 *r)
1529 : {
1530 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1531 0 : if (ndr_flags & NDR_SCALARS) {
1532 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1533 0 : NDR_CHECK(ndr_pull_dfs_StorageState(ndr, NDR_SCALARS, &r->state));
1534 0 : NDR_CHECK(ndr_pull_dfs_Target_Priority(ndr, NDR_SCALARS, &r->priority));
1535 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1536 : }
1537 0 : if (ndr_flags & NDR_BUFFERS) {
1538 0 : }
1539 0 : return NDR_ERR_SUCCESS;
1540 : }
1541 :
1542 0 : _PUBLIC_ void ndr_print_dfs_Info106(struct ndr_print *ndr, const char *name, const struct dfs_Info106 *r)
1543 : {
1544 0 : ndr_print_struct(ndr, name, "dfs_Info106");
1545 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1546 0 : ndr->depth++;
1547 0 : ndr_print_dfs_StorageState(ndr, "state", r->state);
1548 0 : ndr_print_dfs_Target_Priority(ndr, "priority", &r->priority);
1549 0 : ndr->depth--;
1550 : }
1551 :
1552 0 : static enum ndr_err_code ndr_push_dfs_Info200(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info200 *r)
1553 : {
1554 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1555 0 : if (ndr_flags & NDR_SCALARS) {
1556 0 : NDR_CHECK(ndr_push_align(ndr, 5));
1557 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->dom_root));
1558 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1559 : }
1560 0 : if (ndr_flags & NDR_BUFFERS) {
1561 0 : if (r->dom_root) {
1562 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->dom_root, CH_UTF16)));
1563 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1564 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->dom_root, CH_UTF16)));
1565 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->dom_root, ndr_charset_length(r->dom_root, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1566 : }
1567 : }
1568 0 : return NDR_ERR_SUCCESS;
1569 : }
1570 :
1571 0 : static enum ndr_err_code ndr_pull_dfs_Info200(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info200 *r)
1572 : {
1573 0 : uint32_t _ptr_dom_root;
1574 0 : uint32_t size_dom_root_1 = 0;
1575 0 : uint32_t length_dom_root_1 = 0;
1576 0 : TALLOC_CTX *_mem_save_dom_root_0 = NULL;
1577 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1578 0 : if (ndr_flags & NDR_SCALARS) {
1579 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
1580 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_dom_root));
1581 0 : if (_ptr_dom_root) {
1582 0 : NDR_PULL_ALLOC(ndr, r->dom_root);
1583 : } else {
1584 0 : r->dom_root = NULL;
1585 : }
1586 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1587 : }
1588 0 : if (ndr_flags & NDR_BUFFERS) {
1589 0 : if (r->dom_root) {
1590 0 : _mem_save_dom_root_0 = NDR_PULL_GET_MEM_CTX(ndr);
1591 0 : NDR_PULL_SET_MEM_CTX(ndr, r->dom_root, 0);
1592 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->dom_root));
1593 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->dom_root));
1594 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->dom_root, &size_dom_root_1));
1595 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->dom_root, &length_dom_root_1));
1596 0 : if (length_dom_root_1 > size_dom_root_1) {
1597 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dom_root_1, length_dom_root_1);
1598 : }
1599 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dom_root_1, sizeof(uint16_t)));
1600 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->dom_root, length_dom_root_1, sizeof(uint16_t), CH_UTF16));
1601 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dom_root_0, 0);
1602 : }
1603 : }
1604 0 : return NDR_ERR_SUCCESS;
1605 : }
1606 :
1607 0 : _PUBLIC_ void ndr_print_dfs_Info200(struct ndr_print *ndr, const char *name, const struct dfs_Info200 *r)
1608 : {
1609 0 : ndr_print_struct(ndr, name, "dfs_Info200");
1610 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1611 0 : ndr->depth++;
1612 0 : ndr_print_ptr(ndr, "dom_root", r->dom_root);
1613 0 : ndr->depth++;
1614 0 : if (r->dom_root) {
1615 0 : ndr_print_string(ndr, "dom_root", r->dom_root);
1616 : }
1617 0 : ndr->depth--;
1618 0 : ndr->depth--;
1619 : }
1620 :
1621 0 : static enum ndr_err_code ndr_push_dfs_VolumeFlavor(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum dfs_VolumeFlavor r)
1622 : {
1623 0 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
1624 0 : return NDR_ERR_SUCCESS;
1625 : }
1626 :
1627 6 : static enum ndr_err_code ndr_pull_dfs_VolumeFlavor(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum dfs_VolumeFlavor *r)
1628 : {
1629 6 : uint16_t v;
1630 6 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
1631 6 : *r = v;
1632 6 : return NDR_ERR_SUCCESS;
1633 : }
1634 :
1635 6 : _PUBLIC_ void ndr_print_dfs_VolumeFlavor(struct ndr_print *ndr, const char *name, enum dfs_VolumeFlavor r)
1636 : {
1637 6 : const char *val = NULL;
1638 :
1639 6 : switch (r) {
1640 4 : case DFS_VOLUME_FLAVOR_STANDALONE: val = "DFS_VOLUME_FLAVOR_STANDALONE"; break;
1641 2 : case DFS_VOLUME_FLAVOR_AD_BLOB: val = "DFS_VOLUME_FLAVOR_AD_BLOB"; break;
1642 : }
1643 6 : ndr_print_enum(ndr, name, "ENUM", val, r);
1644 6 : }
1645 :
1646 0 : static enum ndr_err_code ndr_push_dfs_Info300(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_Info300 *r)
1647 : {
1648 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1649 0 : if (ndr_flags & NDR_SCALARS) {
1650 0 : NDR_CHECK(ndr_push_align(ndr, 5));
1651 0 : NDR_CHECK(ndr_push_dfs_VolumeFlavor(ndr, NDR_SCALARS, r->flavor));
1652 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->dom_root));
1653 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1654 : }
1655 0 : if (ndr_flags & NDR_BUFFERS) {
1656 0 : if (r->dom_root) {
1657 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->dom_root, CH_UTF16)));
1658 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1659 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->dom_root, CH_UTF16)));
1660 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->dom_root, ndr_charset_length(r->dom_root, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1661 : }
1662 : }
1663 0 : return NDR_ERR_SUCCESS;
1664 : }
1665 :
1666 12 : static enum ndr_err_code ndr_pull_dfs_Info300(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_Info300 *r)
1667 : {
1668 12 : uint32_t _ptr_dom_root;
1669 12 : uint32_t size_dom_root_1 = 0;
1670 12 : uint32_t length_dom_root_1 = 0;
1671 12 : TALLOC_CTX *_mem_save_dom_root_0 = NULL;
1672 12 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1673 12 : if (ndr_flags & NDR_SCALARS) {
1674 6 : NDR_CHECK(ndr_pull_align(ndr, 5));
1675 12 : NDR_CHECK(ndr_pull_dfs_VolumeFlavor(ndr, NDR_SCALARS, &r->flavor));
1676 6 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_dom_root));
1677 6 : if (_ptr_dom_root) {
1678 6 : NDR_PULL_ALLOC(ndr, r->dom_root);
1679 : } else {
1680 0 : r->dom_root = NULL;
1681 : }
1682 6 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1683 : }
1684 12 : if (ndr_flags & NDR_BUFFERS) {
1685 6 : if (r->dom_root) {
1686 6 : _mem_save_dom_root_0 = NDR_PULL_GET_MEM_CTX(ndr);
1687 6 : NDR_PULL_SET_MEM_CTX(ndr, r->dom_root, 0);
1688 6 : NDR_CHECK(ndr_pull_array_size(ndr, &r->dom_root));
1689 6 : NDR_CHECK(ndr_pull_array_length(ndr, &r->dom_root));
1690 6 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->dom_root, &size_dom_root_1));
1691 6 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->dom_root, &length_dom_root_1));
1692 6 : if (length_dom_root_1 > size_dom_root_1) {
1693 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dom_root_1, length_dom_root_1);
1694 : }
1695 6 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dom_root_1, sizeof(uint16_t)));
1696 6 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->dom_root, length_dom_root_1, sizeof(uint16_t), CH_UTF16));
1697 6 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dom_root_0, 0);
1698 : }
1699 : }
1700 0 : return NDR_ERR_SUCCESS;
1701 : }
1702 :
1703 6 : _PUBLIC_ void ndr_print_dfs_Info300(struct ndr_print *ndr, const char *name, const struct dfs_Info300 *r)
1704 : {
1705 6 : ndr_print_struct(ndr, name, "dfs_Info300");
1706 6 : if (r == NULL) { ndr_print_null(ndr); return; }
1707 6 : ndr->depth++;
1708 6 : ndr_print_dfs_VolumeFlavor(ndr, "flavor", r->flavor);
1709 6 : ndr_print_ptr(ndr, "dom_root", r->dom_root);
1710 6 : ndr->depth++;
1711 6 : if (r->dom_root) {
1712 6 : ndr_print_string(ndr, "dom_root", r->dom_root);
1713 : }
1714 6 : ndr->depth--;
1715 6 : ndr->depth--;
1716 : }
1717 :
1718 2 : static enum ndr_err_code ndr_push_dfs_Info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union dfs_Info *r)
1719 : {
1720 0 : uint32_t level;
1721 2 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1722 2 : if (ndr_flags & NDR_SCALARS) {
1723 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
1724 2 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
1725 2 : NDR_CHECK(ndr_push_union_align(ndr, 5));
1726 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, level));
1727 2 : NDR_CHECK(ndr_push_union_align(ndr, 5));
1728 2 : switch (level) {
1729 0 : case 0: {
1730 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info0));
1731 0 : break; }
1732 :
1733 2 : case 1: {
1734 2 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info1));
1735 2 : break; }
1736 :
1737 0 : case 2: {
1738 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info2));
1739 0 : break; }
1740 :
1741 0 : case 3: {
1742 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info3));
1743 0 : break; }
1744 :
1745 0 : case 4: {
1746 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info4));
1747 0 : break; }
1748 :
1749 0 : case 5: {
1750 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info5));
1751 0 : break; }
1752 :
1753 0 : case 6: {
1754 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info6));
1755 0 : break; }
1756 :
1757 0 : case 7: {
1758 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info7));
1759 0 : break; }
1760 :
1761 0 : case 100: {
1762 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info100));
1763 0 : break; }
1764 :
1765 0 : case 101: {
1766 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info101));
1767 0 : break; }
1768 :
1769 0 : case 102: {
1770 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info102));
1771 0 : break; }
1772 :
1773 0 : case 103: {
1774 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info103));
1775 0 : break; }
1776 :
1777 0 : case 104: {
1778 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info104));
1779 0 : break; }
1780 :
1781 0 : case 105: {
1782 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info105));
1783 0 : break; }
1784 :
1785 0 : case 106: {
1786 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info106));
1787 0 : break; }
1788 :
1789 0 : default:
1790 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
1791 : }
1792 : }
1793 2 : if (ndr_flags & NDR_BUFFERS) {
1794 2 : if (!(ndr_flags & NDR_SCALARS)) {
1795 : /* We didn't get it above, and the token is not needed after this. */
1796 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
1797 : }
1798 2 : switch (level) {
1799 0 : case 0:
1800 0 : if (r->info0) {
1801 0 : NDR_CHECK(ndr_push_dfs_Info0(ndr, NDR_SCALARS, r->info0));
1802 : }
1803 0 : break;
1804 :
1805 2 : case 1:
1806 2 : if (r->info1) {
1807 2 : NDR_CHECK(ndr_push_dfs_Info1(ndr, NDR_SCALARS|NDR_BUFFERS, r->info1));
1808 : }
1809 2 : break;
1810 :
1811 0 : case 2:
1812 0 : if (r->info2) {
1813 0 : NDR_CHECK(ndr_push_dfs_Info2(ndr, NDR_SCALARS|NDR_BUFFERS, r->info2));
1814 : }
1815 0 : break;
1816 :
1817 0 : case 3:
1818 0 : if (r->info3) {
1819 0 : NDR_CHECK(ndr_push_dfs_Info3(ndr, NDR_SCALARS|NDR_BUFFERS, r->info3));
1820 : }
1821 0 : break;
1822 :
1823 0 : case 4:
1824 0 : if (r->info4) {
1825 0 : NDR_CHECK(ndr_push_dfs_Info4(ndr, NDR_SCALARS|NDR_BUFFERS, r->info4));
1826 : }
1827 0 : break;
1828 :
1829 0 : case 5:
1830 0 : if (r->info5) {
1831 0 : NDR_CHECK(ndr_push_dfs_Info5(ndr, NDR_SCALARS|NDR_BUFFERS, r->info5));
1832 : }
1833 0 : break;
1834 :
1835 0 : case 6:
1836 0 : if (r->info6) {
1837 0 : NDR_CHECK(ndr_push_dfs_Info6(ndr, NDR_SCALARS|NDR_BUFFERS, r->info6));
1838 : }
1839 0 : break;
1840 :
1841 0 : case 7:
1842 0 : if (r->info7) {
1843 0 : NDR_CHECK(ndr_push_dfs_Info7(ndr, NDR_SCALARS, r->info7));
1844 : }
1845 0 : break;
1846 :
1847 0 : case 100:
1848 0 : if (r->info100) {
1849 0 : NDR_CHECK(ndr_push_dfs_Info100(ndr, NDR_SCALARS|NDR_BUFFERS, r->info100));
1850 : }
1851 0 : break;
1852 :
1853 0 : case 101:
1854 0 : if (r->info101) {
1855 0 : NDR_CHECK(ndr_push_dfs_Info101(ndr, NDR_SCALARS, r->info101));
1856 : }
1857 0 : break;
1858 :
1859 0 : case 102:
1860 0 : if (r->info102) {
1861 0 : NDR_CHECK(ndr_push_dfs_Info102(ndr, NDR_SCALARS, r->info102));
1862 : }
1863 0 : break;
1864 :
1865 0 : case 103:
1866 0 : if (r->info103) {
1867 0 : NDR_CHECK(ndr_push_dfs_Info103(ndr, NDR_SCALARS, r->info103));
1868 : }
1869 0 : break;
1870 :
1871 0 : case 104:
1872 0 : if (r->info104) {
1873 0 : NDR_CHECK(ndr_push_dfs_Info104(ndr, NDR_SCALARS, r->info104));
1874 : }
1875 0 : break;
1876 :
1877 0 : case 105:
1878 0 : if (r->info105) {
1879 0 : NDR_CHECK(ndr_push_dfs_Info105(ndr, NDR_SCALARS|NDR_BUFFERS, r->info105));
1880 : }
1881 0 : break;
1882 :
1883 0 : case 106:
1884 0 : if (r->info106) {
1885 0 : NDR_CHECK(ndr_push_dfs_Info106(ndr, NDR_SCALARS, r->info106));
1886 : }
1887 0 : break;
1888 :
1889 0 : default:
1890 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
1891 : }
1892 : }
1893 2 : return NDR_ERR_SUCCESS;
1894 : }
1895 :
1896 2 : static enum ndr_err_code ndr_pull_dfs_Info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union dfs_Info *r)
1897 : {
1898 0 : uint32_t level;
1899 0 : uint32_t _level;
1900 2 : TALLOC_CTX *_mem_save_info0_0 = NULL;
1901 0 : uint32_t _ptr_info0;
1902 2 : TALLOC_CTX *_mem_save_info1_0 = NULL;
1903 0 : uint32_t _ptr_info1;
1904 2 : TALLOC_CTX *_mem_save_info2_0 = NULL;
1905 0 : uint32_t _ptr_info2;
1906 2 : TALLOC_CTX *_mem_save_info3_0 = NULL;
1907 0 : uint32_t _ptr_info3;
1908 2 : TALLOC_CTX *_mem_save_info4_0 = NULL;
1909 0 : uint32_t _ptr_info4;
1910 2 : TALLOC_CTX *_mem_save_info5_0 = NULL;
1911 0 : uint32_t _ptr_info5;
1912 2 : TALLOC_CTX *_mem_save_info6_0 = NULL;
1913 0 : uint32_t _ptr_info6;
1914 2 : TALLOC_CTX *_mem_save_info7_0 = NULL;
1915 0 : uint32_t _ptr_info7;
1916 2 : TALLOC_CTX *_mem_save_info100_0 = NULL;
1917 0 : uint32_t _ptr_info100;
1918 2 : TALLOC_CTX *_mem_save_info101_0 = NULL;
1919 0 : uint32_t _ptr_info101;
1920 2 : TALLOC_CTX *_mem_save_info102_0 = NULL;
1921 0 : uint32_t _ptr_info102;
1922 2 : TALLOC_CTX *_mem_save_info103_0 = NULL;
1923 0 : uint32_t _ptr_info103;
1924 2 : TALLOC_CTX *_mem_save_info104_0 = NULL;
1925 0 : uint32_t _ptr_info104;
1926 2 : TALLOC_CTX *_mem_save_info105_0 = NULL;
1927 0 : uint32_t _ptr_info105;
1928 2 : TALLOC_CTX *_mem_save_info106_0 = NULL;
1929 0 : uint32_t _ptr_info106;
1930 2 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1931 2 : if (ndr_flags & NDR_SCALARS) {
1932 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
1933 2 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
1934 2 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
1935 2 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &_level));
1936 2 : if (_level != level) {
1937 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" for r at %s", (uint32_t)_level, __location__);
1938 : }
1939 2 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
1940 2 : switch (level) {
1941 0 : case 0: {
1942 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info0));
1943 0 : if (_ptr_info0) {
1944 0 : NDR_PULL_ALLOC(ndr, r->info0);
1945 : } else {
1946 0 : r->info0 = NULL;
1947 : }
1948 0 : break; }
1949 :
1950 2 : case 1: {
1951 2 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info1));
1952 2 : if (_ptr_info1) {
1953 2 : NDR_PULL_ALLOC(ndr, r->info1);
1954 : } else {
1955 0 : r->info1 = NULL;
1956 : }
1957 2 : break; }
1958 :
1959 0 : case 2: {
1960 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info2));
1961 0 : if (_ptr_info2) {
1962 0 : NDR_PULL_ALLOC(ndr, r->info2);
1963 : } else {
1964 0 : r->info2 = NULL;
1965 : }
1966 0 : break; }
1967 :
1968 0 : case 3: {
1969 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info3));
1970 0 : if (_ptr_info3) {
1971 0 : NDR_PULL_ALLOC(ndr, r->info3);
1972 : } else {
1973 0 : r->info3 = NULL;
1974 : }
1975 0 : break; }
1976 :
1977 0 : case 4: {
1978 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info4));
1979 0 : if (_ptr_info4) {
1980 0 : NDR_PULL_ALLOC(ndr, r->info4);
1981 : } else {
1982 0 : r->info4 = NULL;
1983 : }
1984 0 : break; }
1985 :
1986 0 : case 5: {
1987 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info5));
1988 0 : if (_ptr_info5) {
1989 0 : NDR_PULL_ALLOC(ndr, r->info5);
1990 : } else {
1991 0 : r->info5 = NULL;
1992 : }
1993 0 : break; }
1994 :
1995 0 : case 6: {
1996 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info6));
1997 0 : if (_ptr_info6) {
1998 0 : NDR_PULL_ALLOC(ndr, r->info6);
1999 : } else {
2000 0 : r->info6 = NULL;
2001 : }
2002 0 : break; }
2003 :
2004 0 : case 7: {
2005 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info7));
2006 0 : if (_ptr_info7) {
2007 0 : NDR_PULL_ALLOC(ndr, r->info7);
2008 : } else {
2009 0 : r->info7 = NULL;
2010 : }
2011 0 : break; }
2012 :
2013 0 : case 100: {
2014 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info100));
2015 0 : if (_ptr_info100) {
2016 0 : NDR_PULL_ALLOC(ndr, r->info100);
2017 : } else {
2018 0 : r->info100 = NULL;
2019 : }
2020 0 : break; }
2021 :
2022 0 : case 101: {
2023 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info101));
2024 0 : if (_ptr_info101) {
2025 0 : NDR_PULL_ALLOC(ndr, r->info101);
2026 : } else {
2027 0 : r->info101 = NULL;
2028 : }
2029 0 : break; }
2030 :
2031 0 : case 102: {
2032 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info102));
2033 0 : if (_ptr_info102) {
2034 0 : NDR_PULL_ALLOC(ndr, r->info102);
2035 : } else {
2036 0 : r->info102 = NULL;
2037 : }
2038 0 : break; }
2039 :
2040 0 : case 103: {
2041 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info103));
2042 0 : if (_ptr_info103) {
2043 0 : NDR_PULL_ALLOC(ndr, r->info103);
2044 : } else {
2045 0 : r->info103 = NULL;
2046 : }
2047 0 : break; }
2048 :
2049 0 : case 104: {
2050 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info104));
2051 0 : if (_ptr_info104) {
2052 0 : NDR_PULL_ALLOC(ndr, r->info104);
2053 : } else {
2054 0 : r->info104 = NULL;
2055 : }
2056 0 : break; }
2057 :
2058 0 : case 105: {
2059 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info105));
2060 0 : if (_ptr_info105) {
2061 0 : NDR_PULL_ALLOC(ndr, r->info105);
2062 : } else {
2063 0 : r->info105 = NULL;
2064 : }
2065 0 : break; }
2066 :
2067 0 : case 106: {
2068 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info106));
2069 0 : if (_ptr_info106) {
2070 0 : NDR_PULL_ALLOC(ndr, r->info106);
2071 : } else {
2072 0 : r->info106 = NULL;
2073 : }
2074 0 : break; }
2075 :
2076 0 : default:
2077 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
2078 : }
2079 : }
2080 2 : if (ndr_flags & NDR_BUFFERS) {
2081 2 : if (!(ndr_flags & NDR_SCALARS)) {
2082 : /* We didn't get it above, and the token is not needed after this. */
2083 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
2084 : }
2085 2 : switch (level) {
2086 0 : case 0:
2087 0 : if (r->info0) {
2088 0 : _mem_save_info0_0 = NDR_PULL_GET_MEM_CTX(ndr);
2089 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info0, 0);
2090 0 : NDR_CHECK(ndr_pull_dfs_Info0(ndr, NDR_SCALARS, r->info0));
2091 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info0_0, 0);
2092 : }
2093 0 : break;
2094 :
2095 2 : case 1:
2096 2 : if (r->info1) {
2097 2 : _mem_save_info1_0 = NDR_PULL_GET_MEM_CTX(ndr);
2098 2 : NDR_PULL_SET_MEM_CTX(ndr, r->info1, 0);
2099 2 : NDR_CHECK(ndr_pull_dfs_Info1(ndr, NDR_SCALARS|NDR_BUFFERS, r->info1));
2100 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info1_0, 0);
2101 : }
2102 2 : break;
2103 :
2104 0 : case 2:
2105 0 : if (r->info2) {
2106 0 : _mem_save_info2_0 = NDR_PULL_GET_MEM_CTX(ndr);
2107 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info2, 0);
2108 0 : NDR_CHECK(ndr_pull_dfs_Info2(ndr, NDR_SCALARS|NDR_BUFFERS, r->info2));
2109 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info2_0, 0);
2110 : }
2111 0 : break;
2112 :
2113 0 : case 3:
2114 0 : if (r->info3) {
2115 0 : _mem_save_info3_0 = NDR_PULL_GET_MEM_CTX(ndr);
2116 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info3, 0);
2117 0 : NDR_CHECK(ndr_pull_dfs_Info3(ndr, NDR_SCALARS|NDR_BUFFERS, r->info3));
2118 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info3_0, 0);
2119 : }
2120 0 : break;
2121 :
2122 0 : case 4:
2123 0 : if (r->info4) {
2124 0 : _mem_save_info4_0 = NDR_PULL_GET_MEM_CTX(ndr);
2125 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info4, 0);
2126 0 : NDR_CHECK(ndr_pull_dfs_Info4(ndr, NDR_SCALARS|NDR_BUFFERS, r->info4));
2127 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info4_0, 0);
2128 : }
2129 0 : break;
2130 :
2131 0 : case 5:
2132 0 : if (r->info5) {
2133 0 : _mem_save_info5_0 = NDR_PULL_GET_MEM_CTX(ndr);
2134 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info5, 0);
2135 0 : NDR_CHECK(ndr_pull_dfs_Info5(ndr, NDR_SCALARS|NDR_BUFFERS, r->info5));
2136 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info5_0, 0);
2137 : }
2138 0 : break;
2139 :
2140 0 : case 6:
2141 0 : if (r->info6) {
2142 0 : _mem_save_info6_0 = NDR_PULL_GET_MEM_CTX(ndr);
2143 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info6, 0);
2144 0 : NDR_CHECK(ndr_pull_dfs_Info6(ndr, NDR_SCALARS|NDR_BUFFERS, r->info6));
2145 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info6_0, 0);
2146 : }
2147 0 : break;
2148 :
2149 0 : case 7:
2150 0 : if (r->info7) {
2151 0 : _mem_save_info7_0 = NDR_PULL_GET_MEM_CTX(ndr);
2152 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info7, 0);
2153 0 : NDR_CHECK(ndr_pull_dfs_Info7(ndr, NDR_SCALARS, r->info7));
2154 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info7_0, 0);
2155 : }
2156 0 : break;
2157 :
2158 0 : case 100:
2159 0 : if (r->info100) {
2160 0 : _mem_save_info100_0 = NDR_PULL_GET_MEM_CTX(ndr);
2161 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info100, 0);
2162 0 : NDR_CHECK(ndr_pull_dfs_Info100(ndr, NDR_SCALARS|NDR_BUFFERS, r->info100));
2163 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info100_0, 0);
2164 : }
2165 0 : break;
2166 :
2167 0 : case 101:
2168 0 : if (r->info101) {
2169 0 : _mem_save_info101_0 = NDR_PULL_GET_MEM_CTX(ndr);
2170 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info101, 0);
2171 0 : NDR_CHECK(ndr_pull_dfs_Info101(ndr, NDR_SCALARS, r->info101));
2172 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info101_0, 0);
2173 : }
2174 0 : break;
2175 :
2176 0 : case 102:
2177 0 : if (r->info102) {
2178 0 : _mem_save_info102_0 = NDR_PULL_GET_MEM_CTX(ndr);
2179 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info102, 0);
2180 0 : NDR_CHECK(ndr_pull_dfs_Info102(ndr, NDR_SCALARS, r->info102));
2181 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info102_0, 0);
2182 : }
2183 0 : break;
2184 :
2185 0 : case 103:
2186 0 : if (r->info103) {
2187 0 : _mem_save_info103_0 = NDR_PULL_GET_MEM_CTX(ndr);
2188 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info103, 0);
2189 0 : NDR_CHECK(ndr_pull_dfs_Info103(ndr, NDR_SCALARS, r->info103));
2190 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info103_0, 0);
2191 : }
2192 0 : break;
2193 :
2194 0 : case 104:
2195 0 : if (r->info104) {
2196 0 : _mem_save_info104_0 = NDR_PULL_GET_MEM_CTX(ndr);
2197 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info104, 0);
2198 0 : NDR_CHECK(ndr_pull_dfs_Info104(ndr, NDR_SCALARS, r->info104));
2199 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info104_0, 0);
2200 : }
2201 0 : break;
2202 :
2203 0 : case 105:
2204 0 : if (r->info105) {
2205 0 : _mem_save_info105_0 = NDR_PULL_GET_MEM_CTX(ndr);
2206 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info105, 0);
2207 0 : NDR_CHECK(ndr_pull_dfs_Info105(ndr, NDR_SCALARS|NDR_BUFFERS, r->info105));
2208 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info105_0, 0);
2209 : }
2210 0 : break;
2211 :
2212 0 : case 106:
2213 0 : if (r->info106) {
2214 0 : _mem_save_info106_0 = NDR_PULL_GET_MEM_CTX(ndr);
2215 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info106, 0);
2216 0 : NDR_CHECK(ndr_pull_dfs_Info106(ndr, NDR_SCALARS, r->info106));
2217 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info106_0, 0);
2218 : }
2219 0 : break;
2220 :
2221 0 : default:
2222 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
2223 : }
2224 : }
2225 2 : return NDR_ERR_SUCCESS;
2226 : }
2227 :
2228 0 : _PUBLIC_ void ndr_print_dfs_Info(struct ndr_print *ndr, const char *name, const union dfs_Info *r)
2229 : {
2230 0 : uint32_t level;
2231 0 : level = ndr_print_steal_switch_value(ndr, r);
2232 0 : ndr_print_union(ndr, name, level, "dfs_Info");
2233 0 : switch (level) {
2234 0 : case 0:
2235 0 : ndr_print_ptr(ndr, "info0", r->info0);
2236 0 : ndr->depth++;
2237 0 : if (r->info0) {
2238 0 : ndr_print_dfs_Info0(ndr, "info0", r->info0);
2239 : }
2240 0 : ndr->depth--;
2241 0 : break;
2242 :
2243 0 : case 1:
2244 0 : ndr_print_ptr(ndr, "info1", r->info1);
2245 0 : ndr->depth++;
2246 0 : if (r->info1) {
2247 0 : ndr_print_dfs_Info1(ndr, "info1", r->info1);
2248 : }
2249 0 : ndr->depth--;
2250 0 : break;
2251 :
2252 0 : case 2:
2253 0 : ndr_print_ptr(ndr, "info2", r->info2);
2254 0 : ndr->depth++;
2255 0 : if (r->info2) {
2256 0 : ndr_print_dfs_Info2(ndr, "info2", r->info2);
2257 : }
2258 0 : ndr->depth--;
2259 0 : break;
2260 :
2261 0 : case 3:
2262 0 : ndr_print_ptr(ndr, "info3", r->info3);
2263 0 : ndr->depth++;
2264 0 : if (r->info3) {
2265 0 : ndr_print_dfs_Info3(ndr, "info3", r->info3);
2266 : }
2267 0 : ndr->depth--;
2268 0 : break;
2269 :
2270 0 : case 4:
2271 0 : ndr_print_ptr(ndr, "info4", r->info4);
2272 0 : ndr->depth++;
2273 0 : if (r->info4) {
2274 0 : ndr_print_dfs_Info4(ndr, "info4", r->info4);
2275 : }
2276 0 : ndr->depth--;
2277 0 : break;
2278 :
2279 0 : case 5:
2280 0 : ndr_print_ptr(ndr, "info5", r->info5);
2281 0 : ndr->depth++;
2282 0 : if (r->info5) {
2283 0 : ndr_print_dfs_Info5(ndr, "info5", r->info5);
2284 : }
2285 0 : ndr->depth--;
2286 0 : break;
2287 :
2288 0 : case 6:
2289 0 : ndr_print_ptr(ndr, "info6", r->info6);
2290 0 : ndr->depth++;
2291 0 : if (r->info6) {
2292 0 : ndr_print_dfs_Info6(ndr, "info6", r->info6);
2293 : }
2294 0 : ndr->depth--;
2295 0 : break;
2296 :
2297 0 : case 7:
2298 0 : ndr_print_ptr(ndr, "info7", r->info7);
2299 0 : ndr->depth++;
2300 0 : if (r->info7) {
2301 0 : ndr_print_dfs_Info7(ndr, "info7", r->info7);
2302 : }
2303 0 : ndr->depth--;
2304 0 : break;
2305 :
2306 0 : case 100:
2307 0 : ndr_print_ptr(ndr, "info100", r->info100);
2308 0 : ndr->depth++;
2309 0 : if (r->info100) {
2310 0 : ndr_print_dfs_Info100(ndr, "info100", r->info100);
2311 : }
2312 0 : ndr->depth--;
2313 0 : break;
2314 :
2315 0 : case 101:
2316 0 : ndr_print_ptr(ndr, "info101", r->info101);
2317 0 : ndr->depth++;
2318 0 : if (r->info101) {
2319 0 : ndr_print_dfs_Info101(ndr, "info101", r->info101);
2320 : }
2321 0 : ndr->depth--;
2322 0 : break;
2323 :
2324 0 : case 102:
2325 0 : ndr_print_ptr(ndr, "info102", r->info102);
2326 0 : ndr->depth++;
2327 0 : if (r->info102) {
2328 0 : ndr_print_dfs_Info102(ndr, "info102", r->info102);
2329 : }
2330 0 : ndr->depth--;
2331 0 : break;
2332 :
2333 0 : case 103:
2334 0 : ndr_print_ptr(ndr, "info103", r->info103);
2335 0 : ndr->depth++;
2336 0 : if (r->info103) {
2337 0 : ndr_print_dfs_Info103(ndr, "info103", r->info103);
2338 : }
2339 0 : ndr->depth--;
2340 0 : break;
2341 :
2342 0 : case 104:
2343 0 : ndr_print_ptr(ndr, "info104", r->info104);
2344 0 : ndr->depth++;
2345 0 : if (r->info104) {
2346 0 : ndr_print_dfs_Info104(ndr, "info104", r->info104);
2347 : }
2348 0 : ndr->depth--;
2349 0 : break;
2350 :
2351 0 : case 105:
2352 0 : ndr_print_ptr(ndr, "info105", r->info105);
2353 0 : ndr->depth++;
2354 0 : if (r->info105) {
2355 0 : ndr_print_dfs_Info105(ndr, "info105", r->info105);
2356 : }
2357 0 : ndr->depth--;
2358 0 : break;
2359 :
2360 0 : case 106:
2361 0 : ndr_print_ptr(ndr, "info106", r->info106);
2362 0 : ndr->depth++;
2363 0 : if (r->info106) {
2364 0 : ndr_print_dfs_Info106(ndr, "info106", r->info106);
2365 : }
2366 0 : ndr->depth--;
2367 0 : break;
2368 :
2369 0 : default:
2370 0 : ndr_print_bad_level(ndr, name, level);
2371 : }
2372 0 : }
2373 :
2374 2 : static enum ndr_err_code ndr_push_dfs_EnumArray1(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_EnumArray1 *r)
2375 : {
2376 0 : uint32_t cntr_s_1;
2377 2 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2378 2 : if (ndr_flags & NDR_SCALARS) {
2379 2 : NDR_CHECK(ndr_push_align(ndr, 5));
2380 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2381 2 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->s));
2382 2 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2383 : }
2384 2 : if (ndr_flags & NDR_BUFFERS) {
2385 2 : if (r->s) {
2386 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2387 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2388 0 : NDR_CHECK(ndr_push_dfs_Info1(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2389 : }
2390 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2391 0 : NDR_CHECK(ndr_push_dfs_Info1(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2392 : }
2393 : }
2394 : }
2395 2 : return NDR_ERR_SUCCESS;
2396 : }
2397 :
2398 2 : static enum ndr_err_code ndr_pull_dfs_EnumArray1(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_EnumArray1 *r)
2399 : {
2400 0 : uint32_t _ptr_s;
2401 2 : uint32_t size_s_1 = 0;
2402 0 : uint32_t cntr_s_1;
2403 2 : TALLOC_CTX *_mem_save_s_0 = NULL;
2404 2 : TALLOC_CTX *_mem_save_s_1 = NULL;
2405 2 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2406 2 : if (ndr_flags & NDR_SCALARS) {
2407 2 : NDR_CHECK(ndr_pull_align(ndr, 5));
2408 2 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2409 2 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_s));
2410 2 : if (_ptr_s) {
2411 0 : NDR_PULL_ALLOC(ndr, r->s);
2412 : } else {
2413 2 : r->s = NULL;
2414 : }
2415 2 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2416 : }
2417 2 : if (ndr_flags & NDR_BUFFERS) {
2418 2 : if (r->s) {
2419 0 : _mem_save_s_0 = NDR_PULL_GET_MEM_CTX(ndr);
2420 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2421 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->s));
2422 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->s, &size_s_1));
2423 0 : NDR_PULL_ALLOC_N(ndr, r->s, size_s_1);
2424 0 : _mem_save_s_1 = NDR_PULL_GET_MEM_CTX(ndr);
2425 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2426 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2427 0 : NDR_CHECK(ndr_pull_dfs_Info1(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2428 : }
2429 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2430 0 : NDR_CHECK(ndr_pull_dfs_Info1(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2431 : }
2432 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_1, 0);
2433 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_0, 0);
2434 : }
2435 2 : if (r->s) {
2436 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->s, r->count));
2437 : }
2438 2 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2439 0 : }
2440 : }
2441 2 : return NDR_ERR_SUCCESS;
2442 : }
2443 :
2444 0 : _PUBLIC_ void ndr_print_dfs_EnumArray1(struct ndr_print *ndr, const char *name, const struct dfs_EnumArray1 *r)
2445 : {
2446 0 : uint32_t cntr_s_1;
2447 0 : ndr_print_struct(ndr, name, "dfs_EnumArray1");
2448 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2449 0 : ndr->depth++;
2450 0 : ndr_print_uint32(ndr, "count", r->count);
2451 0 : ndr_print_ptr(ndr, "s", r->s);
2452 0 : ndr->depth++;
2453 0 : if (r->s) {
2454 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "s", (uint32_t)(r->count));
2455 0 : ndr->depth++;
2456 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2457 0 : ndr_print_dfs_Info1(ndr, "s", &r->s[cntr_s_1]);
2458 : }
2459 0 : ndr->depth--;
2460 : }
2461 0 : ndr->depth--;
2462 0 : ndr->depth--;
2463 : }
2464 :
2465 0 : static enum ndr_err_code ndr_push_dfs_EnumArray2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_EnumArray2 *r)
2466 : {
2467 0 : uint32_t cntr_s_1;
2468 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2469 0 : if (ndr_flags & NDR_SCALARS) {
2470 0 : NDR_CHECK(ndr_push_align(ndr, 5));
2471 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2472 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->s));
2473 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2474 : }
2475 0 : if (ndr_flags & NDR_BUFFERS) {
2476 0 : if (r->s) {
2477 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2478 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2479 0 : NDR_CHECK(ndr_push_dfs_Info2(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2480 : }
2481 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2482 0 : NDR_CHECK(ndr_push_dfs_Info2(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2483 : }
2484 : }
2485 : }
2486 0 : return NDR_ERR_SUCCESS;
2487 : }
2488 :
2489 0 : static enum ndr_err_code ndr_pull_dfs_EnumArray2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_EnumArray2 *r)
2490 : {
2491 0 : uint32_t _ptr_s;
2492 0 : uint32_t size_s_1 = 0;
2493 0 : uint32_t cntr_s_1;
2494 0 : TALLOC_CTX *_mem_save_s_0 = NULL;
2495 0 : TALLOC_CTX *_mem_save_s_1 = NULL;
2496 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2497 0 : if (ndr_flags & NDR_SCALARS) {
2498 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
2499 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2500 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_s));
2501 0 : if (_ptr_s) {
2502 0 : NDR_PULL_ALLOC(ndr, r->s);
2503 : } else {
2504 0 : r->s = NULL;
2505 : }
2506 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2507 : }
2508 0 : if (ndr_flags & NDR_BUFFERS) {
2509 0 : if (r->s) {
2510 0 : _mem_save_s_0 = NDR_PULL_GET_MEM_CTX(ndr);
2511 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2512 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->s));
2513 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->s, &size_s_1));
2514 0 : NDR_PULL_ALLOC_N(ndr, r->s, size_s_1);
2515 0 : _mem_save_s_1 = NDR_PULL_GET_MEM_CTX(ndr);
2516 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2517 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2518 0 : NDR_CHECK(ndr_pull_dfs_Info2(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2519 : }
2520 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2521 0 : NDR_CHECK(ndr_pull_dfs_Info2(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2522 : }
2523 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_1, 0);
2524 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_0, 0);
2525 : }
2526 0 : if (r->s) {
2527 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->s, r->count));
2528 : }
2529 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2530 0 : }
2531 : }
2532 0 : return NDR_ERR_SUCCESS;
2533 : }
2534 :
2535 0 : _PUBLIC_ void ndr_print_dfs_EnumArray2(struct ndr_print *ndr, const char *name, const struct dfs_EnumArray2 *r)
2536 : {
2537 0 : uint32_t cntr_s_1;
2538 0 : ndr_print_struct(ndr, name, "dfs_EnumArray2");
2539 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2540 0 : ndr->depth++;
2541 0 : ndr_print_uint32(ndr, "count", r->count);
2542 0 : ndr_print_ptr(ndr, "s", r->s);
2543 0 : ndr->depth++;
2544 0 : if (r->s) {
2545 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "s", (uint32_t)(r->count));
2546 0 : ndr->depth++;
2547 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2548 0 : ndr_print_dfs_Info2(ndr, "s", &r->s[cntr_s_1]);
2549 : }
2550 0 : ndr->depth--;
2551 : }
2552 0 : ndr->depth--;
2553 0 : ndr->depth--;
2554 : }
2555 :
2556 0 : static enum ndr_err_code ndr_push_dfs_EnumArray3(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_EnumArray3 *r)
2557 : {
2558 0 : uint32_t cntr_s_1;
2559 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2560 0 : if (ndr_flags & NDR_SCALARS) {
2561 0 : NDR_CHECK(ndr_push_align(ndr, 5));
2562 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2563 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->s));
2564 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2565 : }
2566 0 : if (ndr_flags & NDR_BUFFERS) {
2567 0 : if (r->s) {
2568 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2569 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2570 0 : NDR_CHECK(ndr_push_dfs_Info3(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2571 : }
2572 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2573 0 : NDR_CHECK(ndr_push_dfs_Info3(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2574 : }
2575 : }
2576 : }
2577 0 : return NDR_ERR_SUCCESS;
2578 : }
2579 :
2580 0 : static enum ndr_err_code ndr_pull_dfs_EnumArray3(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_EnumArray3 *r)
2581 : {
2582 0 : uint32_t _ptr_s;
2583 0 : uint32_t size_s_1 = 0;
2584 0 : uint32_t cntr_s_1;
2585 0 : TALLOC_CTX *_mem_save_s_0 = NULL;
2586 0 : TALLOC_CTX *_mem_save_s_1 = NULL;
2587 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2588 0 : if (ndr_flags & NDR_SCALARS) {
2589 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
2590 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2591 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_s));
2592 0 : if (_ptr_s) {
2593 0 : NDR_PULL_ALLOC(ndr, r->s);
2594 : } else {
2595 0 : r->s = NULL;
2596 : }
2597 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2598 : }
2599 0 : if (ndr_flags & NDR_BUFFERS) {
2600 0 : if (r->s) {
2601 0 : _mem_save_s_0 = NDR_PULL_GET_MEM_CTX(ndr);
2602 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2603 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->s));
2604 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->s, &size_s_1));
2605 0 : NDR_PULL_ALLOC_N(ndr, r->s, size_s_1);
2606 0 : _mem_save_s_1 = NDR_PULL_GET_MEM_CTX(ndr);
2607 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2608 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2609 0 : NDR_CHECK(ndr_pull_dfs_Info3(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2610 : }
2611 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2612 0 : NDR_CHECK(ndr_pull_dfs_Info3(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2613 : }
2614 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_1, 0);
2615 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_0, 0);
2616 : }
2617 0 : if (r->s) {
2618 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->s, r->count));
2619 : }
2620 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2621 0 : }
2622 : }
2623 0 : return NDR_ERR_SUCCESS;
2624 : }
2625 :
2626 0 : _PUBLIC_ void ndr_print_dfs_EnumArray3(struct ndr_print *ndr, const char *name, const struct dfs_EnumArray3 *r)
2627 : {
2628 0 : uint32_t cntr_s_1;
2629 0 : ndr_print_struct(ndr, name, "dfs_EnumArray3");
2630 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2631 0 : ndr->depth++;
2632 0 : ndr_print_uint32(ndr, "count", r->count);
2633 0 : ndr_print_ptr(ndr, "s", r->s);
2634 0 : ndr->depth++;
2635 0 : if (r->s) {
2636 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "s", (uint32_t)(r->count));
2637 0 : ndr->depth++;
2638 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2639 0 : ndr_print_dfs_Info3(ndr, "s", &r->s[cntr_s_1]);
2640 : }
2641 0 : ndr->depth--;
2642 : }
2643 0 : ndr->depth--;
2644 0 : ndr->depth--;
2645 : }
2646 :
2647 0 : static enum ndr_err_code ndr_push_dfs_EnumArray4(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_EnumArray4 *r)
2648 : {
2649 0 : uint32_t cntr_s_1;
2650 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2651 0 : if (ndr_flags & NDR_SCALARS) {
2652 0 : NDR_CHECK(ndr_push_align(ndr, 5));
2653 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2654 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->s));
2655 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2656 : }
2657 0 : if (ndr_flags & NDR_BUFFERS) {
2658 0 : if (r->s) {
2659 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2660 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2661 0 : NDR_CHECK(ndr_push_dfs_Info4(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2662 : }
2663 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2664 0 : NDR_CHECK(ndr_push_dfs_Info4(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2665 : }
2666 : }
2667 : }
2668 0 : return NDR_ERR_SUCCESS;
2669 : }
2670 :
2671 0 : static enum ndr_err_code ndr_pull_dfs_EnumArray4(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_EnumArray4 *r)
2672 : {
2673 0 : uint32_t _ptr_s;
2674 0 : uint32_t size_s_1 = 0;
2675 0 : uint32_t cntr_s_1;
2676 0 : TALLOC_CTX *_mem_save_s_0 = NULL;
2677 0 : TALLOC_CTX *_mem_save_s_1 = NULL;
2678 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2679 0 : if (ndr_flags & NDR_SCALARS) {
2680 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
2681 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2682 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_s));
2683 0 : if (_ptr_s) {
2684 0 : NDR_PULL_ALLOC(ndr, r->s);
2685 : } else {
2686 0 : r->s = NULL;
2687 : }
2688 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2689 : }
2690 0 : if (ndr_flags & NDR_BUFFERS) {
2691 0 : if (r->s) {
2692 0 : _mem_save_s_0 = NDR_PULL_GET_MEM_CTX(ndr);
2693 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2694 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->s));
2695 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->s, &size_s_1));
2696 0 : NDR_PULL_ALLOC_N(ndr, r->s, size_s_1);
2697 0 : _mem_save_s_1 = NDR_PULL_GET_MEM_CTX(ndr);
2698 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2699 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2700 0 : NDR_CHECK(ndr_pull_dfs_Info4(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2701 : }
2702 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2703 0 : NDR_CHECK(ndr_pull_dfs_Info4(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2704 : }
2705 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_1, 0);
2706 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_0, 0);
2707 : }
2708 0 : if (r->s) {
2709 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->s, r->count));
2710 : }
2711 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2712 0 : }
2713 : }
2714 0 : return NDR_ERR_SUCCESS;
2715 : }
2716 :
2717 0 : _PUBLIC_ void ndr_print_dfs_EnumArray4(struct ndr_print *ndr, const char *name, const struct dfs_EnumArray4 *r)
2718 : {
2719 0 : uint32_t cntr_s_1;
2720 0 : ndr_print_struct(ndr, name, "dfs_EnumArray4");
2721 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2722 0 : ndr->depth++;
2723 0 : ndr_print_uint32(ndr, "count", r->count);
2724 0 : ndr_print_ptr(ndr, "s", r->s);
2725 0 : ndr->depth++;
2726 0 : if (r->s) {
2727 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "s", (uint32_t)(r->count));
2728 0 : ndr->depth++;
2729 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2730 0 : ndr_print_dfs_Info4(ndr, "s", &r->s[cntr_s_1]);
2731 : }
2732 0 : ndr->depth--;
2733 : }
2734 0 : ndr->depth--;
2735 0 : ndr->depth--;
2736 : }
2737 :
2738 0 : static enum ndr_err_code ndr_push_dfs_EnumArray5(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_EnumArray5 *r)
2739 : {
2740 0 : uint32_t cntr_s_1;
2741 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2742 0 : if (ndr_flags & NDR_SCALARS) {
2743 0 : NDR_CHECK(ndr_push_align(ndr, 5));
2744 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2745 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->s));
2746 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2747 : }
2748 0 : if (ndr_flags & NDR_BUFFERS) {
2749 0 : if (r->s) {
2750 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2751 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2752 0 : NDR_CHECK(ndr_push_dfs_Info5(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2753 : }
2754 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2755 0 : NDR_CHECK(ndr_push_dfs_Info5(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2756 : }
2757 : }
2758 : }
2759 0 : return NDR_ERR_SUCCESS;
2760 : }
2761 :
2762 0 : static enum ndr_err_code ndr_pull_dfs_EnumArray5(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_EnumArray5 *r)
2763 : {
2764 0 : uint32_t _ptr_s;
2765 0 : uint32_t size_s_1 = 0;
2766 0 : uint32_t cntr_s_1;
2767 0 : TALLOC_CTX *_mem_save_s_0 = NULL;
2768 0 : TALLOC_CTX *_mem_save_s_1 = NULL;
2769 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2770 0 : if (ndr_flags & NDR_SCALARS) {
2771 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
2772 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2773 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_s));
2774 0 : if (_ptr_s) {
2775 0 : NDR_PULL_ALLOC(ndr, r->s);
2776 : } else {
2777 0 : r->s = NULL;
2778 : }
2779 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2780 : }
2781 0 : if (ndr_flags & NDR_BUFFERS) {
2782 0 : if (r->s) {
2783 0 : _mem_save_s_0 = NDR_PULL_GET_MEM_CTX(ndr);
2784 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2785 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->s));
2786 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->s, &size_s_1));
2787 0 : NDR_PULL_ALLOC_N(ndr, r->s, size_s_1);
2788 0 : _mem_save_s_1 = NDR_PULL_GET_MEM_CTX(ndr);
2789 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2790 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2791 0 : NDR_CHECK(ndr_pull_dfs_Info5(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2792 : }
2793 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2794 0 : NDR_CHECK(ndr_pull_dfs_Info5(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2795 : }
2796 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_1, 0);
2797 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_0, 0);
2798 : }
2799 0 : if (r->s) {
2800 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->s, r->count));
2801 : }
2802 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2803 0 : }
2804 : }
2805 0 : return NDR_ERR_SUCCESS;
2806 : }
2807 :
2808 0 : _PUBLIC_ void ndr_print_dfs_EnumArray5(struct ndr_print *ndr, const char *name, const struct dfs_EnumArray5 *r)
2809 : {
2810 0 : uint32_t cntr_s_1;
2811 0 : ndr_print_struct(ndr, name, "dfs_EnumArray5");
2812 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2813 0 : ndr->depth++;
2814 0 : ndr_print_uint32(ndr, "count", r->count);
2815 0 : ndr_print_ptr(ndr, "s", r->s);
2816 0 : ndr->depth++;
2817 0 : if (r->s) {
2818 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "s", (uint32_t)(r->count));
2819 0 : ndr->depth++;
2820 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2821 0 : ndr_print_dfs_Info5(ndr, "s", &r->s[cntr_s_1]);
2822 : }
2823 0 : ndr->depth--;
2824 : }
2825 0 : ndr->depth--;
2826 0 : ndr->depth--;
2827 : }
2828 :
2829 0 : static enum ndr_err_code ndr_push_dfs_EnumArray6(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_EnumArray6 *r)
2830 : {
2831 0 : uint32_t cntr_s_1;
2832 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2833 0 : if (ndr_flags & NDR_SCALARS) {
2834 0 : NDR_CHECK(ndr_push_align(ndr, 5));
2835 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2836 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->s));
2837 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2838 : }
2839 0 : if (ndr_flags & NDR_BUFFERS) {
2840 0 : if (r->s) {
2841 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2842 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2843 0 : NDR_CHECK(ndr_push_dfs_Info6(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2844 : }
2845 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2846 0 : NDR_CHECK(ndr_push_dfs_Info6(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2847 : }
2848 : }
2849 : }
2850 0 : return NDR_ERR_SUCCESS;
2851 : }
2852 :
2853 0 : static enum ndr_err_code ndr_pull_dfs_EnumArray6(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_EnumArray6 *r)
2854 : {
2855 0 : uint32_t _ptr_s;
2856 0 : uint32_t size_s_1 = 0;
2857 0 : uint32_t cntr_s_1;
2858 0 : TALLOC_CTX *_mem_save_s_0 = NULL;
2859 0 : TALLOC_CTX *_mem_save_s_1 = NULL;
2860 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2861 0 : if (ndr_flags & NDR_SCALARS) {
2862 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
2863 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2864 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_s));
2865 0 : if (_ptr_s) {
2866 0 : NDR_PULL_ALLOC(ndr, r->s);
2867 : } else {
2868 0 : r->s = NULL;
2869 : }
2870 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2871 : }
2872 0 : if (ndr_flags & NDR_BUFFERS) {
2873 0 : if (r->s) {
2874 0 : _mem_save_s_0 = NDR_PULL_GET_MEM_CTX(ndr);
2875 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2876 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->s));
2877 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->s, &size_s_1));
2878 0 : NDR_PULL_ALLOC_N(ndr, r->s, size_s_1);
2879 0 : _mem_save_s_1 = NDR_PULL_GET_MEM_CTX(ndr);
2880 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2881 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2882 0 : NDR_CHECK(ndr_pull_dfs_Info6(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2883 : }
2884 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2885 0 : NDR_CHECK(ndr_pull_dfs_Info6(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2886 : }
2887 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_1, 0);
2888 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_0, 0);
2889 : }
2890 0 : if (r->s) {
2891 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->s, r->count));
2892 : }
2893 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2894 0 : }
2895 : }
2896 0 : return NDR_ERR_SUCCESS;
2897 : }
2898 :
2899 0 : _PUBLIC_ void ndr_print_dfs_EnumArray6(struct ndr_print *ndr, const char *name, const struct dfs_EnumArray6 *r)
2900 : {
2901 0 : uint32_t cntr_s_1;
2902 0 : ndr_print_struct(ndr, name, "dfs_EnumArray6");
2903 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2904 0 : ndr->depth++;
2905 0 : ndr_print_uint32(ndr, "count", r->count);
2906 0 : ndr_print_ptr(ndr, "s", r->s);
2907 0 : ndr->depth++;
2908 0 : if (r->s) {
2909 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "s", (uint32_t)(r->count));
2910 0 : ndr->depth++;
2911 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2912 0 : ndr_print_dfs_Info6(ndr, "s", &r->s[cntr_s_1]);
2913 : }
2914 0 : ndr->depth--;
2915 : }
2916 0 : ndr->depth--;
2917 0 : ndr->depth--;
2918 : }
2919 :
2920 0 : static enum ndr_err_code ndr_push_dfs_EnumArray200(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_EnumArray200 *r)
2921 : {
2922 0 : uint32_t cntr_s_1;
2923 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2924 0 : if (ndr_flags & NDR_SCALARS) {
2925 0 : NDR_CHECK(ndr_push_align(ndr, 5));
2926 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2927 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->s));
2928 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2929 : }
2930 0 : if (ndr_flags & NDR_BUFFERS) {
2931 0 : if (r->s) {
2932 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2933 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2934 0 : NDR_CHECK(ndr_push_dfs_Info200(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2935 : }
2936 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
2937 0 : NDR_CHECK(ndr_push_dfs_Info200(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2938 : }
2939 : }
2940 : }
2941 0 : return NDR_ERR_SUCCESS;
2942 : }
2943 :
2944 0 : static enum ndr_err_code ndr_pull_dfs_EnumArray200(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_EnumArray200 *r)
2945 : {
2946 0 : uint32_t _ptr_s;
2947 0 : uint32_t size_s_1 = 0;
2948 0 : uint32_t cntr_s_1;
2949 0 : TALLOC_CTX *_mem_save_s_0 = NULL;
2950 0 : TALLOC_CTX *_mem_save_s_1 = NULL;
2951 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2952 0 : if (ndr_flags & NDR_SCALARS) {
2953 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
2954 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2955 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_s));
2956 0 : if (_ptr_s) {
2957 0 : NDR_PULL_ALLOC(ndr, r->s);
2958 : } else {
2959 0 : r->s = NULL;
2960 : }
2961 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2962 : }
2963 0 : if (ndr_flags & NDR_BUFFERS) {
2964 0 : if (r->s) {
2965 0 : _mem_save_s_0 = NDR_PULL_GET_MEM_CTX(ndr);
2966 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2967 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->s));
2968 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->s, &size_s_1));
2969 0 : NDR_PULL_ALLOC_N(ndr, r->s, size_s_1);
2970 0 : _mem_save_s_1 = NDR_PULL_GET_MEM_CTX(ndr);
2971 0 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
2972 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2973 0 : NDR_CHECK(ndr_pull_dfs_Info200(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
2974 : }
2975 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2976 0 : NDR_CHECK(ndr_pull_dfs_Info200(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
2977 : }
2978 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_1, 0);
2979 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_0, 0);
2980 : }
2981 0 : if (r->s) {
2982 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->s, r->count));
2983 : }
2984 0 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
2985 0 : }
2986 : }
2987 0 : return NDR_ERR_SUCCESS;
2988 : }
2989 :
2990 0 : _PUBLIC_ void ndr_print_dfs_EnumArray200(struct ndr_print *ndr, const char *name, const struct dfs_EnumArray200 *r)
2991 : {
2992 0 : uint32_t cntr_s_1;
2993 0 : ndr_print_struct(ndr, name, "dfs_EnumArray200");
2994 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2995 0 : ndr->depth++;
2996 0 : ndr_print_uint32(ndr, "count", r->count);
2997 0 : ndr_print_ptr(ndr, "s", r->s);
2998 0 : ndr->depth++;
2999 0 : if (r->s) {
3000 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "s", (uint32_t)(r->count));
3001 0 : ndr->depth++;
3002 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
3003 0 : ndr_print_dfs_Info200(ndr, "s", &r->s[cntr_s_1]);
3004 : }
3005 0 : ndr->depth--;
3006 : }
3007 0 : ndr->depth--;
3008 0 : ndr->depth--;
3009 : }
3010 :
3011 0 : static enum ndr_err_code ndr_push_dfs_EnumArray300(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_EnumArray300 *r)
3012 : {
3013 0 : uint32_t cntr_s_1;
3014 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3015 0 : if (ndr_flags & NDR_SCALARS) {
3016 0 : NDR_CHECK(ndr_push_align(ndr, 5));
3017 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
3018 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->s));
3019 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3020 : }
3021 0 : if (ndr_flags & NDR_BUFFERS) {
3022 0 : if (r->s) {
3023 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
3024 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
3025 0 : NDR_CHECK(ndr_push_dfs_Info300(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
3026 : }
3027 0 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
3028 0 : NDR_CHECK(ndr_push_dfs_Info300(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
3029 : }
3030 : }
3031 : }
3032 0 : return NDR_ERR_SUCCESS;
3033 : }
3034 :
3035 4 : static enum ndr_err_code ndr_pull_dfs_EnumArray300(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_EnumArray300 *r)
3036 : {
3037 4 : uint32_t _ptr_s;
3038 4 : uint32_t size_s_1 = 0;
3039 4 : uint32_t cntr_s_1;
3040 4 : TALLOC_CTX *_mem_save_s_0 = NULL;
3041 4 : TALLOC_CTX *_mem_save_s_1 = NULL;
3042 4 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3043 4 : if (ndr_flags & NDR_SCALARS) {
3044 4 : NDR_CHECK(ndr_pull_align(ndr, 5));
3045 4 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
3046 4 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_s));
3047 4 : if (_ptr_s) {
3048 2 : NDR_PULL_ALLOC(ndr, r->s);
3049 : } else {
3050 2 : r->s = NULL;
3051 : }
3052 4 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3053 : }
3054 4 : if (ndr_flags & NDR_BUFFERS) {
3055 4 : if (r->s) {
3056 2 : _mem_save_s_0 = NDR_PULL_GET_MEM_CTX(ndr);
3057 2 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
3058 2 : NDR_CHECK(ndr_pull_array_size(ndr, &r->s));
3059 2 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->s, &size_s_1));
3060 2 : NDR_PULL_ALLOC_N(ndr, r->s, size_s_1);
3061 2 : _mem_save_s_1 = NDR_PULL_GET_MEM_CTX(ndr);
3062 2 : NDR_PULL_SET_MEM_CTX(ndr, r->s, 0);
3063 8 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
3064 6 : NDR_CHECK(ndr_pull_dfs_Info300(ndr, NDR_SCALARS, &r->s[cntr_s_1]));
3065 : }
3066 8 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
3067 6 : NDR_CHECK(ndr_pull_dfs_Info300(ndr, NDR_BUFFERS, &r->s[cntr_s_1]));
3068 : }
3069 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_1, 0);
3070 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_s_0, 0);
3071 : }
3072 4 : if (r->s) {
3073 2 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->s, r->count));
3074 : }
3075 10 : for (cntr_s_1 = 0; cntr_s_1 < (size_s_1); cntr_s_1++) {
3076 6 : }
3077 : }
3078 0 : return NDR_ERR_SUCCESS;
3079 : }
3080 :
3081 4 : _PUBLIC_ void ndr_print_dfs_EnumArray300(struct ndr_print *ndr, const char *name, const struct dfs_EnumArray300 *r)
3082 : {
3083 4 : uint32_t cntr_s_1;
3084 4 : ndr_print_struct(ndr, name, "dfs_EnumArray300");
3085 4 : if (r == NULL) { ndr_print_null(ndr); return; }
3086 4 : ndr->depth++;
3087 4 : ndr_print_uint32(ndr, "count", r->count);
3088 4 : ndr_print_ptr(ndr, "s", r->s);
3089 4 : ndr->depth++;
3090 4 : if (r->s) {
3091 2 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "s", (uint32_t)(r->count));
3092 2 : ndr->depth++;
3093 8 : for (cntr_s_1 = 0; cntr_s_1 < (r->count); cntr_s_1++) {
3094 6 : ndr_print_dfs_Info300(ndr, "s", &r->s[cntr_s_1]);
3095 : }
3096 2 : ndr->depth--;
3097 : }
3098 4 : ndr->depth--;
3099 4 : ndr->depth--;
3100 : }
3101 :
3102 4 : static enum ndr_err_code ndr_push_dfs_EnumInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union dfs_EnumInfo *r)
3103 : {
3104 0 : uint32_t level;
3105 4 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3106 4 : if (ndr_flags & NDR_SCALARS) {
3107 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
3108 2 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
3109 2 : NDR_CHECK(ndr_push_union_align(ndr, 5));
3110 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, level));
3111 2 : NDR_CHECK(ndr_push_union_align(ndr, 5));
3112 2 : switch (level) {
3113 2 : case 1: {
3114 2 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info1));
3115 2 : break; }
3116 :
3117 0 : case 2: {
3118 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info2));
3119 0 : break; }
3120 :
3121 0 : case 3: {
3122 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info3));
3123 0 : break; }
3124 :
3125 0 : case 4: {
3126 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info4));
3127 0 : break; }
3128 :
3129 0 : case 5: {
3130 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info5));
3131 0 : break; }
3132 :
3133 0 : case 6: {
3134 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info6));
3135 0 : break; }
3136 :
3137 0 : case 200: {
3138 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info200));
3139 0 : break; }
3140 :
3141 0 : case 300: {
3142 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->info300));
3143 0 : break; }
3144 :
3145 0 : default:
3146 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
3147 : }
3148 : }
3149 4 : if (ndr_flags & NDR_BUFFERS) {
3150 2 : if (!(ndr_flags & NDR_SCALARS)) {
3151 : /* We didn't get it above, and the token is not needed after this. */
3152 2 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
3153 : }
3154 2 : switch (level) {
3155 2 : case 1:
3156 2 : if (r->info1) {
3157 2 : NDR_CHECK(ndr_push_dfs_EnumArray1(ndr, NDR_SCALARS|NDR_BUFFERS, r->info1));
3158 : }
3159 2 : break;
3160 :
3161 0 : case 2:
3162 0 : if (r->info2) {
3163 0 : NDR_CHECK(ndr_push_dfs_EnumArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->info2));
3164 : }
3165 0 : break;
3166 :
3167 0 : case 3:
3168 0 : if (r->info3) {
3169 0 : NDR_CHECK(ndr_push_dfs_EnumArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->info3));
3170 : }
3171 0 : break;
3172 :
3173 0 : case 4:
3174 0 : if (r->info4) {
3175 0 : NDR_CHECK(ndr_push_dfs_EnumArray4(ndr, NDR_SCALARS|NDR_BUFFERS, r->info4));
3176 : }
3177 0 : break;
3178 :
3179 0 : case 5:
3180 0 : if (r->info5) {
3181 0 : NDR_CHECK(ndr_push_dfs_EnumArray5(ndr, NDR_SCALARS|NDR_BUFFERS, r->info5));
3182 : }
3183 0 : break;
3184 :
3185 0 : case 6:
3186 0 : if (r->info6) {
3187 0 : NDR_CHECK(ndr_push_dfs_EnumArray6(ndr, NDR_SCALARS|NDR_BUFFERS, r->info6));
3188 : }
3189 0 : break;
3190 :
3191 0 : case 200:
3192 0 : if (r->info200) {
3193 0 : NDR_CHECK(ndr_push_dfs_EnumArray200(ndr, NDR_SCALARS|NDR_BUFFERS, r->info200));
3194 : }
3195 0 : break;
3196 :
3197 0 : case 300:
3198 0 : if (r->info300) {
3199 0 : NDR_CHECK(ndr_push_dfs_EnumArray300(ndr, NDR_SCALARS|NDR_BUFFERS, r->info300));
3200 : }
3201 0 : break;
3202 :
3203 0 : default:
3204 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
3205 : }
3206 : }
3207 4 : return NDR_ERR_SUCCESS;
3208 : }
3209 :
3210 12 : static enum ndr_err_code ndr_pull_dfs_EnumInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union dfs_EnumInfo *r)
3211 : {
3212 8 : uint32_t level;
3213 8 : uint32_t _level;
3214 12 : TALLOC_CTX *_mem_save_info1_0 = NULL;
3215 8 : uint32_t _ptr_info1;
3216 12 : TALLOC_CTX *_mem_save_info2_0 = NULL;
3217 8 : uint32_t _ptr_info2;
3218 12 : TALLOC_CTX *_mem_save_info3_0 = NULL;
3219 8 : uint32_t _ptr_info3;
3220 12 : TALLOC_CTX *_mem_save_info4_0 = NULL;
3221 8 : uint32_t _ptr_info4;
3222 12 : TALLOC_CTX *_mem_save_info5_0 = NULL;
3223 8 : uint32_t _ptr_info5;
3224 12 : TALLOC_CTX *_mem_save_info6_0 = NULL;
3225 8 : uint32_t _ptr_info6;
3226 12 : TALLOC_CTX *_mem_save_info200_0 = NULL;
3227 8 : uint32_t _ptr_info200;
3228 12 : TALLOC_CTX *_mem_save_info300_0 = NULL;
3229 8 : uint32_t _ptr_info300;
3230 12 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3231 12 : if (ndr_flags & NDR_SCALARS) {
3232 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
3233 6 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
3234 6 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
3235 6 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &_level));
3236 6 : if (_level != level) {
3237 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" for r at %s", (uint32_t)_level, __location__);
3238 : }
3239 6 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
3240 6 : switch (level) {
3241 2 : case 1: {
3242 2 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info1));
3243 2 : if (_ptr_info1) {
3244 2 : NDR_PULL_ALLOC(ndr, r->info1);
3245 : } else {
3246 0 : r->info1 = NULL;
3247 : }
3248 2 : break; }
3249 :
3250 0 : case 2: {
3251 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info2));
3252 0 : if (_ptr_info2) {
3253 0 : NDR_PULL_ALLOC(ndr, r->info2);
3254 : } else {
3255 0 : r->info2 = NULL;
3256 : }
3257 0 : break; }
3258 :
3259 0 : case 3: {
3260 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info3));
3261 0 : if (_ptr_info3) {
3262 0 : NDR_PULL_ALLOC(ndr, r->info3);
3263 : } else {
3264 0 : r->info3 = NULL;
3265 : }
3266 0 : break; }
3267 :
3268 0 : case 4: {
3269 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info4));
3270 0 : if (_ptr_info4) {
3271 0 : NDR_PULL_ALLOC(ndr, r->info4);
3272 : } else {
3273 0 : r->info4 = NULL;
3274 : }
3275 0 : break; }
3276 :
3277 0 : case 5: {
3278 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info5));
3279 0 : if (_ptr_info5) {
3280 0 : NDR_PULL_ALLOC(ndr, r->info5);
3281 : } else {
3282 0 : r->info5 = NULL;
3283 : }
3284 0 : break; }
3285 :
3286 0 : case 6: {
3287 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info6));
3288 0 : if (_ptr_info6) {
3289 0 : NDR_PULL_ALLOC(ndr, r->info6);
3290 : } else {
3291 0 : r->info6 = NULL;
3292 : }
3293 0 : break; }
3294 :
3295 0 : case 200: {
3296 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info200));
3297 0 : if (_ptr_info200) {
3298 0 : NDR_PULL_ALLOC(ndr, r->info200);
3299 : } else {
3300 0 : r->info200 = NULL;
3301 : }
3302 0 : break; }
3303 :
3304 4 : case 300: {
3305 4 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info300));
3306 4 : if (_ptr_info300) {
3307 4 : NDR_PULL_ALLOC(ndr, r->info300);
3308 : } else {
3309 0 : r->info300 = NULL;
3310 : }
3311 0 : break; }
3312 :
3313 0 : default:
3314 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
3315 : }
3316 : }
3317 12 : if (ndr_flags & NDR_BUFFERS) {
3318 6 : if (!(ndr_flags & NDR_SCALARS)) {
3319 : /* We didn't get it above, and the token is not needed after this. */
3320 6 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
3321 : }
3322 6 : switch (level) {
3323 2 : case 1:
3324 2 : if (r->info1) {
3325 2 : _mem_save_info1_0 = NDR_PULL_GET_MEM_CTX(ndr);
3326 2 : NDR_PULL_SET_MEM_CTX(ndr, r->info1, 0);
3327 2 : NDR_CHECK(ndr_pull_dfs_EnumArray1(ndr, NDR_SCALARS|NDR_BUFFERS, r->info1));
3328 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info1_0, 0);
3329 : }
3330 2 : break;
3331 :
3332 0 : case 2:
3333 0 : if (r->info2) {
3334 0 : _mem_save_info2_0 = NDR_PULL_GET_MEM_CTX(ndr);
3335 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info2, 0);
3336 0 : NDR_CHECK(ndr_pull_dfs_EnumArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->info2));
3337 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info2_0, 0);
3338 : }
3339 0 : break;
3340 :
3341 0 : case 3:
3342 0 : if (r->info3) {
3343 0 : _mem_save_info3_0 = NDR_PULL_GET_MEM_CTX(ndr);
3344 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info3, 0);
3345 0 : NDR_CHECK(ndr_pull_dfs_EnumArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->info3));
3346 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info3_0, 0);
3347 : }
3348 0 : break;
3349 :
3350 0 : case 4:
3351 0 : if (r->info4) {
3352 0 : _mem_save_info4_0 = NDR_PULL_GET_MEM_CTX(ndr);
3353 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info4, 0);
3354 0 : NDR_CHECK(ndr_pull_dfs_EnumArray4(ndr, NDR_SCALARS|NDR_BUFFERS, r->info4));
3355 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info4_0, 0);
3356 : }
3357 0 : break;
3358 :
3359 0 : case 5:
3360 0 : if (r->info5) {
3361 0 : _mem_save_info5_0 = NDR_PULL_GET_MEM_CTX(ndr);
3362 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info5, 0);
3363 0 : NDR_CHECK(ndr_pull_dfs_EnumArray5(ndr, NDR_SCALARS|NDR_BUFFERS, r->info5));
3364 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info5_0, 0);
3365 : }
3366 0 : break;
3367 :
3368 0 : case 6:
3369 0 : if (r->info6) {
3370 0 : _mem_save_info6_0 = NDR_PULL_GET_MEM_CTX(ndr);
3371 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info6, 0);
3372 0 : NDR_CHECK(ndr_pull_dfs_EnumArray6(ndr, NDR_SCALARS|NDR_BUFFERS, r->info6));
3373 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info6_0, 0);
3374 : }
3375 0 : break;
3376 :
3377 0 : case 200:
3378 0 : if (r->info200) {
3379 0 : _mem_save_info200_0 = NDR_PULL_GET_MEM_CTX(ndr);
3380 0 : NDR_PULL_SET_MEM_CTX(ndr, r->info200, 0);
3381 0 : NDR_CHECK(ndr_pull_dfs_EnumArray200(ndr, NDR_SCALARS|NDR_BUFFERS, r->info200));
3382 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info200_0, 0);
3383 : }
3384 0 : break;
3385 :
3386 4 : case 300:
3387 4 : if (r->info300) {
3388 4 : _mem_save_info300_0 = NDR_PULL_GET_MEM_CTX(ndr);
3389 4 : NDR_PULL_SET_MEM_CTX(ndr, r->info300, 0);
3390 4 : NDR_CHECK(ndr_pull_dfs_EnumArray300(ndr, NDR_SCALARS|NDR_BUFFERS, r->info300));
3391 4 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info300_0, 0);
3392 : }
3393 0 : break;
3394 :
3395 0 : default:
3396 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
3397 : }
3398 : }
3399 4 : return NDR_ERR_SUCCESS;
3400 : }
3401 :
3402 4 : _PUBLIC_ void ndr_print_dfs_EnumInfo(struct ndr_print *ndr, const char *name, const union dfs_EnumInfo *r)
3403 : {
3404 4 : uint32_t level;
3405 4 : level = ndr_print_steal_switch_value(ndr, r);
3406 4 : ndr_print_union(ndr, name, level, "dfs_EnumInfo");
3407 4 : switch (level) {
3408 0 : case 1:
3409 0 : ndr_print_ptr(ndr, "info1", r->info1);
3410 0 : ndr->depth++;
3411 0 : if (r->info1) {
3412 0 : ndr_print_dfs_EnumArray1(ndr, "info1", r->info1);
3413 : }
3414 0 : ndr->depth--;
3415 0 : break;
3416 :
3417 0 : case 2:
3418 0 : ndr_print_ptr(ndr, "info2", r->info2);
3419 0 : ndr->depth++;
3420 0 : if (r->info2) {
3421 0 : ndr_print_dfs_EnumArray2(ndr, "info2", r->info2);
3422 : }
3423 0 : ndr->depth--;
3424 0 : break;
3425 :
3426 0 : case 3:
3427 0 : ndr_print_ptr(ndr, "info3", r->info3);
3428 0 : ndr->depth++;
3429 0 : if (r->info3) {
3430 0 : ndr_print_dfs_EnumArray3(ndr, "info3", r->info3);
3431 : }
3432 0 : ndr->depth--;
3433 0 : break;
3434 :
3435 0 : case 4:
3436 0 : ndr_print_ptr(ndr, "info4", r->info4);
3437 0 : ndr->depth++;
3438 0 : if (r->info4) {
3439 0 : ndr_print_dfs_EnumArray4(ndr, "info4", r->info4);
3440 : }
3441 0 : ndr->depth--;
3442 0 : break;
3443 :
3444 0 : case 5:
3445 0 : ndr_print_ptr(ndr, "info5", r->info5);
3446 0 : ndr->depth++;
3447 0 : if (r->info5) {
3448 0 : ndr_print_dfs_EnumArray5(ndr, "info5", r->info5);
3449 : }
3450 0 : ndr->depth--;
3451 0 : break;
3452 :
3453 0 : case 6:
3454 0 : ndr_print_ptr(ndr, "info6", r->info6);
3455 0 : ndr->depth++;
3456 0 : if (r->info6) {
3457 0 : ndr_print_dfs_EnumArray6(ndr, "info6", r->info6);
3458 : }
3459 0 : ndr->depth--;
3460 0 : break;
3461 :
3462 0 : case 200:
3463 0 : ndr_print_ptr(ndr, "info200", r->info200);
3464 0 : ndr->depth++;
3465 0 : if (r->info200) {
3466 0 : ndr_print_dfs_EnumArray200(ndr, "info200", r->info200);
3467 : }
3468 0 : ndr->depth--;
3469 0 : break;
3470 :
3471 4 : case 300:
3472 4 : ndr_print_ptr(ndr, "info300", r->info300);
3473 4 : ndr->depth++;
3474 4 : if (r->info300) {
3475 4 : ndr_print_dfs_EnumArray300(ndr, "info300", r->info300);
3476 : }
3477 4 : ndr->depth--;
3478 4 : break;
3479 :
3480 0 : default:
3481 0 : ndr_print_bad_level(ndr, name, level);
3482 : }
3483 4 : }
3484 :
3485 2 : static enum ndr_err_code ndr_push_dfs_EnumStruct(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_EnumStruct *r)
3486 : {
3487 2 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3488 2 : if (ndr_flags & NDR_SCALARS) {
3489 2 : NDR_CHECK(ndr_push_align(ndr, 5));
3490 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->level));
3491 2 : NDR_CHECK(ndr_push_set_switch_value(ndr, &r->e, r->level));
3492 2 : NDR_CHECK(ndr_push_dfs_EnumInfo(ndr, NDR_SCALARS, &r->e));
3493 2 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3494 : }
3495 2 : if (ndr_flags & NDR_BUFFERS) {
3496 2 : NDR_CHECK(ndr_push_set_switch_value(ndr, &r->e, r->level));
3497 2 : NDR_CHECK(ndr_push_dfs_EnumInfo(ndr, NDR_BUFFERS, &r->e));
3498 : }
3499 2 : return NDR_ERR_SUCCESS;
3500 : }
3501 :
3502 6 : static enum ndr_err_code ndr_pull_dfs_EnumStruct(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_EnumStruct *r)
3503 : {
3504 6 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3505 6 : if (ndr_flags & NDR_SCALARS) {
3506 6 : NDR_CHECK(ndr_pull_align(ndr, 5));
3507 6 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->level));
3508 6 : NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->e, r->level));
3509 6 : NDR_CHECK(ndr_pull_dfs_EnumInfo(ndr, NDR_SCALARS, &r->e));
3510 6 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3511 : }
3512 6 : if (ndr_flags & NDR_BUFFERS) {
3513 6 : NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->e, r->level));
3514 6 : NDR_CHECK(ndr_pull_dfs_EnumInfo(ndr, NDR_BUFFERS, &r->e));
3515 : }
3516 2 : return NDR_ERR_SUCCESS;
3517 : }
3518 :
3519 4 : _PUBLIC_ void ndr_print_dfs_EnumStruct(struct ndr_print *ndr, const char *name, const struct dfs_EnumStruct *r)
3520 : {
3521 4 : ndr_print_struct(ndr, name, "dfs_EnumStruct");
3522 4 : if (r == NULL) { ndr_print_null(ndr); return; }
3523 4 : ndr->depth++;
3524 4 : ndr_print_uint32(ndr, "level", r->level);
3525 4 : ndr_print_set_switch_value(ndr, &r->e, r->level);
3526 4 : ndr_print_dfs_EnumInfo(ndr, "e", &r->e);
3527 4 : ndr->depth--;
3528 : }
3529 :
3530 0 : static enum ndr_err_code ndr_push_dfs_UnknownStruct(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dfs_UnknownStruct *r)
3531 : {
3532 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3533 0 : if (ndr_flags & NDR_SCALARS) {
3534 0 : NDR_CHECK(ndr_push_align(ndr, 5));
3535 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unknown1));
3536 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->unknown2));
3537 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3538 : }
3539 0 : if (ndr_flags & NDR_BUFFERS) {
3540 0 : if (r->unknown2) {
3541 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->unknown2, CH_UTF16)));
3542 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3543 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->unknown2, CH_UTF16)));
3544 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->unknown2, ndr_charset_length(r->unknown2, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3545 : }
3546 : }
3547 0 : return NDR_ERR_SUCCESS;
3548 : }
3549 :
3550 0 : static enum ndr_err_code ndr_pull_dfs_UnknownStruct(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dfs_UnknownStruct *r)
3551 : {
3552 0 : uint32_t _ptr_unknown2;
3553 0 : uint32_t size_unknown2_1 = 0;
3554 0 : uint32_t length_unknown2_1 = 0;
3555 0 : TALLOC_CTX *_mem_save_unknown2_0 = NULL;
3556 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3557 0 : if (ndr_flags & NDR_SCALARS) {
3558 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
3559 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unknown1));
3560 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown2));
3561 0 : if (_ptr_unknown2) {
3562 0 : NDR_PULL_ALLOC(ndr, r->unknown2);
3563 : } else {
3564 0 : r->unknown2 = NULL;
3565 : }
3566 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3567 : }
3568 0 : if (ndr_flags & NDR_BUFFERS) {
3569 0 : if (r->unknown2) {
3570 0 : _mem_save_unknown2_0 = NDR_PULL_GET_MEM_CTX(ndr);
3571 0 : NDR_PULL_SET_MEM_CTX(ndr, r->unknown2, 0);
3572 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->unknown2));
3573 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->unknown2));
3574 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->unknown2, &size_unknown2_1));
3575 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->unknown2, &length_unknown2_1));
3576 0 : if (length_unknown2_1 > size_unknown2_1) {
3577 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_unknown2_1, length_unknown2_1);
3578 : }
3579 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_unknown2_1, sizeof(uint16_t)));
3580 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->unknown2, length_unknown2_1, sizeof(uint16_t), CH_UTF16));
3581 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown2_0, 0);
3582 : }
3583 : }
3584 0 : return NDR_ERR_SUCCESS;
3585 : }
3586 :
3587 0 : _PUBLIC_ void ndr_print_dfs_UnknownStruct(struct ndr_print *ndr, const char *name, const struct dfs_UnknownStruct *r)
3588 : {
3589 0 : ndr_print_struct(ndr, name, "dfs_UnknownStruct");
3590 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3591 0 : ndr->depth++;
3592 0 : ndr_print_uint32(ndr, "unknown1", r->unknown1);
3593 0 : ndr_print_ptr(ndr, "unknown2", r->unknown2);
3594 0 : ndr->depth++;
3595 0 : if (r->unknown2) {
3596 0 : ndr_print_string(ndr, "unknown2", r->unknown2);
3597 : }
3598 0 : ndr->depth--;
3599 0 : ndr->depth--;
3600 : }
3601 :
3602 4 : _PUBLIC_ enum ndr_err_code ndr_push_dfs_GetManagerVersion(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_GetManagerVersion *r)
3603 : {
3604 4 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3605 4 : if (flags & NDR_IN) {
3606 0 : }
3607 4 : if (flags & NDR_OUT) {
3608 2 : if (r->out.version == NULL) {
3609 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3610 : }
3611 2 : NDR_CHECK(ndr_push_dfs_ManagerVersion(ndr, NDR_SCALARS, *r->out.version));
3612 : }
3613 4 : return NDR_ERR_SUCCESS;
3614 : }
3615 :
3616 6 : _PUBLIC_ enum ndr_err_code ndr_pull_dfs_GetManagerVersion(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_GetManagerVersion *r)
3617 : {
3618 6 : TALLOC_CTX *_mem_save_version_0 = NULL;
3619 6 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3620 6 : if (flags & NDR_IN) {
3621 2 : NDR_ZERO_STRUCT(r->out);
3622 :
3623 2 : NDR_PULL_ALLOC(ndr, r->out.version);
3624 2 : NDR_ZERO_STRUCTP(r->out.version);
3625 : }
3626 6 : if (flags & NDR_OUT) {
3627 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3628 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3629 4 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3630 4 : NDR_PULL_ALLOC(ndr, r->out.version);
3631 : }
3632 4 : _mem_save_version_0 = NDR_PULL_GET_MEM_CTX(ndr);
3633 4 : NDR_PULL_SET_MEM_CTX(ndr, r->out.version, LIBNDR_FLAG_REF_ALLOC);
3634 6 : NDR_CHECK(ndr_pull_dfs_ManagerVersion(ndr, NDR_SCALARS, r->out.version));
3635 4 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_version_0, LIBNDR_FLAG_REF_ALLOC);
3636 : }
3637 4 : return NDR_ERR_SUCCESS;
3638 : }
3639 :
3640 2 : _PUBLIC_ void ndr_print_dfs_GetManagerVersion(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_GetManagerVersion *r)
3641 : {
3642 2 : ndr_print_struct(ndr, name, "dfs_GetManagerVersion");
3643 2 : if (r == NULL) { ndr_print_null(ndr); return; }
3644 2 : ndr->depth++;
3645 2 : if (flags & NDR_SET_VALUES) {
3646 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3647 : }
3648 2 : if (flags & NDR_IN) {
3649 0 : ndr_print_struct(ndr, "in", "dfs_GetManagerVersion");
3650 0 : ndr->depth++;
3651 0 : ndr->depth--;
3652 : }
3653 2 : if (flags & NDR_OUT) {
3654 2 : ndr_print_struct(ndr, "out", "dfs_GetManagerVersion");
3655 2 : ndr->depth++;
3656 2 : ndr_print_ptr(ndr, "version", r->out.version);
3657 2 : ndr->depth++;
3658 2 : ndr_print_dfs_ManagerVersion(ndr, "version", *r->out.version);
3659 2 : ndr->depth--;
3660 2 : ndr->depth--;
3661 : }
3662 2 : ndr->depth--;
3663 : }
3664 :
3665 0 : static enum ndr_err_code ndr_push_dfs_Add(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_Add *r)
3666 : {
3667 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3668 0 : if (flags & NDR_IN) {
3669 0 : if (r->in.path == NULL) {
3670 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3671 : }
3672 0 : if (r->in.server == NULL) {
3673 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3674 : }
3675 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.path, CH_UTF16)));
3676 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3677 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.path, CH_UTF16)));
3678 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.path, ndr_charset_length(r->in.path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3679 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.server, CH_UTF16)));
3680 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3681 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.server, CH_UTF16)));
3682 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.server, ndr_charset_length(r->in.server, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3683 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.share));
3684 0 : if (r->in.share) {
3685 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.share, CH_UTF16)));
3686 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3687 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.share, CH_UTF16)));
3688 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.share, ndr_charset_length(r->in.share, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3689 : }
3690 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.comment));
3691 0 : if (r->in.comment) {
3692 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.comment, CH_UTF16)));
3693 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3694 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.comment, CH_UTF16)));
3695 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.comment, ndr_charset_length(r->in.comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3696 : }
3697 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
3698 : }
3699 0 : if (flags & NDR_OUT) {
3700 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3701 : }
3702 0 : return NDR_ERR_SUCCESS;
3703 : }
3704 :
3705 0 : static enum ndr_err_code ndr_pull_dfs_Add(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_Add *r)
3706 : {
3707 0 : uint32_t size_path_1 = 0;
3708 0 : uint32_t length_path_1 = 0;
3709 0 : uint32_t size_server_1 = 0;
3710 0 : uint32_t length_server_1 = 0;
3711 0 : uint32_t _ptr_share;
3712 0 : uint32_t size_share_1 = 0;
3713 0 : uint32_t length_share_1 = 0;
3714 0 : uint32_t _ptr_comment;
3715 0 : uint32_t size_comment_1 = 0;
3716 0 : uint32_t length_comment_1 = 0;
3717 0 : TALLOC_CTX *_mem_save_share_0 = NULL;
3718 0 : TALLOC_CTX *_mem_save_comment_0 = NULL;
3719 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3720 0 : if (flags & NDR_IN) {
3721 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.path));
3722 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.path));
3723 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.path, &size_path_1));
3724 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.path, &length_path_1));
3725 0 : if (length_path_1 > size_path_1) {
3726 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_path_1, length_path_1);
3727 : }
3728 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_path_1, sizeof(uint16_t)));
3729 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.path, length_path_1, sizeof(uint16_t), CH_UTF16));
3730 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.server));
3731 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.server));
3732 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.server, &size_server_1));
3733 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.server, &length_server_1));
3734 0 : if (length_server_1 > size_server_1) {
3735 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_server_1, length_server_1);
3736 : }
3737 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_server_1, sizeof(uint16_t)));
3738 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.server, length_server_1, sizeof(uint16_t), CH_UTF16));
3739 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_share));
3740 0 : if (_ptr_share) {
3741 0 : NDR_PULL_ALLOC(ndr, r->in.share);
3742 : } else {
3743 0 : r->in.share = NULL;
3744 : }
3745 0 : if (r->in.share) {
3746 0 : _mem_save_share_0 = NDR_PULL_GET_MEM_CTX(ndr);
3747 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.share, 0);
3748 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.share));
3749 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.share));
3750 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.share, &size_share_1));
3751 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.share, &length_share_1));
3752 0 : if (length_share_1 > size_share_1) {
3753 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_share_1, length_share_1);
3754 : }
3755 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_share_1, sizeof(uint16_t)));
3756 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.share, length_share_1, sizeof(uint16_t), CH_UTF16));
3757 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_share_0, 0);
3758 : }
3759 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
3760 0 : if (_ptr_comment) {
3761 0 : NDR_PULL_ALLOC(ndr, r->in.comment);
3762 : } else {
3763 0 : r->in.comment = NULL;
3764 : }
3765 0 : if (r->in.comment) {
3766 0 : _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
3767 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.comment, 0);
3768 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.comment));
3769 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.comment));
3770 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.comment, &size_comment_1));
3771 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.comment, &length_comment_1));
3772 0 : if (length_comment_1 > size_comment_1) {
3773 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_1, length_comment_1);
3774 : }
3775 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_1, sizeof(uint16_t)));
3776 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.comment, length_comment_1, sizeof(uint16_t), CH_UTF16));
3777 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
3778 : }
3779 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
3780 : }
3781 0 : if (flags & NDR_OUT) {
3782 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3783 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3784 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3785 : }
3786 0 : return NDR_ERR_SUCCESS;
3787 : }
3788 :
3789 0 : _PUBLIC_ void ndr_print_dfs_Add(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_Add *r)
3790 : {
3791 0 : ndr_print_struct(ndr, name, "dfs_Add");
3792 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3793 0 : ndr->depth++;
3794 0 : if (flags & NDR_SET_VALUES) {
3795 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3796 : }
3797 0 : if (flags & NDR_IN) {
3798 0 : ndr_print_struct(ndr, "in", "dfs_Add");
3799 0 : ndr->depth++;
3800 0 : ndr_print_ptr(ndr, "path", r->in.path);
3801 0 : ndr->depth++;
3802 0 : ndr_print_string(ndr, "path", r->in.path);
3803 0 : ndr->depth--;
3804 0 : ndr_print_ptr(ndr, "server", r->in.server);
3805 0 : ndr->depth++;
3806 0 : ndr_print_string(ndr, "server", r->in.server);
3807 0 : ndr->depth--;
3808 0 : ndr_print_ptr(ndr, "share", r->in.share);
3809 0 : ndr->depth++;
3810 0 : if (r->in.share) {
3811 0 : ndr_print_string(ndr, "share", r->in.share);
3812 : }
3813 0 : ndr->depth--;
3814 0 : ndr_print_ptr(ndr, "comment", r->in.comment);
3815 0 : ndr->depth++;
3816 0 : if (r->in.comment) {
3817 0 : ndr_print_string(ndr, "comment", r->in.comment);
3818 : }
3819 0 : ndr->depth--;
3820 0 : ndr_print_uint32(ndr, "flags", r->in.flags);
3821 0 : ndr->depth--;
3822 : }
3823 0 : if (flags & NDR_OUT) {
3824 0 : ndr_print_struct(ndr, "out", "dfs_Add");
3825 0 : ndr->depth++;
3826 0 : ndr_print_WERROR(ndr, "result", r->out.result);
3827 0 : ndr->depth--;
3828 : }
3829 0 : ndr->depth--;
3830 : }
3831 :
3832 0 : static enum ndr_err_code ndr_push_dfs_Remove(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_Remove *r)
3833 : {
3834 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3835 0 : if (flags & NDR_IN) {
3836 0 : if (r->in.dfs_entry_path == NULL) {
3837 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3838 : }
3839 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_entry_path, CH_UTF16)));
3840 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3841 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_entry_path, CH_UTF16)));
3842 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.dfs_entry_path, ndr_charset_length(r->in.dfs_entry_path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3843 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.servername));
3844 0 : if (r->in.servername) {
3845 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
3846 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3847 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
3848 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3849 : }
3850 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.sharename));
3851 0 : if (r->in.sharename) {
3852 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.sharename, CH_UTF16)));
3853 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3854 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.sharename, CH_UTF16)));
3855 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.sharename, ndr_charset_length(r->in.sharename, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3856 : }
3857 : }
3858 0 : if (flags & NDR_OUT) {
3859 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3860 : }
3861 0 : return NDR_ERR_SUCCESS;
3862 : }
3863 :
3864 0 : static enum ndr_err_code ndr_pull_dfs_Remove(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_Remove *r)
3865 : {
3866 0 : uint32_t size_dfs_entry_path_1 = 0;
3867 0 : uint32_t length_dfs_entry_path_1 = 0;
3868 0 : uint32_t _ptr_servername;
3869 0 : uint32_t size_servername_1 = 0;
3870 0 : uint32_t length_servername_1 = 0;
3871 0 : uint32_t _ptr_sharename;
3872 0 : uint32_t size_sharename_1 = 0;
3873 0 : uint32_t length_sharename_1 = 0;
3874 0 : TALLOC_CTX *_mem_save_servername_0 = NULL;
3875 0 : TALLOC_CTX *_mem_save_sharename_0 = NULL;
3876 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3877 0 : if (flags & NDR_IN) {
3878 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.dfs_entry_path));
3879 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.dfs_entry_path));
3880 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.dfs_entry_path, &size_dfs_entry_path_1));
3881 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.dfs_entry_path, &length_dfs_entry_path_1));
3882 0 : if (length_dfs_entry_path_1 > size_dfs_entry_path_1) {
3883 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dfs_entry_path_1, length_dfs_entry_path_1);
3884 : }
3885 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dfs_entry_path_1, sizeof(uint16_t)));
3886 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.dfs_entry_path, length_dfs_entry_path_1, sizeof(uint16_t), CH_UTF16));
3887 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_servername));
3888 0 : if (_ptr_servername) {
3889 0 : NDR_PULL_ALLOC(ndr, r->in.servername);
3890 : } else {
3891 0 : r->in.servername = NULL;
3892 : }
3893 0 : if (r->in.servername) {
3894 0 : _mem_save_servername_0 = NDR_PULL_GET_MEM_CTX(ndr);
3895 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.servername, 0);
3896 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
3897 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
3898 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_1));
3899 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_1));
3900 0 : if (length_servername_1 > size_servername_1) {
3901 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_1, length_servername_1);
3902 : }
3903 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_1, sizeof(uint16_t)));
3904 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_1, sizeof(uint16_t), CH_UTF16));
3905 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_servername_0, 0);
3906 : }
3907 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sharename));
3908 0 : if (_ptr_sharename) {
3909 0 : NDR_PULL_ALLOC(ndr, r->in.sharename);
3910 : } else {
3911 0 : r->in.sharename = NULL;
3912 : }
3913 0 : if (r->in.sharename) {
3914 0 : _mem_save_sharename_0 = NDR_PULL_GET_MEM_CTX(ndr);
3915 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sharename, 0);
3916 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.sharename));
3917 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.sharename));
3918 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.sharename, &size_sharename_1));
3919 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.sharename, &length_sharename_1));
3920 0 : if (length_sharename_1 > size_sharename_1) {
3921 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_sharename_1, length_sharename_1);
3922 : }
3923 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_sharename_1, sizeof(uint16_t)));
3924 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.sharename, length_sharename_1, sizeof(uint16_t), CH_UTF16));
3925 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sharename_0, 0);
3926 : }
3927 : }
3928 0 : if (flags & NDR_OUT) {
3929 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3930 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3931 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3932 : }
3933 0 : return NDR_ERR_SUCCESS;
3934 : }
3935 :
3936 0 : _PUBLIC_ void ndr_print_dfs_Remove(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_Remove *r)
3937 : {
3938 0 : ndr_print_struct(ndr, name, "dfs_Remove");
3939 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3940 0 : ndr->depth++;
3941 0 : if (flags & NDR_SET_VALUES) {
3942 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3943 : }
3944 0 : if (flags & NDR_IN) {
3945 0 : ndr_print_struct(ndr, "in", "dfs_Remove");
3946 0 : ndr->depth++;
3947 0 : ndr_print_ptr(ndr, "dfs_entry_path", r->in.dfs_entry_path);
3948 0 : ndr->depth++;
3949 0 : ndr_print_string(ndr, "dfs_entry_path", r->in.dfs_entry_path);
3950 0 : ndr->depth--;
3951 0 : ndr_print_ptr(ndr, "servername", r->in.servername);
3952 0 : ndr->depth++;
3953 0 : if (r->in.servername) {
3954 0 : ndr_print_string(ndr, "servername", r->in.servername);
3955 : }
3956 0 : ndr->depth--;
3957 0 : ndr_print_ptr(ndr, "sharename", r->in.sharename);
3958 0 : ndr->depth++;
3959 0 : if (r->in.sharename) {
3960 0 : ndr_print_string(ndr, "sharename", r->in.sharename);
3961 : }
3962 0 : ndr->depth--;
3963 0 : ndr->depth--;
3964 : }
3965 0 : if (flags & NDR_OUT) {
3966 0 : ndr_print_struct(ndr, "out", "dfs_Remove");
3967 0 : ndr->depth++;
3968 0 : ndr_print_WERROR(ndr, "result", r->out.result);
3969 0 : ndr->depth--;
3970 : }
3971 0 : ndr->depth--;
3972 : }
3973 :
3974 0 : static enum ndr_err_code ndr_push_dfs_SetInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_SetInfo *r)
3975 : {
3976 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3977 0 : if (flags & NDR_IN) {
3978 0 : if (r->in.info == NULL) {
3979 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3980 : }
3981 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_entry_path, CH_UTF16)));
3982 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3983 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_entry_path, CH_UTF16)));
3984 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.dfs_entry_path, ndr_charset_length(r->in.dfs_entry_path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3985 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.servername));
3986 0 : if (r->in.servername) {
3987 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
3988 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3989 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
3990 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3991 : }
3992 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.sharename));
3993 0 : if (r->in.sharename) {
3994 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.sharename, CH_UTF16)));
3995 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3996 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.sharename, CH_UTF16)));
3997 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.sharename, ndr_charset_length(r->in.sharename, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3998 : }
3999 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.level));
4000 0 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.info, r->in.level));
4001 0 : NDR_CHECK(ndr_push_dfs_Info(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
4002 : }
4003 0 : if (flags & NDR_OUT) {
4004 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4005 : }
4006 0 : return NDR_ERR_SUCCESS;
4007 : }
4008 :
4009 0 : static enum ndr_err_code ndr_pull_dfs_SetInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_SetInfo *r)
4010 : {
4011 0 : uint32_t size_dfs_entry_path_0 = 0;
4012 0 : uint32_t length_dfs_entry_path_0 = 0;
4013 0 : uint32_t _ptr_servername;
4014 0 : uint32_t size_servername_1 = 0;
4015 0 : uint32_t length_servername_1 = 0;
4016 0 : uint32_t _ptr_sharename;
4017 0 : uint32_t size_sharename_1 = 0;
4018 0 : uint32_t length_sharename_1 = 0;
4019 0 : TALLOC_CTX *_mem_save_servername_0 = NULL;
4020 0 : TALLOC_CTX *_mem_save_sharename_0 = NULL;
4021 0 : TALLOC_CTX *_mem_save_info_0 = NULL;
4022 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4023 0 : if (flags & NDR_IN) {
4024 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.dfs_entry_path));
4025 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.dfs_entry_path));
4026 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.dfs_entry_path, &size_dfs_entry_path_0));
4027 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.dfs_entry_path, &length_dfs_entry_path_0));
4028 0 : if (length_dfs_entry_path_0 > size_dfs_entry_path_0) {
4029 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dfs_entry_path_0, length_dfs_entry_path_0);
4030 : }
4031 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dfs_entry_path_0, sizeof(uint16_t)));
4032 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.dfs_entry_path, length_dfs_entry_path_0, sizeof(uint16_t), CH_UTF16));
4033 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_servername));
4034 0 : if (_ptr_servername) {
4035 0 : NDR_PULL_ALLOC(ndr, r->in.servername);
4036 : } else {
4037 0 : r->in.servername = NULL;
4038 : }
4039 0 : if (r->in.servername) {
4040 0 : _mem_save_servername_0 = NDR_PULL_GET_MEM_CTX(ndr);
4041 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.servername, 0);
4042 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
4043 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
4044 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_1));
4045 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_1));
4046 0 : if (length_servername_1 > size_servername_1) {
4047 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_1, length_servername_1);
4048 : }
4049 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_1, sizeof(uint16_t)));
4050 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_1, sizeof(uint16_t), CH_UTF16));
4051 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_servername_0, 0);
4052 : }
4053 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sharename));
4054 0 : if (_ptr_sharename) {
4055 0 : NDR_PULL_ALLOC(ndr, r->in.sharename);
4056 : } else {
4057 0 : r->in.sharename = NULL;
4058 : }
4059 0 : if (r->in.sharename) {
4060 0 : _mem_save_sharename_0 = NDR_PULL_GET_MEM_CTX(ndr);
4061 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sharename, 0);
4062 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.sharename));
4063 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.sharename));
4064 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.sharename, &size_sharename_1));
4065 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.sharename, &length_sharename_1));
4066 0 : if (length_sharename_1 > size_sharename_1) {
4067 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_sharename_1, length_sharename_1);
4068 : }
4069 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_sharename_1, sizeof(uint16_t)));
4070 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.sharename, length_sharename_1, sizeof(uint16_t), CH_UTF16));
4071 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sharename_0, 0);
4072 : }
4073 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.level));
4074 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4075 0 : NDR_PULL_ALLOC(ndr, r->in.info);
4076 : }
4077 0 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
4078 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
4079 0 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.info, r->in.level));
4080 0 : NDR_CHECK(ndr_pull_dfs_Info(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
4081 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
4082 : }
4083 0 : if (flags & NDR_OUT) {
4084 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4085 : if (r->in.info == NULL) {
4086 : NDR_PULL_ALLOC(ndr, r->in.info);
4087 : NDR_ZERO_STRUCTP(r->in.info);
4088 : }
4089 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4090 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4091 : }
4092 0 : return NDR_ERR_SUCCESS;
4093 : }
4094 :
4095 0 : _PUBLIC_ void ndr_print_dfs_SetInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_SetInfo *r)
4096 : {
4097 0 : ndr_print_struct(ndr, name, "dfs_SetInfo");
4098 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4099 0 : ndr->depth++;
4100 0 : if (flags & NDR_SET_VALUES) {
4101 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4102 : }
4103 0 : if (flags & NDR_IN) {
4104 0 : ndr_print_struct(ndr, "in", "dfs_SetInfo");
4105 0 : ndr->depth++;
4106 0 : ndr_print_string(ndr, "dfs_entry_path", r->in.dfs_entry_path);
4107 0 : ndr_print_ptr(ndr, "servername", r->in.servername);
4108 0 : ndr->depth++;
4109 0 : if (r->in.servername) {
4110 0 : ndr_print_string(ndr, "servername", r->in.servername);
4111 : }
4112 0 : ndr->depth--;
4113 0 : ndr_print_ptr(ndr, "sharename", r->in.sharename);
4114 0 : ndr->depth++;
4115 0 : if (r->in.sharename) {
4116 0 : ndr_print_string(ndr, "sharename", r->in.sharename);
4117 : }
4118 0 : ndr->depth--;
4119 0 : ndr_print_uint32(ndr, "level", r->in.level);
4120 0 : ndr_print_ptr(ndr, "info", r->in.info);
4121 0 : ndr->depth++;
4122 0 : ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
4123 0 : ndr_print_dfs_Info(ndr, "info", r->in.info);
4124 0 : ndr->depth--;
4125 0 : ndr->depth--;
4126 : }
4127 0 : if (flags & NDR_OUT) {
4128 0 : ndr_print_struct(ndr, "out", "dfs_SetInfo");
4129 0 : ndr->depth++;
4130 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4131 0 : ndr->depth--;
4132 : }
4133 0 : ndr->depth--;
4134 : }
4135 :
4136 4 : static enum ndr_err_code ndr_push_dfs_GetInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_GetInfo *r)
4137 : {
4138 4 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4139 4 : if (flags & NDR_IN) {
4140 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_entry_path, CH_UTF16)));
4141 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4142 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_entry_path, CH_UTF16)));
4143 2 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.dfs_entry_path, ndr_charset_length(r->in.dfs_entry_path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4144 2 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.servername));
4145 2 : if (r->in.servername) {
4146 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
4147 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4148 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
4149 2 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4150 : }
4151 2 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.sharename));
4152 2 : if (r->in.sharename) {
4153 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.sharename, CH_UTF16)));
4154 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4155 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.sharename, CH_UTF16)));
4156 2 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.sharename, ndr_charset_length(r->in.sharename, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4157 : }
4158 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.level));
4159 : }
4160 4 : if (flags & NDR_OUT) {
4161 2 : if (r->out.info == NULL) {
4162 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4163 : }
4164 2 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->out.info, r->in.level));
4165 2 : NDR_CHECK(ndr_push_dfs_Info(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
4166 2 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4167 : }
4168 4 : return NDR_ERR_SUCCESS;
4169 : }
4170 :
4171 4 : static enum ndr_err_code ndr_pull_dfs_GetInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_GetInfo *r)
4172 : {
4173 4 : uint32_t size_dfs_entry_path_0 = 0;
4174 4 : uint32_t length_dfs_entry_path_0 = 0;
4175 0 : uint32_t _ptr_servername;
4176 4 : uint32_t size_servername_1 = 0;
4177 4 : uint32_t length_servername_1 = 0;
4178 0 : uint32_t _ptr_sharename;
4179 4 : uint32_t size_sharename_1 = 0;
4180 4 : uint32_t length_sharename_1 = 0;
4181 4 : TALLOC_CTX *_mem_save_servername_0 = NULL;
4182 4 : TALLOC_CTX *_mem_save_sharename_0 = NULL;
4183 4 : TALLOC_CTX *_mem_save_info_0 = NULL;
4184 4 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4185 4 : if (flags & NDR_IN) {
4186 2 : NDR_ZERO_STRUCT(r->out);
4187 :
4188 2 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.dfs_entry_path));
4189 2 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.dfs_entry_path));
4190 2 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.dfs_entry_path, &size_dfs_entry_path_0));
4191 2 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.dfs_entry_path, &length_dfs_entry_path_0));
4192 2 : if (length_dfs_entry_path_0 > size_dfs_entry_path_0) {
4193 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dfs_entry_path_0, length_dfs_entry_path_0);
4194 : }
4195 2 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dfs_entry_path_0, sizeof(uint16_t)));
4196 2 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.dfs_entry_path, length_dfs_entry_path_0, sizeof(uint16_t), CH_UTF16));
4197 2 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_servername));
4198 2 : if (_ptr_servername) {
4199 2 : NDR_PULL_ALLOC(ndr, r->in.servername);
4200 : } else {
4201 0 : r->in.servername = NULL;
4202 : }
4203 2 : if (r->in.servername) {
4204 2 : _mem_save_servername_0 = NDR_PULL_GET_MEM_CTX(ndr);
4205 2 : NDR_PULL_SET_MEM_CTX(ndr, r->in.servername, 0);
4206 2 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
4207 2 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
4208 2 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_1));
4209 2 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_1));
4210 2 : if (length_servername_1 > size_servername_1) {
4211 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_1, length_servername_1);
4212 : }
4213 2 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_1, sizeof(uint16_t)));
4214 2 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_1, sizeof(uint16_t), CH_UTF16));
4215 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_servername_0, 0);
4216 : }
4217 2 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sharename));
4218 2 : if (_ptr_sharename) {
4219 2 : NDR_PULL_ALLOC(ndr, r->in.sharename);
4220 : } else {
4221 0 : r->in.sharename = NULL;
4222 : }
4223 2 : if (r->in.sharename) {
4224 2 : _mem_save_sharename_0 = NDR_PULL_GET_MEM_CTX(ndr);
4225 2 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sharename, 0);
4226 2 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.sharename));
4227 2 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.sharename));
4228 2 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.sharename, &size_sharename_1));
4229 2 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.sharename, &length_sharename_1));
4230 2 : if (length_sharename_1 > size_sharename_1) {
4231 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_sharename_1, length_sharename_1);
4232 : }
4233 2 : NDR_CHECK(ndr_check_string_terminator(ndr, length_sharename_1, sizeof(uint16_t)));
4234 2 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.sharename, length_sharename_1, sizeof(uint16_t), CH_UTF16));
4235 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sharename_0, 0);
4236 : }
4237 2 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.level));
4238 2 : NDR_PULL_ALLOC(ndr, r->out.info);
4239 2 : NDR_ZERO_STRUCTP(r->out.info);
4240 : }
4241 4 : if (flags & NDR_OUT) {
4242 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4243 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4244 2 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4245 2 : NDR_PULL_ALLOC(ndr, r->out.info);
4246 : }
4247 2 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
4248 2 : NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
4249 2 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->out.info, r->in.level));
4250 2 : NDR_CHECK(ndr_pull_dfs_Info(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
4251 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
4252 2 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4253 : }
4254 4 : return NDR_ERR_SUCCESS;
4255 : }
4256 :
4257 0 : _PUBLIC_ void ndr_print_dfs_GetInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_GetInfo *r)
4258 : {
4259 0 : ndr_print_struct(ndr, name, "dfs_GetInfo");
4260 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4261 0 : ndr->depth++;
4262 0 : if (flags & NDR_SET_VALUES) {
4263 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4264 : }
4265 0 : if (flags & NDR_IN) {
4266 0 : ndr_print_struct(ndr, "in", "dfs_GetInfo");
4267 0 : ndr->depth++;
4268 0 : ndr_print_string(ndr, "dfs_entry_path", r->in.dfs_entry_path);
4269 0 : ndr_print_ptr(ndr, "servername", r->in.servername);
4270 0 : ndr->depth++;
4271 0 : if (r->in.servername) {
4272 0 : ndr_print_string(ndr, "servername", r->in.servername);
4273 : }
4274 0 : ndr->depth--;
4275 0 : ndr_print_ptr(ndr, "sharename", r->in.sharename);
4276 0 : ndr->depth++;
4277 0 : if (r->in.sharename) {
4278 0 : ndr_print_string(ndr, "sharename", r->in.sharename);
4279 : }
4280 0 : ndr->depth--;
4281 0 : ndr_print_uint32(ndr, "level", r->in.level);
4282 0 : ndr->depth--;
4283 : }
4284 0 : if (flags & NDR_OUT) {
4285 0 : ndr_print_struct(ndr, "out", "dfs_GetInfo");
4286 0 : ndr->depth++;
4287 0 : ndr_print_ptr(ndr, "info", r->out.info);
4288 0 : ndr->depth++;
4289 0 : ndr_print_set_switch_value(ndr, r->out.info, r->in.level);
4290 0 : ndr_print_dfs_Info(ndr, "info", r->out.info);
4291 0 : ndr->depth--;
4292 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4293 0 : ndr->depth--;
4294 : }
4295 0 : ndr->depth--;
4296 : }
4297 :
4298 0 : static enum ndr_err_code ndr_push_dfs_Enum(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_Enum *r)
4299 : {
4300 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4301 0 : if (flags & NDR_IN) {
4302 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.level));
4303 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.bufsize));
4304 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.info));
4305 0 : if (r->in.info) {
4306 0 : NDR_CHECK(ndr_push_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
4307 : }
4308 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.total));
4309 0 : if (r->in.total) {
4310 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.total));
4311 : }
4312 : }
4313 0 : if (flags & NDR_OUT) {
4314 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.info));
4315 0 : if (r->out.info) {
4316 0 : NDR_CHECK(ndr_push_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
4317 : }
4318 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.total));
4319 0 : if (r->out.total) {
4320 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.total));
4321 : }
4322 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4323 : }
4324 0 : return NDR_ERR_SUCCESS;
4325 : }
4326 :
4327 0 : static enum ndr_err_code ndr_pull_dfs_Enum(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_Enum *r)
4328 : {
4329 0 : uint32_t _ptr_info;
4330 0 : uint32_t _ptr_total;
4331 0 : TALLOC_CTX *_mem_save_info_0 = NULL;
4332 0 : TALLOC_CTX *_mem_save_total_0 = NULL;
4333 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4334 0 : if (flags & NDR_IN) {
4335 0 : NDR_ZERO_STRUCT(r->out);
4336 :
4337 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.level));
4338 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.bufsize));
4339 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
4340 0 : if (_ptr_info) {
4341 0 : NDR_PULL_ALLOC(ndr, r->in.info);
4342 : } else {
4343 0 : r->in.info = NULL;
4344 : }
4345 0 : if (r->in.info) {
4346 0 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
4347 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, 0);
4348 0 : NDR_CHECK(ndr_pull_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
4349 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
4350 : }
4351 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_total));
4352 0 : if (_ptr_total) {
4353 0 : NDR_PULL_ALLOC(ndr, r->in.total);
4354 : } else {
4355 0 : r->in.total = NULL;
4356 : }
4357 0 : if (r->in.total) {
4358 0 : _mem_save_total_0 = NDR_PULL_GET_MEM_CTX(ndr);
4359 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.total, 0);
4360 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.total));
4361 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_total_0, 0);
4362 : }
4363 : }
4364 0 : if (flags & NDR_OUT) {
4365 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4366 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4367 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
4368 0 : if (_ptr_info) {
4369 0 : NDR_PULL_ALLOC(ndr, r->out.info);
4370 : } else {
4371 0 : r->out.info = NULL;
4372 : }
4373 0 : if (r->out.info) {
4374 0 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
4375 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.info, 0);
4376 0 : NDR_CHECK(ndr_pull_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
4377 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
4378 : }
4379 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_total));
4380 0 : if (_ptr_total) {
4381 0 : NDR_PULL_ALLOC(ndr, r->out.total);
4382 : } else {
4383 0 : r->out.total = NULL;
4384 : }
4385 0 : if (r->out.total) {
4386 0 : _mem_save_total_0 = NDR_PULL_GET_MEM_CTX(ndr);
4387 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.total, 0);
4388 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.total));
4389 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_total_0, 0);
4390 : }
4391 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4392 : }
4393 0 : return NDR_ERR_SUCCESS;
4394 : }
4395 :
4396 0 : _PUBLIC_ void ndr_print_dfs_Enum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_Enum *r)
4397 : {
4398 0 : ndr_print_struct(ndr, name, "dfs_Enum");
4399 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4400 0 : ndr->depth++;
4401 0 : if (flags & NDR_SET_VALUES) {
4402 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4403 : }
4404 0 : if (flags & NDR_IN) {
4405 0 : ndr_print_struct(ndr, "in", "dfs_Enum");
4406 0 : ndr->depth++;
4407 0 : ndr_print_uint32(ndr, "level", r->in.level);
4408 0 : ndr_print_uint32(ndr, "bufsize", r->in.bufsize);
4409 0 : ndr_print_ptr(ndr, "info", r->in.info);
4410 0 : ndr->depth++;
4411 0 : if (r->in.info) {
4412 0 : ndr_print_dfs_EnumStruct(ndr, "info", r->in.info);
4413 : }
4414 0 : ndr->depth--;
4415 0 : ndr_print_ptr(ndr, "total", r->in.total);
4416 0 : ndr->depth++;
4417 0 : if (r->in.total) {
4418 0 : ndr_print_uint32(ndr, "total", *r->in.total);
4419 : }
4420 0 : ndr->depth--;
4421 0 : ndr->depth--;
4422 : }
4423 0 : if (flags & NDR_OUT) {
4424 0 : ndr_print_struct(ndr, "out", "dfs_Enum");
4425 0 : ndr->depth++;
4426 0 : ndr_print_ptr(ndr, "info", r->out.info);
4427 0 : ndr->depth++;
4428 0 : if (r->out.info) {
4429 0 : ndr_print_dfs_EnumStruct(ndr, "info", r->out.info);
4430 : }
4431 0 : ndr->depth--;
4432 0 : ndr_print_ptr(ndr, "total", r->out.total);
4433 0 : ndr->depth++;
4434 0 : if (r->out.total) {
4435 0 : ndr_print_uint32(ndr, "total", *r->out.total);
4436 : }
4437 0 : ndr->depth--;
4438 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4439 0 : ndr->depth--;
4440 : }
4441 0 : ndr->depth--;
4442 : }
4443 :
4444 0 : static enum ndr_err_code ndr_push_dfs_Rename(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_Rename *r)
4445 : {
4446 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4447 0 : if (flags & NDR_IN) {
4448 0 : }
4449 0 : if (flags & NDR_OUT) {
4450 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4451 : }
4452 0 : return NDR_ERR_SUCCESS;
4453 : }
4454 :
4455 0 : static enum ndr_err_code ndr_pull_dfs_Rename(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_Rename *r)
4456 : {
4457 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4458 0 : if (flags & NDR_IN) {
4459 0 : }
4460 0 : if (flags & NDR_OUT) {
4461 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4462 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4463 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4464 : }
4465 0 : return NDR_ERR_SUCCESS;
4466 : }
4467 :
4468 0 : _PUBLIC_ void ndr_print_dfs_Rename(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_Rename *r)
4469 : {
4470 0 : ndr_print_struct(ndr, name, "dfs_Rename");
4471 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4472 0 : ndr->depth++;
4473 0 : if (flags & NDR_SET_VALUES) {
4474 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4475 : }
4476 0 : if (flags & NDR_IN) {
4477 0 : ndr_print_struct(ndr, "in", "dfs_Rename");
4478 0 : ndr->depth++;
4479 0 : ndr->depth--;
4480 : }
4481 0 : if (flags & NDR_OUT) {
4482 0 : ndr_print_struct(ndr, "out", "dfs_Rename");
4483 0 : ndr->depth++;
4484 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4485 0 : ndr->depth--;
4486 : }
4487 0 : ndr->depth--;
4488 : }
4489 :
4490 0 : static enum ndr_err_code ndr_push_dfs_Move(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_Move *r)
4491 : {
4492 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4493 0 : if (flags & NDR_IN) {
4494 0 : }
4495 0 : if (flags & NDR_OUT) {
4496 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4497 : }
4498 0 : return NDR_ERR_SUCCESS;
4499 : }
4500 :
4501 0 : static enum ndr_err_code ndr_pull_dfs_Move(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_Move *r)
4502 : {
4503 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4504 0 : if (flags & NDR_IN) {
4505 0 : }
4506 0 : if (flags & NDR_OUT) {
4507 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4508 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4509 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4510 : }
4511 0 : return NDR_ERR_SUCCESS;
4512 : }
4513 :
4514 0 : _PUBLIC_ void ndr_print_dfs_Move(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_Move *r)
4515 : {
4516 0 : ndr_print_struct(ndr, name, "dfs_Move");
4517 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4518 0 : ndr->depth++;
4519 0 : if (flags & NDR_SET_VALUES) {
4520 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4521 : }
4522 0 : if (flags & NDR_IN) {
4523 0 : ndr_print_struct(ndr, "in", "dfs_Move");
4524 0 : ndr->depth++;
4525 0 : ndr->depth--;
4526 : }
4527 0 : if (flags & NDR_OUT) {
4528 0 : ndr_print_struct(ndr, "out", "dfs_Move");
4529 0 : ndr->depth++;
4530 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4531 0 : ndr->depth--;
4532 : }
4533 0 : ndr->depth--;
4534 : }
4535 :
4536 0 : static enum ndr_err_code ndr_push_dfs_ManagerGetConfigInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_ManagerGetConfigInfo *r)
4537 : {
4538 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4539 0 : if (flags & NDR_IN) {
4540 0 : }
4541 0 : if (flags & NDR_OUT) {
4542 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4543 : }
4544 0 : return NDR_ERR_SUCCESS;
4545 : }
4546 :
4547 0 : static enum ndr_err_code ndr_pull_dfs_ManagerGetConfigInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_ManagerGetConfigInfo *r)
4548 : {
4549 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4550 0 : if (flags & NDR_IN) {
4551 0 : }
4552 0 : if (flags & NDR_OUT) {
4553 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4554 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4555 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4556 : }
4557 0 : return NDR_ERR_SUCCESS;
4558 : }
4559 :
4560 0 : _PUBLIC_ void ndr_print_dfs_ManagerGetConfigInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_ManagerGetConfigInfo *r)
4561 : {
4562 0 : ndr_print_struct(ndr, name, "dfs_ManagerGetConfigInfo");
4563 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4564 0 : ndr->depth++;
4565 0 : if (flags & NDR_SET_VALUES) {
4566 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4567 : }
4568 0 : if (flags & NDR_IN) {
4569 0 : ndr_print_struct(ndr, "in", "dfs_ManagerGetConfigInfo");
4570 0 : ndr->depth++;
4571 0 : ndr->depth--;
4572 : }
4573 0 : if (flags & NDR_OUT) {
4574 0 : ndr_print_struct(ndr, "out", "dfs_ManagerGetConfigInfo");
4575 0 : ndr->depth++;
4576 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4577 0 : ndr->depth--;
4578 : }
4579 0 : ndr->depth--;
4580 : }
4581 :
4582 0 : static enum ndr_err_code ndr_push_dfs_ManagerSendSiteInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_ManagerSendSiteInfo *r)
4583 : {
4584 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4585 0 : if (flags & NDR_IN) {
4586 0 : }
4587 0 : if (flags & NDR_OUT) {
4588 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4589 : }
4590 0 : return NDR_ERR_SUCCESS;
4591 : }
4592 :
4593 0 : static enum ndr_err_code ndr_pull_dfs_ManagerSendSiteInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_ManagerSendSiteInfo *r)
4594 : {
4595 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4596 0 : if (flags & NDR_IN) {
4597 0 : }
4598 0 : if (flags & NDR_OUT) {
4599 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4600 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4601 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4602 : }
4603 0 : return NDR_ERR_SUCCESS;
4604 : }
4605 :
4606 0 : _PUBLIC_ void ndr_print_dfs_ManagerSendSiteInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_ManagerSendSiteInfo *r)
4607 : {
4608 0 : ndr_print_struct(ndr, name, "dfs_ManagerSendSiteInfo");
4609 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4610 0 : ndr->depth++;
4611 0 : if (flags & NDR_SET_VALUES) {
4612 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4613 : }
4614 0 : if (flags & NDR_IN) {
4615 0 : ndr_print_struct(ndr, "in", "dfs_ManagerSendSiteInfo");
4616 0 : ndr->depth++;
4617 0 : ndr->depth--;
4618 : }
4619 0 : if (flags & NDR_OUT) {
4620 0 : ndr_print_struct(ndr, "out", "dfs_ManagerSendSiteInfo");
4621 0 : ndr->depth++;
4622 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4623 0 : ndr->depth--;
4624 : }
4625 0 : ndr->depth--;
4626 : }
4627 :
4628 0 : static enum ndr_err_code ndr_push_dfs_AddFtRoot(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_AddFtRoot *r)
4629 : {
4630 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4631 0 : if (flags & NDR_IN) {
4632 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
4633 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4634 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
4635 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4636 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dns_servername, CH_UTF16)));
4637 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4638 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dns_servername, CH_UTF16)));
4639 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.dns_servername, ndr_charset_length(r->in.dns_servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4640 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfsname, CH_UTF16)));
4641 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4642 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfsname, CH_UTF16)));
4643 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.dfsname, ndr_charset_length(r->in.dfsname, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4644 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
4645 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4646 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
4647 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.rootshare, ndr_charset_length(r->in.rootshare, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4648 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.comment, CH_UTF16)));
4649 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4650 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.comment, CH_UTF16)));
4651 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.comment, ndr_charset_length(r->in.comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4652 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_config_dn, CH_UTF16)));
4653 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4654 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_config_dn, CH_UTF16)));
4655 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.dfs_config_dn, ndr_charset_length(r->in.dfs_config_dn, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4656 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.unknown1));
4657 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
4658 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.unknown2));
4659 0 : if (r->in.unknown2) {
4660 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.unknown2));
4661 0 : if (*r->in.unknown2) {
4662 0 : NDR_CHECK(ndr_push_dfs_UnknownStruct(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.unknown2));
4663 : }
4664 : }
4665 : }
4666 0 : if (flags & NDR_OUT) {
4667 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.unknown2));
4668 0 : if (r->out.unknown2) {
4669 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.unknown2));
4670 0 : if (*r->out.unknown2) {
4671 0 : NDR_CHECK(ndr_push_dfs_UnknownStruct(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.unknown2));
4672 : }
4673 : }
4674 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4675 : }
4676 0 : return NDR_ERR_SUCCESS;
4677 : }
4678 :
4679 0 : static enum ndr_err_code ndr_pull_dfs_AddFtRoot(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_AddFtRoot *r)
4680 : {
4681 0 : uint32_t size_servername_0 = 0;
4682 0 : uint32_t length_servername_0 = 0;
4683 0 : uint32_t size_dns_servername_0 = 0;
4684 0 : uint32_t length_dns_servername_0 = 0;
4685 0 : uint32_t size_dfsname_0 = 0;
4686 0 : uint32_t length_dfsname_0 = 0;
4687 0 : uint32_t size_rootshare_0 = 0;
4688 0 : uint32_t length_rootshare_0 = 0;
4689 0 : uint32_t size_comment_0 = 0;
4690 0 : uint32_t length_comment_0 = 0;
4691 0 : uint32_t size_dfs_config_dn_0 = 0;
4692 0 : uint32_t length_dfs_config_dn_0 = 0;
4693 0 : uint32_t _ptr_unknown2;
4694 0 : TALLOC_CTX *_mem_save_unknown2_0 = NULL;
4695 0 : TALLOC_CTX *_mem_save_unknown2_1 = NULL;
4696 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4697 0 : if (flags & NDR_IN) {
4698 0 : NDR_ZERO_STRUCT(r->out);
4699 :
4700 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
4701 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
4702 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_0));
4703 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_0));
4704 0 : if (length_servername_0 > size_servername_0) {
4705 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_0, length_servername_0);
4706 : }
4707 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_0, sizeof(uint16_t)));
4708 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_0, sizeof(uint16_t), CH_UTF16));
4709 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.dns_servername));
4710 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.dns_servername));
4711 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.dns_servername, &size_dns_servername_0));
4712 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.dns_servername, &length_dns_servername_0));
4713 0 : if (length_dns_servername_0 > size_dns_servername_0) {
4714 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dns_servername_0, length_dns_servername_0);
4715 : }
4716 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dns_servername_0, sizeof(uint16_t)));
4717 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.dns_servername, length_dns_servername_0, sizeof(uint16_t), CH_UTF16));
4718 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.dfsname));
4719 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.dfsname));
4720 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.dfsname, &size_dfsname_0));
4721 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.dfsname, &length_dfsname_0));
4722 0 : if (length_dfsname_0 > size_dfsname_0) {
4723 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dfsname_0, length_dfsname_0);
4724 : }
4725 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dfsname_0, sizeof(uint16_t)));
4726 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.dfsname, length_dfsname_0, sizeof(uint16_t), CH_UTF16));
4727 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.rootshare));
4728 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.rootshare));
4729 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.rootshare, &size_rootshare_0));
4730 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.rootshare, &length_rootshare_0));
4731 0 : if (length_rootshare_0 > size_rootshare_0) {
4732 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_rootshare_0, length_rootshare_0);
4733 : }
4734 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_rootshare_0, sizeof(uint16_t)));
4735 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.rootshare, length_rootshare_0, sizeof(uint16_t), CH_UTF16));
4736 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.comment));
4737 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.comment));
4738 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.comment, &size_comment_0));
4739 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.comment, &length_comment_0));
4740 0 : if (length_comment_0 > size_comment_0) {
4741 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_0, length_comment_0);
4742 : }
4743 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_0, sizeof(uint16_t)));
4744 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.comment, length_comment_0, sizeof(uint16_t), CH_UTF16));
4745 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.dfs_config_dn));
4746 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.dfs_config_dn));
4747 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.dfs_config_dn, &size_dfs_config_dn_0));
4748 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.dfs_config_dn, &length_dfs_config_dn_0));
4749 0 : if (length_dfs_config_dn_0 > size_dfs_config_dn_0) {
4750 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dfs_config_dn_0, length_dfs_config_dn_0);
4751 : }
4752 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dfs_config_dn_0, sizeof(uint16_t)));
4753 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.dfs_config_dn, length_dfs_config_dn_0, sizeof(uint16_t), CH_UTF16));
4754 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.unknown1));
4755 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
4756 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown2));
4757 0 : if (_ptr_unknown2) {
4758 0 : NDR_PULL_ALLOC(ndr, r->in.unknown2);
4759 : } else {
4760 0 : r->in.unknown2 = NULL;
4761 : }
4762 0 : if (r->in.unknown2) {
4763 0 : _mem_save_unknown2_0 = NDR_PULL_GET_MEM_CTX(ndr);
4764 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.unknown2, 0);
4765 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown2));
4766 0 : if (_ptr_unknown2) {
4767 0 : NDR_PULL_ALLOC(ndr, *r->in.unknown2);
4768 : } else {
4769 0 : *r->in.unknown2 = NULL;
4770 : }
4771 0 : if (*r->in.unknown2) {
4772 0 : _mem_save_unknown2_1 = NDR_PULL_GET_MEM_CTX(ndr);
4773 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->in.unknown2, 0);
4774 0 : NDR_CHECK(ndr_pull_dfs_UnknownStruct(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.unknown2));
4775 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown2_1, 0);
4776 : }
4777 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown2_0, 0);
4778 : }
4779 : }
4780 0 : if (flags & NDR_OUT) {
4781 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4782 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4783 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown2));
4784 0 : if (_ptr_unknown2) {
4785 0 : NDR_PULL_ALLOC(ndr, r->out.unknown2);
4786 : } else {
4787 0 : r->out.unknown2 = NULL;
4788 : }
4789 0 : if (r->out.unknown2) {
4790 0 : _mem_save_unknown2_0 = NDR_PULL_GET_MEM_CTX(ndr);
4791 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.unknown2, 0);
4792 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown2));
4793 0 : if (_ptr_unknown2) {
4794 0 : NDR_PULL_ALLOC(ndr, *r->out.unknown2);
4795 : } else {
4796 0 : *r->out.unknown2 = NULL;
4797 : }
4798 0 : if (*r->out.unknown2) {
4799 0 : _mem_save_unknown2_1 = NDR_PULL_GET_MEM_CTX(ndr);
4800 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.unknown2, 0);
4801 0 : NDR_CHECK(ndr_pull_dfs_UnknownStruct(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.unknown2));
4802 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown2_1, 0);
4803 : }
4804 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown2_0, 0);
4805 : }
4806 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4807 : }
4808 0 : return NDR_ERR_SUCCESS;
4809 : }
4810 :
4811 0 : _PUBLIC_ void ndr_print_dfs_AddFtRoot(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_AddFtRoot *r)
4812 : {
4813 0 : ndr_print_struct(ndr, name, "dfs_AddFtRoot");
4814 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4815 0 : ndr->depth++;
4816 0 : if (flags & NDR_SET_VALUES) {
4817 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4818 : }
4819 0 : if (flags & NDR_IN) {
4820 0 : ndr_print_struct(ndr, "in", "dfs_AddFtRoot");
4821 0 : ndr->depth++;
4822 0 : ndr_print_string(ndr, "servername", r->in.servername);
4823 0 : ndr_print_string(ndr, "dns_servername", r->in.dns_servername);
4824 0 : ndr_print_string(ndr, "dfsname", r->in.dfsname);
4825 0 : ndr_print_string(ndr, "rootshare", r->in.rootshare);
4826 0 : ndr_print_string(ndr, "comment", r->in.comment);
4827 0 : ndr_print_string(ndr, "dfs_config_dn", r->in.dfs_config_dn);
4828 0 : ndr_print_uint8(ndr, "unknown1", r->in.unknown1);
4829 0 : ndr_print_uint32(ndr, "flags", r->in.flags);
4830 0 : ndr_print_ptr(ndr, "unknown2", r->in.unknown2);
4831 0 : ndr->depth++;
4832 0 : if (r->in.unknown2) {
4833 0 : ndr_print_ptr(ndr, "unknown2", *r->in.unknown2);
4834 0 : ndr->depth++;
4835 0 : if (*r->in.unknown2) {
4836 0 : ndr_print_dfs_UnknownStruct(ndr, "unknown2", *r->in.unknown2);
4837 : }
4838 0 : ndr->depth--;
4839 : }
4840 0 : ndr->depth--;
4841 0 : ndr->depth--;
4842 : }
4843 0 : if (flags & NDR_OUT) {
4844 0 : ndr_print_struct(ndr, "out", "dfs_AddFtRoot");
4845 0 : ndr->depth++;
4846 0 : ndr_print_ptr(ndr, "unknown2", r->out.unknown2);
4847 0 : ndr->depth++;
4848 0 : if (r->out.unknown2) {
4849 0 : ndr_print_ptr(ndr, "unknown2", *r->out.unknown2);
4850 0 : ndr->depth++;
4851 0 : if (*r->out.unknown2) {
4852 0 : ndr_print_dfs_UnknownStruct(ndr, "unknown2", *r->out.unknown2);
4853 : }
4854 0 : ndr->depth--;
4855 : }
4856 0 : ndr->depth--;
4857 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4858 0 : ndr->depth--;
4859 : }
4860 0 : ndr->depth--;
4861 : }
4862 :
4863 0 : static enum ndr_err_code ndr_push_dfs_RemoveFtRoot(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_RemoveFtRoot *r)
4864 : {
4865 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4866 0 : if (flags & NDR_IN) {
4867 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
4868 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4869 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
4870 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4871 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dns_servername, CH_UTF16)));
4872 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4873 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dns_servername, CH_UTF16)));
4874 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.dns_servername, ndr_charset_length(r->in.dns_servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4875 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfsname, CH_UTF16)));
4876 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4877 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfsname, CH_UTF16)));
4878 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.dfsname, ndr_charset_length(r->in.dfsname, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4879 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
4880 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4881 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
4882 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.rootshare, ndr_charset_length(r->in.rootshare, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4883 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
4884 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.unknown));
4885 0 : if (r->in.unknown) {
4886 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.unknown));
4887 0 : if (*r->in.unknown) {
4888 0 : NDR_CHECK(ndr_push_dfs_UnknownStruct(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.unknown));
4889 : }
4890 : }
4891 : }
4892 0 : if (flags & NDR_OUT) {
4893 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.unknown));
4894 0 : if (r->out.unknown) {
4895 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.unknown));
4896 0 : if (*r->out.unknown) {
4897 0 : NDR_CHECK(ndr_push_dfs_UnknownStruct(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.unknown));
4898 : }
4899 : }
4900 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4901 : }
4902 0 : return NDR_ERR_SUCCESS;
4903 : }
4904 :
4905 0 : static enum ndr_err_code ndr_pull_dfs_RemoveFtRoot(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_RemoveFtRoot *r)
4906 : {
4907 0 : uint32_t size_servername_0 = 0;
4908 0 : uint32_t length_servername_0 = 0;
4909 0 : uint32_t size_dns_servername_0 = 0;
4910 0 : uint32_t length_dns_servername_0 = 0;
4911 0 : uint32_t size_dfsname_0 = 0;
4912 0 : uint32_t length_dfsname_0 = 0;
4913 0 : uint32_t size_rootshare_0 = 0;
4914 0 : uint32_t length_rootshare_0 = 0;
4915 0 : uint32_t _ptr_unknown;
4916 0 : TALLOC_CTX *_mem_save_unknown_0 = NULL;
4917 0 : TALLOC_CTX *_mem_save_unknown_1 = NULL;
4918 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4919 0 : if (flags & NDR_IN) {
4920 0 : NDR_ZERO_STRUCT(r->out);
4921 :
4922 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
4923 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
4924 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_0));
4925 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_0));
4926 0 : if (length_servername_0 > size_servername_0) {
4927 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_0, length_servername_0);
4928 : }
4929 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_0, sizeof(uint16_t)));
4930 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_0, sizeof(uint16_t), CH_UTF16));
4931 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.dns_servername));
4932 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.dns_servername));
4933 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.dns_servername, &size_dns_servername_0));
4934 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.dns_servername, &length_dns_servername_0));
4935 0 : if (length_dns_servername_0 > size_dns_servername_0) {
4936 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dns_servername_0, length_dns_servername_0);
4937 : }
4938 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dns_servername_0, sizeof(uint16_t)));
4939 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.dns_servername, length_dns_servername_0, sizeof(uint16_t), CH_UTF16));
4940 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.dfsname));
4941 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.dfsname));
4942 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.dfsname, &size_dfsname_0));
4943 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.dfsname, &length_dfsname_0));
4944 0 : if (length_dfsname_0 > size_dfsname_0) {
4945 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dfsname_0, length_dfsname_0);
4946 : }
4947 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dfsname_0, sizeof(uint16_t)));
4948 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.dfsname, length_dfsname_0, sizeof(uint16_t), CH_UTF16));
4949 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.rootshare));
4950 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.rootshare));
4951 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.rootshare, &size_rootshare_0));
4952 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.rootshare, &length_rootshare_0));
4953 0 : if (length_rootshare_0 > size_rootshare_0) {
4954 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_rootshare_0, length_rootshare_0);
4955 : }
4956 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_rootshare_0, sizeof(uint16_t)));
4957 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.rootshare, length_rootshare_0, sizeof(uint16_t), CH_UTF16));
4958 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
4959 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown));
4960 0 : if (_ptr_unknown) {
4961 0 : NDR_PULL_ALLOC(ndr, r->in.unknown);
4962 : } else {
4963 0 : r->in.unknown = NULL;
4964 : }
4965 0 : if (r->in.unknown) {
4966 0 : _mem_save_unknown_0 = NDR_PULL_GET_MEM_CTX(ndr);
4967 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.unknown, 0);
4968 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown));
4969 0 : if (_ptr_unknown) {
4970 0 : NDR_PULL_ALLOC(ndr, *r->in.unknown);
4971 : } else {
4972 0 : *r->in.unknown = NULL;
4973 : }
4974 0 : if (*r->in.unknown) {
4975 0 : _mem_save_unknown_1 = NDR_PULL_GET_MEM_CTX(ndr);
4976 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->in.unknown, 0);
4977 0 : NDR_CHECK(ndr_pull_dfs_UnknownStruct(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.unknown));
4978 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown_1, 0);
4979 : }
4980 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown_0, 0);
4981 : }
4982 : }
4983 0 : if (flags & NDR_OUT) {
4984 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4985 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4986 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown));
4987 0 : if (_ptr_unknown) {
4988 0 : NDR_PULL_ALLOC(ndr, r->out.unknown);
4989 : } else {
4990 0 : r->out.unknown = NULL;
4991 : }
4992 0 : if (r->out.unknown) {
4993 0 : _mem_save_unknown_0 = NDR_PULL_GET_MEM_CTX(ndr);
4994 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.unknown, 0);
4995 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown));
4996 0 : if (_ptr_unknown) {
4997 0 : NDR_PULL_ALLOC(ndr, *r->out.unknown);
4998 : } else {
4999 0 : *r->out.unknown = NULL;
5000 : }
5001 0 : if (*r->out.unknown) {
5002 0 : _mem_save_unknown_1 = NDR_PULL_GET_MEM_CTX(ndr);
5003 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.unknown, 0);
5004 0 : NDR_CHECK(ndr_pull_dfs_UnknownStruct(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.unknown));
5005 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown_1, 0);
5006 : }
5007 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown_0, 0);
5008 : }
5009 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5010 : }
5011 0 : return NDR_ERR_SUCCESS;
5012 : }
5013 :
5014 0 : _PUBLIC_ void ndr_print_dfs_RemoveFtRoot(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_RemoveFtRoot *r)
5015 : {
5016 0 : ndr_print_struct(ndr, name, "dfs_RemoveFtRoot");
5017 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5018 0 : ndr->depth++;
5019 0 : if (flags & NDR_SET_VALUES) {
5020 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5021 : }
5022 0 : if (flags & NDR_IN) {
5023 0 : ndr_print_struct(ndr, "in", "dfs_RemoveFtRoot");
5024 0 : ndr->depth++;
5025 0 : ndr_print_string(ndr, "servername", r->in.servername);
5026 0 : ndr_print_string(ndr, "dns_servername", r->in.dns_servername);
5027 0 : ndr_print_string(ndr, "dfsname", r->in.dfsname);
5028 0 : ndr_print_string(ndr, "rootshare", r->in.rootshare);
5029 0 : ndr_print_uint32(ndr, "flags", r->in.flags);
5030 0 : ndr_print_ptr(ndr, "unknown", r->in.unknown);
5031 0 : ndr->depth++;
5032 0 : if (r->in.unknown) {
5033 0 : ndr_print_ptr(ndr, "unknown", *r->in.unknown);
5034 0 : ndr->depth++;
5035 0 : if (*r->in.unknown) {
5036 0 : ndr_print_dfs_UnknownStruct(ndr, "unknown", *r->in.unknown);
5037 : }
5038 0 : ndr->depth--;
5039 : }
5040 0 : ndr->depth--;
5041 0 : ndr->depth--;
5042 : }
5043 0 : if (flags & NDR_OUT) {
5044 0 : ndr_print_struct(ndr, "out", "dfs_RemoveFtRoot");
5045 0 : ndr->depth++;
5046 0 : ndr_print_ptr(ndr, "unknown", r->out.unknown);
5047 0 : ndr->depth++;
5048 0 : if (r->out.unknown) {
5049 0 : ndr_print_ptr(ndr, "unknown", *r->out.unknown);
5050 0 : ndr->depth++;
5051 0 : if (*r->out.unknown) {
5052 0 : ndr_print_dfs_UnknownStruct(ndr, "unknown", *r->out.unknown);
5053 : }
5054 0 : ndr->depth--;
5055 : }
5056 0 : ndr->depth--;
5057 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5058 0 : ndr->depth--;
5059 : }
5060 0 : ndr->depth--;
5061 : }
5062 :
5063 0 : static enum ndr_err_code ndr_push_dfs_AddStdRoot(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_AddStdRoot *r)
5064 : {
5065 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5066 0 : if (flags & NDR_IN) {
5067 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5068 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5069 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5070 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5071 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
5072 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5073 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
5074 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.rootshare, ndr_charset_length(r->in.rootshare, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5075 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.comment, CH_UTF16)));
5076 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5077 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.comment, CH_UTF16)));
5078 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.comment, ndr_charset_length(r->in.comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5079 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
5080 : }
5081 0 : if (flags & NDR_OUT) {
5082 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5083 : }
5084 0 : return NDR_ERR_SUCCESS;
5085 : }
5086 :
5087 0 : static enum ndr_err_code ndr_pull_dfs_AddStdRoot(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_AddStdRoot *r)
5088 : {
5089 0 : uint32_t size_servername_0 = 0;
5090 0 : uint32_t length_servername_0 = 0;
5091 0 : uint32_t size_rootshare_0 = 0;
5092 0 : uint32_t length_rootshare_0 = 0;
5093 0 : uint32_t size_comment_0 = 0;
5094 0 : uint32_t length_comment_0 = 0;
5095 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5096 0 : if (flags & NDR_IN) {
5097 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
5098 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
5099 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_0));
5100 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_0));
5101 0 : if (length_servername_0 > size_servername_0) {
5102 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_0, length_servername_0);
5103 : }
5104 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_0, sizeof(uint16_t)));
5105 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_0, sizeof(uint16_t), CH_UTF16));
5106 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.rootshare));
5107 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.rootshare));
5108 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.rootshare, &size_rootshare_0));
5109 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.rootshare, &length_rootshare_0));
5110 0 : if (length_rootshare_0 > size_rootshare_0) {
5111 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_rootshare_0, length_rootshare_0);
5112 : }
5113 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_rootshare_0, sizeof(uint16_t)));
5114 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.rootshare, length_rootshare_0, sizeof(uint16_t), CH_UTF16));
5115 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.comment));
5116 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.comment));
5117 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.comment, &size_comment_0));
5118 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.comment, &length_comment_0));
5119 0 : if (length_comment_0 > size_comment_0) {
5120 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_0, length_comment_0);
5121 : }
5122 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_0, sizeof(uint16_t)));
5123 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.comment, length_comment_0, sizeof(uint16_t), CH_UTF16));
5124 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
5125 : }
5126 0 : if (flags & NDR_OUT) {
5127 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5128 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5129 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5130 : }
5131 0 : return NDR_ERR_SUCCESS;
5132 : }
5133 :
5134 0 : _PUBLIC_ void ndr_print_dfs_AddStdRoot(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_AddStdRoot *r)
5135 : {
5136 0 : ndr_print_struct(ndr, name, "dfs_AddStdRoot");
5137 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5138 0 : ndr->depth++;
5139 0 : if (flags & NDR_SET_VALUES) {
5140 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5141 : }
5142 0 : if (flags & NDR_IN) {
5143 0 : ndr_print_struct(ndr, "in", "dfs_AddStdRoot");
5144 0 : ndr->depth++;
5145 0 : ndr_print_string(ndr, "servername", r->in.servername);
5146 0 : ndr_print_string(ndr, "rootshare", r->in.rootshare);
5147 0 : ndr_print_string(ndr, "comment", r->in.comment);
5148 0 : ndr_print_uint32(ndr, "flags", r->in.flags);
5149 0 : ndr->depth--;
5150 : }
5151 0 : if (flags & NDR_OUT) {
5152 0 : ndr_print_struct(ndr, "out", "dfs_AddStdRoot");
5153 0 : ndr->depth++;
5154 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5155 0 : ndr->depth--;
5156 : }
5157 0 : ndr->depth--;
5158 : }
5159 :
5160 0 : static enum ndr_err_code ndr_push_dfs_RemoveStdRoot(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_RemoveStdRoot *r)
5161 : {
5162 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5163 0 : if (flags & NDR_IN) {
5164 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5165 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5166 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5167 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5168 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
5169 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5170 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
5171 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.rootshare, ndr_charset_length(r->in.rootshare, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5172 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
5173 : }
5174 0 : if (flags & NDR_OUT) {
5175 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5176 : }
5177 0 : return NDR_ERR_SUCCESS;
5178 : }
5179 :
5180 0 : static enum ndr_err_code ndr_pull_dfs_RemoveStdRoot(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_RemoveStdRoot *r)
5181 : {
5182 0 : uint32_t size_servername_0 = 0;
5183 0 : uint32_t length_servername_0 = 0;
5184 0 : uint32_t size_rootshare_0 = 0;
5185 0 : uint32_t length_rootshare_0 = 0;
5186 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5187 0 : if (flags & NDR_IN) {
5188 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
5189 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
5190 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_0));
5191 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_0));
5192 0 : if (length_servername_0 > size_servername_0) {
5193 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_0, length_servername_0);
5194 : }
5195 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_0, sizeof(uint16_t)));
5196 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_0, sizeof(uint16_t), CH_UTF16));
5197 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.rootshare));
5198 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.rootshare));
5199 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.rootshare, &size_rootshare_0));
5200 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.rootshare, &length_rootshare_0));
5201 0 : if (length_rootshare_0 > size_rootshare_0) {
5202 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_rootshare_0, length_rootshare_0);
5203 : }
5204 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_rootshare_0, sizeof(uint16_t)));
5205 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.rootshare, length_rootshare_0, sizeof(uint16_t), CH_UTF16));
5206 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
5207 : }
5208 0 : if (flags & NDR_OUT) {
5209 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5210 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5211 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5212 : }
5213 0 : return NDR_ERR_SUCCESS;
5214 : }
5215 :
5216 0 : _PUBLIC_ void ndr_print_dfs_RemoveStdRoot(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_RemoveStdRoot *r)
5217 : {
5218 0 : ndr_print_struct(ndr, name, "dfs_RemoveStdRoot");
5219 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5220 0 : ndr->depth++;
5221 0 : if (flags & NDR_SET_VALUES) {
5222 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5223 : }
5224 0 : if (flags & NDR_IN) {
5225 0 : ndr_print_struct(ndr, "in", "dfs_RemoveStdRoot");
5226 0 : ndr->depth++;
5227 0 : ndr_print_string(ndr, "servername", r->in.servername);
5228 0 : ndr_print_string(ndr, "rootshare", r->in.rootshare);
5229 0 : ndr_print_uint32(ndr, "flags", r->in.flags);
5230 0 : ndr->depth--;
5231 : }
5232 0 : if (flags & NDR_OUT) {
5233 0 : ndr_print_struct(ndr, "out", "dfs_RemoveStdRoot");
5234 0 : ndr->depth++;
5235 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5236 0 : ndr->depth--;
5237 : }
5238 0 : ndr->depth--;
5239 : }
5240 :
5241 0 : static enum ndr_err_code ndr_push_dfs_ManagerInitialize(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_ManagerInitialize *r)
5242 : {
5243 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5244 0 : if (flags & NDR_IN) {
5245 0 : if (r->in.servername == NULL) {
5246 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5247 : }
5248 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5249 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5250 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5251 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5252 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
5253 : }
5254 0 : if (flags & NDR_OUT) {
5255 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5256 : }
5257 0 : return NDR_ERR_SUCCESS;
5258 : }
5259 :
5260 0 : static enum ndr_err_code ndr_pull_dfs_ManagerInitialize(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_ManagerInitialize *r)
5261 : {
5262 0 : uint32_t size_servername_1 = 0;
5263 0 : uint32_t length_servername_1 = 0;
5264 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5265 0 : if (flags & NDR_IN) {
5266 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
5267 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
5268 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_1));
5269 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_1));
5270 0 : if (length_servername_1 > size_servername_1) {
5271 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_1, length_servername_1);
5272 : }
5273 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_1, sizeof(uint16_t)));
5274 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_1, sizeof(uint16_t), CH_UTF16));
5275 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
5276 : }
5277 0 : if (flags & NDR_OUT) {
5278 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5279 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5280 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5281 : }
5282 0 : return NDR_ERR_SUCCESS;
5283 : }
5284 :
5285 0 : _PUBLIC_ void ndr_print_dfs_ManagerInitialize(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_ManagerInitialize *r)
5286 : {
5287 0 : ndr_print_struct(ndr, name, "dfs_ManagerInitialize");
5288 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5289 0 : ndr->depth++;
5290 0 : if (flags & NDR_SET_VALUES) {
5291 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5292 : }
5293 0 : if (flags & NDR_IN) {
5294 0 : ndr_print_struct(ndr, "in", "dfs_ManagerInitialize");
5295 0 : ndr->depth++;
5296 0 : ndr_print_ptr(ndr, "servername", r->in.servername);
5297 0 : ndr->depth++;
5298 0 : ndr_print_string(ndr, "servername", r->in.servername);
5299 0 : ndr->depth--;
5300 0 : ndr_print_uint32(ndr, "flags", r->in.flags);
5301 0 : ndr->depth--;
5302 : }
5303 0 : if (flags & NDR_OUT) {
5304 0 : ndr_print_struct(ndr, "out", "dfs_ManagerInitialize");
5305 0 : ndr->depth++;
5306 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5307 0 : ndr->depth--;
5308 : }
5309 0 : ndr->depth--;
5310 : }
5311 :
5312 0 : static enum ndr_err_code ndr_push_dfs_AddStdRootForced(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_AddStdRootForced *r)
5313 : {
5314 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5315 0 : if (flags & NDR_IN) {
5316 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5317 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5318 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5319 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5320 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
5321 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5322 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
5323 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.rootshare, ndr_charset_length(r->in.rootshare, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5324 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.comment, CH_UTF16)));
5325 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5326 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.comment, CH_UTF16)));
5327 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.comment, ndr_charset_length(r->in.comment, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5328 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.store, CH_UTF16)));
5329 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5330 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.store, CH_UTF16)));
5331 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.store, ndr_charset_length(r->in.store, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5332 : }
5333 0 : if (flags & NDR_OUT) {
5334 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5335 : }
5336 0 : return NDR_ERR_SUCCESS;
5337 : }
5338 :
5339 0 : static enum ndr_err_code ndr_pull_dfs_AddStdRootForced(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_AddStdRootForced *r)
5340 : {
5341 0 : uint32_t size_servername_0 = 0;
5342 0 : uint32_t length_servername_0 = 0;
5343 0 : uint32_t size_rootshare_0 = 0;
5344 0 : uint32_t length_rootshare_0 = 0;
5345 0 : uint32_t size_comment_0 = 0;
5346 0 : uint32_t length_comment_0 = 0;
5347 0 : uint32_t size_store_0 = 0;
5348 0 : uint32_t length_store_0 = 0;
5349 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5350 0 : if (flags & NDR_IN) {
5351 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
5352 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
5353 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_0));
5354 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_0));
5355 0 : if (length_servername_0 > size_servername_0) {
5356 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_0, length_servername_0);
5357 : }
5358 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_0, sizeof(uint16_t)));
5359 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_0, sizeof(uint16_t), CH_UTF16));
5360 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.rootshare));
5361 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.rootshare));
5362 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.rootshare, &size_rootshare_0));
5363 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.rootshare, &length_rootshare_0));
5364 0 : if (length_rootshare_0 > size_rootshare_0) {
5365 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_rootshare_0, length_rootshare_0);
5366 : }
5367 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_rootshare_0, sizeof(uint16_t)));
5368 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.rootshare, length_rootshare_0, sizeof(uint16_t), CH_UTF16));
5369 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.comment));
5370 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.comment));
5371 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.comment, &size_comment_0));
5372 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.comment, &length_comment_0));
5373 0 : if (length_comment_0 > size_comment_0) {
5374 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_comment_0, length_comment_0);
5375 : }
5376 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_comment_0, sizeof(uint16_t)));
5377 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.comment, length_comment_0, sizeof(uint16_t), CH_UTF16));
5378 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.store));
5379 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.store));
5380 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.store, &size_store_0));
5381 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.store, &length_store_0));
5382 0 : if (length_store_0 > size_store_0) {
5383 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_store_0, length_store_0);
5384 : }
5385 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_store_0, sizeof(uint16_t)));
5386 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.store, length_store_0, sizeof(uint16_t), CH_UTF16));
5387 : }
5388 0 : if (flags & NDR_OUT) {
5389 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5390 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5391 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5392 : }
5393 0 : return NDR_ERR_SUCCESS;
5394 : }
5395 :
5396 0 : _PUBLIC_ void ndr_print_dfs_AddStdRootForced(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_AddStdRootForced *r)
5397 : {
5398 0 : ndr_print_struct(ndr, name, "dfs_AddStdRootForced");
5399 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5400 0 : ndr->depth++;
5401 0 : if (flags & NDR_SET_VALUES) {
5402 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5403 : }
5404 0 : if (flags & NDR_IN) {
5405 0 : ndr_print_struct(ndr, "in", "dfs_AddStdRootForced");
5406 0 : ndr->depth++;
5407 0 : ndr_print_string(ndr, "servername", r->in.servername);
5408 0 : ndr_print_string(ndr, "rootshare", r->in.rootshare);
5409 0 : ndr_print_string(ndr, "comment", r->in.comment);
5410 0 : ndr_print_string(ndr, "store", r->in.store);
5411 0 : ndr->depth--;
5412 : }
5413 0 : if (flags & NDR_OUT) {
5414 0 : ndr_print_struct(ndr, "out", "dfs_AddStdRootForced");
5415 0 : ndr->depth++;
5416 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5417 0 : ndr->depth--;
5418 : }
5419 0 : ndr->depth--;
5420 : }
5421 :
5422 0 : static enum ndr_err_code ndr_push_dfs_GetDcAddress(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_GetDcAddress *r)
5423 : {
5424 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5425 0 : if (flags & NDR_IN) {
5426 0 : if (r->in.server_fullname == NULL) {
5427 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5428 : }
5429 0 : if (r->in.is_root == NULL) {
5430 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5431 : }
5432 0 : if (r->in.ttl == NULL) {
5433 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5434 : }
5435 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5436 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5437 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5438 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5439 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.server_fullname));
5440 0 : if (*r->in.server_fullname) {
5441 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->in.server_fullname, CH_UTF16)));
5442 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5443 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->in.server_fullname, CH_UTF16)));
5444 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->in.server_fullname, ndr_charset_length(*r->in.server_fullname, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5445 : }
5446 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->in.is_root));
5447 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.ttl));
5448 : }
5449 0 : if (flags & NDR_OUT) {
5450 0 : if (r->out.server_fullname == NULL) {
5451 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5452 : }
5453 0 : if (r->out.is_root == NULL) {
5454 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5455 : }
5456 0 : if (r->out.ttl == NULL) {
5457 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5458 : }
5459 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.server_fullname));
5460 0 : if (*r->out.server_fullname) {
5461 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.server_fullname, CH_UTF16)));
5462 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5463 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.server_fullname, CH_UTF16)));
5464 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.server_fullname, ndr_charset_length(*r->out.server_fullname, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5465 : }
5466 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->out.is_root));
5467 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.ttl));
5468 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5469 : }
5470 0 : return NDR_ERR_SUCCESS;
5471 : }
5472 :
5473 0 : static enum ndr_err_code ndr_pull_dfs_GetDcAddress(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_GetDcAddress *r)
5474 : {
5475 0 : uint32_t size_servername_0 = 0;
5476 0 : uint32_t length_servername_0 = 0;
5477 0 : uint32_t _ptr_server_fullname;
5478 0 : uint32_t size_server_fullname_2 = 0;
5479 0 : uint32_t length_server_fullname_2 = 0;
5480 0 : TALLOC_CTX *_mem_save_server_fullname_0 = NULL;
5481 0 : TALLOC_CTX *_mem_save_server_fullname_1 = NULL;
5482 0 : TALLOC_CTX *_mem_save_is_root_0 = NULL;
5483 0 : TALLOC_CTX *_mem_save_ttl_0 = NULL;
5484 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5485 0 : if (flags & NDR_IN) {
5486 0 : NDR_ZERO_STRUCT(r->out);
5487 :
5488 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
5489 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
5490 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_0));
5491 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_0));
5492 0 : if (length_servername_0 > size_servername_0) {
5493 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_0, length_servername_0);
5494 : }
5495 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_0, sizeof(uint16_t)));
5496 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_0, sizeof(uint16_t), CH_UTF16));
5497 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5498 0 : NDR_PULL_ALLOC(ndr, r->in.server_fullname);
5499 : }
5500 0 : _mem_save_server_fullname_0 = NDR_PULL_GET_MEM_CTX(ndr);
5501 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.server_fullname, LIBNDR_FLAG_REF_ALLOC);
5502 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_server_fullname));
5503 0 : if (_ptr_server_fullname) {
5504 0 : NDR_PULL_ALLOC(ndr, *r->in.server_fullname);
5505 : } else {
5506 0 : *r->in.server_fullname = NULL;
5507 : }
5508 0 : if (*r->in.server_fullname) {
5509 0 : _mem_save_server_fullname_1 = NDR_PULL_GET_MEM_CTX(ndr);
5510 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->in.server_fullname, 0);
5511 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->in.server_fullname));
5512 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->in.server_fullname));
5513 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->in.server_fullname, &size_server_fullname_2));
5514 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->in.server_fullname, &length_server_fullname_2));
5515 0 : if (length_server_fullname_2 > size_server_fullname_2) {
5516 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_server_fullname_2, length_server_fullname_2);
5517 : }
5518 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_server_fullname_2, sizeof(uint16_t)));
5519 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->in.server_fullname, length_server_fullname_2, sizeof(uint16_t), CH_UTF16));
5520 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_fullname_1, 0);
5521 : }
5522 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_fullname_0, LIBNDR_FLAG_REF_ALLOC);
5523 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5524 0 : NDR_PULL_ALLOC(ndr, r->in.is_root);
5525 : }
5526 0 : _mem_save_is_root_0 = NDR_PULL_GET_MEM_CTX(ndr);
5527 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.is_root, LIBNDR_FLAG_REF_ALLOC);
5528 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->in.is_root));
5529 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_is_root_0, LIBNDR_FLAG_REF_ALLOC);
5530 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5531 0 : NDR_PULL_ALLOC(ndr, r->in.ttl);
5532 : }
5533 0 : _mem_save_ttl_0 = NDR_PULL_GET_MEM_CTX(ndr);
5534 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.ttl, LIBNDR_FLAG_REF_ALLOC);
5535 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.ttl));
5536 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ttl_0, LIBNDR_FLAG_REF_ALLOC);
5537 0 : NDR_PULL_ALLOC(ndr, r->out.server_fullname);
5538 0 : *r->out.server_fullname = *r->in.server_fullname;
5539 0 : NDR_PULL_ALLOC(ndr, r->out.is_root);
5540 0 : *r->out.is_root = *r->in.is_root;
5541 0 : NDR_PULL_ALLOC(ndr, r->out.ttl);
5542 0 : *r->out.ttl = *r->in.ttl;
5543 : }
5544 0 : if (flags & NDR_OUT) {
5545 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5546 : if (r->in.server_fullname == NULL) {
5547 : NDR_PULL_ALLOC(ndr, r->in.server_fullname);
5548 : NDR_ZERO_STRUCTP(r->in.server_fullname);
5549 : }
5550 : if (r->in.is_root == NULL) {
5551 : NDR_PULL_ALLOC(ndr, r->in.is_root);
5552 : NDR_ZERO_STRUCTP(r->in.is_root);
5553 : }
5554 : if (r->in.ttl == NULL) {
5555 : NDR_PULL_ALLOC(ndr, r->in.ttl);
5556 : NDR_ZERO_STRUCTP(r->in.ttl);
5557 : }
5558 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5559 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5560 0 : NDR_PULL_ALLOC(ndr, r->out.server_fullname);
5561 : }
5562 0 : _mem_save_server_fullname_0 = NDR_PULL_GET_MEM_CTX(ndr);
5563 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.server_fullname, LIBNDR_FLAG_REF_ALLOC);
5564 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_server_fullname));
5565 0 : if (_ptr_server_fullname) {
5566 0 : NDR_PULL_ALLOC(ndr, *r->out.server_fullname);
5567 : } else {
5568 0 : *r->out.server_fullname = NULL;
5569 : }
5570 0 : if (*r->out.server_fullname) {
5571 0 : _mem_save_server_fullname_1 = NDR_PULL_GET_MEM_CTX(ndr);
5572 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.server_fullname, 0);
5573 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.server_fullname));
5574 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.server_fullname));
5575 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.server_fullname, &size_server_fullname_2));
5576 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.server_fullname, &length_server_fullname_2));
5577 0 : if (length_server_fullname_2 > size_server_fullname_2) {
5578 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_server_fullname_2, length_server_fullname_2);
5579 : }
5580 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_server_fullname_2, sizeof(uint16_t)));
5581 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.server_fullname, length_server_fullname_2, sizeof(uint16_t), CH_UTF16));
5582 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_fullname_1, 0);
5583 : }
5584 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_fullname_0, LIBNDR_FLAG_REF_ALLOC);
5585 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5586 0 : NDR_PULL_ALLOC(ndr, r->out.is_root);
5587 : }
5588 0 : _mem_save_is_root_0 = NDR_PULL_GET_MEM_CTX(ndr);
5589 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.is_root, LIBNDR_FLAG_REF_ALLOC);
5590 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->out.is_root));
5591 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_is_root_0, LIBNDR_FLAG_REF_ALLOC);
5592 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5593 0 : NDR_PULL_ALLOC(ndr, r->out.ttl);
5594 : }
5595 0 : _mem_save_ttl_0 = NDR_PULL_GET_MEM_CTX(ndr);
5596 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ttl, LIBNDR_FLAG_REF_ALLOC);
5597 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.ttl));
5598 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ttl_0, LIBNDR_FLAG_REF_ALLOC);
5599 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5600 : }
5601 0 : return NDR_ERR_SUCCESS;
5602 : }
5603 :
5604 0 : _PUBLIC_ void ndr_print_dfs_GetDcAddress(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_GetDcAddress *r)
5605 : {
5606 0 : ndr_print_struct(ndr, name, "dfs_GetDcAddress");
5607 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5608 0 : ndr->depth++;
5609 0 : if (flags & NDR_SET_VALUES) {
5610 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5611 : }
5612 0 : if (flags & NDR_IN) {
5613 0 : ndr_print_struct(ndr, "in", "dfs_GetDcAddress");
5614 0 : ndr->depth++;
5615 0 : ndr_print_string(ndr, "servername", r->in.servername);
5616 0 : ndr_print_ptr(ndr, "server_fullname", r->in.server_fullname);
5617 0 : ndr->depth++;
5618 0 : ndr_print_ptr(ndr, "server_fullname", *r->in.server_fullname);
5619 0 : ndr->depth++;
5620 0 : if (*r->in.server_fullname) {
5621 0 : ndr_print_string(ndr, "server_fullname", *r->in.server_fullname);
5622 : }
5623 0 : ndr->depth--;
5624 0 : ndr->depth--;
5625 0 : ndr_print_ptr(ndr, "is_root", r->in.is_root);
5626 0 : ndr->depth++;
5627 0 : ndr_print_uint8(ndr, "is_root", *r->in.is_root);
5628 0 : ndr->depth--;
5629 0 : ndr_print_ptr(ndr, "ttl", r->in.ttl);
5630 0 : ndr->depth++;
5631 0 : ndr_print_uint32(ndr, "ttl", *r->in.ttl);
5632 0 : ndr->depth--;
5633 0 : ndr->depth--;
5634 : }
5635 0 : if (flags & NDR_OUT) {
5636 0 : ndr_print_struct(ndr, "out", "dfs_GetDcAddress");
5637 0 : ndr->depth++;
5638 0 : ndr_print_ptr(ndr, "server_fullname", r->out.server_fullname);
5639 0 : ndr->depth++;
5640 0 : ndr_print_ptr(ndr, "server_fullname", *r->out.server_fullname);
5641 0 : ndr->depth++;
5642 0 : if (*r->out.server_fullname) {
5643 0 : ndr_print_string(ndr, "server_fullname", *r->out.server_fullname);
5644 : }
5645 0 : ndr->depth--;
5646 0 : ndr->depth--;
5647 0 : ndr_print_ptr(ndr, "is_root", r->out.is_root);
5648 0 : ndr->depth++;
5649 0 : ndr_print_uint8(ndr, "is_root", *r->out.is_root);
5650 0 : ndr->depth--;
5651 0 : ndr_print_ptr(ndr, "ttl", r->out.ttl);
5652 0 : ndr->depth++;
5653 0 : ndr_print_uint32(ndr, "ttl", *r->out.ttl);
5654 0 : ndr->depth--;
5655 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5656 0 : ndr->depth--;
5657 : }
5658 0 : ndr->depth--;
5659 : }
5660 :
5661 0 : static enum ndr_err_code ndr_push_dfs_SetDcAddress(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_SetDcAddress *r)
5662 : {
5663 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5664 0 : if (flags & NDR_IN) {
5665 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5666 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5667 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5668 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5669 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.server_fullname, CH_UTF16)));
5670 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5671 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.server_fullname, CH_UTF16)));
5672 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.server_fullname, ndr_charset_length(r->in.server_fullname, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5673 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
5674 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.ttl));
5675 : }
5676 0 : if (flags & NDR_OUT) {
5677 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5678 : }
5679 0 : return NDR_ERR_SUCCESS;
5680 : }
5681 :
5682 0 : static enum ndr_err_code ndr_pull_dfs_SetDcAddress(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_SetDcAddress *r)
5683 : {
5684 0 : uint32_t size_servername_0 = 0;
5685 0 : uint32_t length_servername_0 = 0;
5686 0 : uint32_t size_server_fullname_0 = 0;
5687 0 : uint32_t length_server_fullname_0 = 0;
5688 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5689 0 : if (flags & NDR_IN) {
5690 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
5691 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
5692 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_0));
5693 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_0));
5694 0 : if (length_servername_0 > size_servername_0) {
5695 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_0, length_servername_0);
5696 : }
5697 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_0, sizeof(uint16_t)));
5698 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_0, sizeof(uint16_t), CH_UTF16));
5699 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.server_fullname));
5700 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.server_fullname));
5701 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.server_fullname, &size_server_fullname_0));
5702 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.server_fullname, &length_server_fullname_0));
5703 0 : if (length_server_fullname_0 > size_server_fullname_0) {
5704 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_server_fullname_0, length_server_fullname_0);
5705 : }
5706 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_server_fullname_0, sizeof(uint16_t)));
5707 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.server_fullname, length_server_fullname_0, sizeof(uint16_t), CH_UTF16));
5708 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
5709 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.ttl));
5710 : }
5711 0 : if (flags & NDR_OUT) {
5712 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5713 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5714 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5715 : }
5716 0 : return NDR_ERR_SUCCESS;
5717 : }
5718 :
5719 0 : _PUBLIC_ void ndr_print_dfs_SetDcAddress(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_SetDcAddress *r)
5720 : {
5721 0 : ndr_print_struct(ndr, name, "dfs_SetDcAddress");
5722 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5723 0 : ndr->depth++;
5724 0 : if (flags & NDR_SET_VALUES) {
5725 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5726 : }
5727 0 : if (flags & NDR_IN) {
5728 0 : ndr_print_struct(ndr, "in", "dfs_SetDcAddress");
5729 0 : ndr->depth++;
5730 0 : ndr_print_string(ndr, "servername", r->in.servername);
5731 0 : ndr_print_string(ndr, "server_fullname", r->in.server_fullname);
5732 0 : ndr_print_uint32(ndr, "flags", r->in.flags);
5733 0 : ndr_print_uint32(ndr, "ttl", r->in.ttl);
5734 0 : ndr->depth--;
5735 : }
5736 0 : if (flags & NDR_OUT) {
5737 0 : ndr_print_struct(ndr, "out", "dfs_SetDcAddress");
5738 0 : ndr->depth++;
5739 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5740 0 : ndr->depth--;
5741 : }
5742 0 : ndr->depth--;
5743 : }
5744 :
5745 0 : static enum ndr_err_code ndr_push_dfs_FlushFtTable(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_FlushFtTable *r)
5746 : {
5747 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5748 0 : if (flags & NDR_IN) {
5749 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5750 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5751 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.servername, CH_UTF16)));
5752 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.servername, ndr_charset_length(r->in.servername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5753 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
5754 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5755 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.rootshare, CH_UTF16)));
5756 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.rootshare, ndr_charset_length(r->in.rootshare, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5757 : }
5758 0 : if (flags & NDR_OUT) {
5759 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5760 : }
5761 0 : return NDR_ERR_SUCCESS;
5762 : }
5763 :
5764 0 : static enum ndr_err_code ndr_pull_dfs_FlushFtTable(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_FlushFtTable *r)
5765 : {
5766 0 : uint32_t size_servername_0 = 0;
5767 0 : uint32_t length_servername_0 = 0;
5768 0 : uint32_t size_rootshare_0 = 0;
5769 0 : uint32_t length_rootshare_0 = 0;
5770 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5771 0 : if (flags & NDR_IN) {
5772 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.servername));
5773 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.servername));
5774 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.servername, &size_servername_0));
5775 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.servername, &length_servername_0));
5776 0 : if (length_servername_0 > size_servername_0) {
5777 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_servername_0, length_servername_0);
5778 : }
5779 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_servername_0, sizeof(uint16_t)));
5780 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.servername, length_servername_0, sizeof(uint16_t), CH_UTF16));
5781 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.rootshare));
5782 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.rootshare));
5783 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.rootshare, &size_rootshare_0));
5784 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.rootshare, &length_rootshare_0));
5785 0 : if (length_rootshare_0 > size_rootshare_0) {
5786 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_rootshare_0, length_rootshare_0);
5787 : }
5788 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_rootshare_0, sizeof(uint16_t)));
5789 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.rootshare, length_rootshare_0, sizeof(uint16_t), CH_UTF16));
5790 : }
5791 0 : if (flags & NDR_OUT) {
5792 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5793 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5794 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5795 : }
5796 0 : return NDR_ERR_SUCCESS;
5797 : }
5798 :
5799 0 : _PUBLIC_ void ndr_print_dfs_FlushFtTable(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_FlushFtTable *r)
5800 : {
5801 0 : ndr_print_struct(ndr, name, "dfs_FlushFtTable");
5802 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5803 0 : ndr->depth++;
5804 0 : if (flags & NDR_SET_VALUES) {
5805 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5806 : }
5807 0 : if (flags & NDR_IN) {
5808 0 : ndr_print_struct(ndr, "in", "dfs_FlushFtTable");
5809 0 : ndr->depth++;
5810 0 : ndr_print_string(ndr, "servername", r->in.servername);
5811 0 : ndr_print_string(ndr, "rootshare", r->in.rootshare);
5812 0 : ndr->depth--;
5813 : }
5814 0 : if (flags & NDR_OUT) {
5815 0 : ndr_print_struct(ndr, "out", "dfs_FlushFtTable");
5816 0 : ndr->depth++;
5817 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5818 0 : ndr->depth--;
5819 : }
5820 0 : ndr->depth--;
5821 : }
5822 :
5823 0 : static enum ndr_err_code ndr_push_dfs_Add2(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_Add2 *r)
5824 : {
5825 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5826 0 : if (flags & NDR_IN) {
5827 0 : }
5828 0 : if (flags & NDR_OUT) {
5829 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5830 : }
5831 0 : return NDR_ERR_SUCCESS;
5832 : }
5833 :
5834 0 : static enum ndr_err_code ndr_pull_dfs_Add2(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_Add2 *r)
5835 : {
5836 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5837 0 : if (flags & NDR_IN) {
5838 0 : }
5839 0 : if (flags & NDR_OUT) {
5840 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5841 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5842 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5843 : }
5844 0 : return NDR_ERR_SUCCESS;
5845 : }
5846 :
5847 0 : _PUBLIC_ void ndr_print_dfs_Add2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_Add2 *r)
5848 : {
5849 0 : ndr_print_struct(ndr, name, "dfs_Add2");
5850 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5851 0 : ndr->depth++;
5852 0 : if (flags & NDR_SET_VALUES) {
5853 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5854 : }
5855 0 : if (flags & NDR_IN) {
5856 0 : ndr_print_struct(ndr, "in", "dfs_Add2");
5857 0 : ndr->depth++;
5858 0 : ndr->depth--;
5859 : }
5860 0 : if (flags & NDR_OUT) {
5861 0 : ndr_print_struct(ndr, "out", "dfs_Add2");
5862 0 : ndr->depth++;
5863 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5864 0 : ndr->depth--;
5865 : }
5866 0 : ndr->depth--;
5867 : }
5868 :
5869 0 : static enum ndr_err_code ndr_push_dfs_Remove2(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_Remove2 *r)
5870 : {
5871 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5872 0 : if (flags & NDR_IN) {
5873 0 : }
5874 0 : if (flags & NDR_OUT) {
5875 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5876 : }
5877 0 : return NDR_ERR_SUCCESS;
5878 : }
5879 :
5880 0 : static enum ndr_err_code ndr_pull_dfs_Remove2(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_Remove2 *r)
5881 : {
5882 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5883 0 : if (flags & NDR_IN) {
5884 0 : }
5885 0 : if (flags & NDR_OUT) {
5886 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5887 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5888 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5889 : }
5890 0 : return NDR_ERR_SUCCESS;
5891 : }
5892 :
5893 0 : _PUBLIC_ void ndr_print_dfs_Remove2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_Remove2 *r)
5894 : {
5895 0 : ndr_print_struct(ndr, name, "dfs_Remove2");
5896 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5897 0 : ndr->depth++;
5898 0 : if (flags & NDR_SET_VALUES) {
5899 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5900 : }
5901 0 : if (flags & NDR_IN) {
5902 0 : ndr_print_struct(ndr, "in", "dfs_Remove2");
5903 0 : ndr->depth++;
5904 0 : ndr->depth--;
5905 : }
5906 0 : if (flags & NDR_OUT) {
5907 0 : ndr_print_struct(ndr, "out", "dfs_Remove2");
5908 0 : ndr->depth++;
5909 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5910 0 : ndr->depth--;
5911 : }
5912 0 : ndr->depth--;
5913 : }
5914 :
5915 2 : _PUBLIC_ enum ndr_err_code ndr_push_dfs_EnumEx(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_EnumEx *r)
5916 : {
5917 2 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5918 2 : if (flags & NDR_IN) {
5919 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_name, CH_UTF16)));
5920 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5921 2 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.dfs_name, CH_UTF16)));
5922 2 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.dfs_name, ndr_charset_length(r->in.dfs_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5923 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.level));
5924 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.bufsize));
5925 2 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.info));
5926 2 : if (r->in.info) {
5927 2 : NDR_CHECK(ndr_push_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
5928 : }
5929 2 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.total));
5930 2 : if (r->in.total) {
5931 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.total));
5932 : }
5933 : }
5934 2 : if (flags & NDR_OUT) {
5935 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.info));
5936 0 : if (r->out.info) {
5937 0 : NDR_CHECK(ndr_push_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
5938 : }
5939 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.total));
5940 0 : if (r->out.total) {
5941 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.total));
5942 : }
5943 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5944 : }
5945 2 : return NDR_ERR_SUCCESS;
5946 : }
5947 :
5948 6 : _PUBLIC_ enum ndr_err_code ndr_pull_dfs_EnumEx(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_EnumEx *r)
5949 : {
5950 6 : uint32_t size_dfs_name_0 = 0;
5951 6 : uint32_t length_dfs_name_0 = 0;
5952 4 : uint32_t _ptr_info;
5953 4 : uint32_t _ptr_total;
5954 6 : TALLOC_CTX *_mem_save_info_0 = NULL;
5955 6 : TALLOC_CTX *_mem_save_total_0 = NULL;
5956 6 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5957 6 : if (flags & NDR_IN) {
5958 4 : NDR_ZERO_STRUCT(r->out);
5959 :
5960 4 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.dfs_name));
5961 4 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.dfs_name));
5962 4 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.dfs_name, &size_dfs_name_0));
5963 4 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.dfs_name, &length_dfs_name_0));
5964 4 : if (length_dfs_name_0 > size_dfs_name_0) {
5965 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_dfs_name_0, length_dfs_name_0);
5966 : }
5967 4 : NDR_CHECK(ndr_check_string_terminator(ndr, length_dfs_name_0, sizeof(uint16_t)));
5968 4 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.dfs_name, length_dfs_name_0, sizeof(uint16_t), CH_UTF16));
5969 4 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.level));
5970 4 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.bufsize));
5971 4 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
5972 4 : if (_ptr_info) {
5973 4 : NDR_PULL_ALLOC(ndr, r->in.info);
5974 : } else {
5975 0 : r->in.info = NULL;
5976 : }
5977 4 : if (r->in.info) {
5978 4 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
5979 4 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, 0);
5980 4 : NDR_CHECK(ndr_pull_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
5981 4 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
5982 : }
5983 4 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_total));
5984 4 : if (_ptr_total) {
5985 4 : NDR_PULL_ALLOC(ndr, r->in.total);
5986 : } else {
5987 0 : r->in.total = NULL;
5988 : }
5989 4 : if (r->in.total) {
5990 4 : _mem_save_total_0 = NDR_PULL_GET_MEM_CTX(ndr);
5991 4 : NDR_PULL_SET_MEM_CTX(ndr, r->in.total, 0);
5992 4 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.total));
5993 4 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_total_0, 0);
5994 : }
5995 : }
5996 6 : if (flags & NDR_OUT) {
5997 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5998 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5999 2 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
6000 2 : if (_ptr_info) {
6001 2 : NDR_PULL_ALLOC(ndr, r->out.info);
6002 : } else {
6003 0 : r->out.info = NULL;
6004 : }
6005 2 : if (r->out.info) {
6006 2 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
6007 2 : NDR_PULL_SET_MEM_CTX(ndr, r->out.info, 0);
6008 2 : NDR_CHECK(ndr_pull_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
6009 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
6010 : }
6011 2 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_total));
6012 2 : if (_ptr_total) {
6013 2 : NDR_PULL_ALLOC(ndr, r->out.total);
6014 : } else {
6015 0 : r->out.total = NULL;
6016 : }
6017 2 : if (r->out.total) {
6018 2 : _mem_save_total_0 = NDR_PULL_GET_MEM_CTX(ndr);
6019 2 : NDR_PULL_SET_MEM_CTX(ndr, r->out.total, 0);
6020 2 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.total));
6021 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_total_0, 0);
6022 : }
6023 2 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6024 : }
6025 2 : return NDR_ERR_SUCCESS;
6026 : }
6027 :
6028 4 : _PUBLIC_ void ndr_print_dfs_EnumEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_EnumEx *r)
6029 : {
6030 4 : ndr_print_struct(ndr, name, "dfs_EnumEx");
6031 4 : if (r == NULL) { ndr_print_null(ndr); return; }
6032 4 : ndr->depth++;
6033 4 : if (flags & NDR_SET_VALUES) {
6034 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6035 : }
6036 4 : if (flags & NDR_IN) {
6037 2 : ndr_print_struct(ndr, "in", "dfs_EnumEx");
6038 2 : ndr->depth++;
6039 2 : ndr_print_string(ndr, "dfs_name", r->in.dfs_name);
6040 2 : ndr_print_uint32(ndr, "level", r->in.level);
6041 2 : ndr_print_uint32(ndr, "bufsize", r->in.bufsize);
6042 2 : ndr_print_ptr(ndr, "info", r->in.info);
6043 2 : ndr->depth++;
6044 2 : if (r->in.info) {
6045 2 : ndr_print_dfs_EnumStruct(ndr, "info", r->in.info);
6046 : }
6047 2 : ndr->depth--;
6048 2 : ndr_print_ptr(ndr, "total", r->in.total);
6049 2 : ndr->depth++;
6050 2 : if (r->in.total) {
6051 2 : ndr_print_uint32(ndr, "total", *r->in.total);
6052 : }
6053 2 : ndr->depth--;
6054 2 : ndr->depth--;
6055 : }
6056 4 : if (flags & NDR_OUT) {
6057 2 : ndr_print_struct(ndr, "out", "dfs_EnumEx");
6058 2 : ndr->depth++;
6059 2 : ndr_print_ptr(ndr, "info", r->out.info);
6060 2 : ndr->depth++;
6061 2 : if (r->out.info) {
6062 2 : ndr_print_dfs_EnumStruct(ndr, "info", r->out.info);
6063 : }
6064 2 : ndr->depth--;
6065 2 : ndr_print_ptr(ndr, "total", r->out.total);
6066 2 : ndr->depth++;
6067 2 : if (r->out.total) {
6068 2 : ndr_print_uint32(ndr, "total", *r->out.total);
6069 : }
6070 2 : ndr->depth--;
6071 2 : ndr_print_WERROR(ndr, "result", r->out.result);
6072 2 : ndr->depth--;
6073 : }
6074 4 : ndr->depth--;
6075 : }
6076 :
6077 0 : static enum ndr_err_code ndr_push_dfs_SetInfo2(struct ndr_push *ndr, ndr_flags_type flags, const struct dfs_SetInfo2 *r)
6078 : {
6079 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6080 0 : if (flags & NDR_IN) {
6081 0 : }
6082 0 : if (flags & NDR_OUT) {
6083 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6084 : }
6085 0 : return NDR_ERR_SUCCESS;
6086 : }
6087 :
6088 0 : static enum ndr_err_code ndr_pull_dfs_SetInfo2(struct ndr_pull *ndr, ndr_flags_type flags, struct dfs_SetInfo2 *r)
6089 : {
6090 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6091 0 : if (flags & NDR_IN) {
6092 0 : }
6093 0 : if (flags & NDR_OUT) {
6094 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6095 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6096 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6097 : }
6098 0 : return NDR_ERR_SUCCESS;
6099 : }
6100 :
6101 0 : _PUBLIC_ void ndr_print_dfs_SetInfo2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct dfs_SetInfo2 *r)
6102 : {
6103 0 : ndr_print_struct(ndr, name, "dfs_SetInfo2");
6104 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6105 0 : ndr->depth++;
6106 0 : if (flags & NDR_SET_VALUES) {
6107 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6108 : }
6109 0 : if (flags & NDR_IN) {
6110 0 : ndr_print_struct(ndr, "in", "dfs_SetInfo2");
6111 0 : ndr->depth++;
6112 0 : ndr->depth--;
6113 : }
6114 0 : if (flags & NDR_OUT) {
6115 0 : ndr_print_struct(ndr, "out", "dfs_SetInfo2");
6116 0 : ndr->depth++;
6117 0 : ndr_print_WERROR(ndr, "result", r->out.result);
6118 0 : ndr->depth--;
6119 : }
6120 0 : ndr->depth--;
6121 : }
6122 :
6123 : #ifndef SKIP_NDR_TABLE_netdfs
6124 : static const struct ndr_interface_public_struct netdfs_public_structs[] = {
6125 : { .name = NULL }
6126 : };
6127 :
6128 : static const struct ndr_interface_call netdfs_calls[] = {
6129 : {
6130 : "dfs_GetManagerVersion",
6131 : sizeof(struct dfs_GetManagerVersion),
6132 : (ndr_push_flags_fn_t) ndr_push_dfs_GetManagerVersion,
6133 : (ndr_pull_flags_fn_t) ndr_pull_dfs_GetManagerVersion,
6134 : (ndr_print_function_t) ndr_print_dfs_GetManagerVersion,
6135 : { 0, NULL },
6136 : { 0, NULL },
6137 : },
6138 : {
6139 : "dfs_Add",
6140 : sizeof(struct dfs_Add),
6141 : (ndr_push_flags_fn_t) ndr_push_dfs_Add,
6142 : (ndr_pull_flags_fn_t) ndr_pull_dfs_Add,
6143 : (ndr_print_function_t) ndr_print_dfs_Add,
6144 : { 0, NULL },
6145 : { 0, NULL },
6146 : },
6147 : {
6148 : "dfs_Remove",
6149 : sizeof(struct dfs_Remove),
6150 : (ndr_push_flags_fn_t) ndr_push_dfs_Remove,
6151 : (ndr_pull_flags_fn_t) ndr_pull_dfs_Remove,
6152 : (ndr_print_function_t) ndr_print_dfs_Remove,
6153 : { 0, NULL },
6154 : { 0, NULL },
6155 : },
6156 : {
6157 : "dfs_SetInfo",
6158 : sizeof(struct dfs_SetInfo),
6159 : (ndr_push_flags_fn_t) ndr_push_dfs_SetInfo,
6160 : (ndr_pull_flags_fn_t) ndr_pull_dfs_SetInfo,
6161 : (ndr_print_function_t) ndr_print_dfs_SetInfo,
6162 : { 0, NULL },
6163 : { 0, NULL },
6164 : },
6165 : {
6166 : "dfs_GetInfo",
6167 : sizeof(struct dfs_GetInfo),
6168 : (ndr_push_flags_fn_t) ndr_push_dfs_GetInfo,
6169 : (ndr_pull_flags_fn_t) ndr_pull_dfs_GetInfo,
6170 : (ndr_print_function_t) ndr_print_dfs_GetInfo,
6171 : { 0, NULL },
6172 : { 0, NULL },
6173 : },
6174 : {
6175 : "dfs_Enum",
6176 : sizeof(struct dfs_Enum),
6177 : (ndr_push_flags_fn_t) ndr_push_dfs_Enum,
6178 : (ndr_pull_flags_fn_t) ndr_pull_dfs_Enum,
6179 : (ndr_print_function_t) ndr_print_dfs_Enum,
6180 : { 0, NULL },
6181 : { 0, NULL },
6182 : },
6183 : {
6184 : "dfs_Rename",
6185 : sizeof(struct dfs_Rename),
6186 : (ndr_push_flags_fn_t) ndr_push_dfs_Rename,
6187 : (ndr_pull_flags_fn_t) ndr_pull_dfs_Rename,
6188 : (ndr_print_function_t) ndr_print_dfs_Rename,
6189 : { 0, NULL },
6190 : { 0, NULL },
6191 : },
6192 : {
6193 : "dfs_Move",
6194 : sizeof(struct dfs_Move),
6195 : (ndr_push_flags_fn_t) ndr_push_dfs_Move,
6196 : (ndr_pull_flags_fn_t) ndr_pull_dfs_Move,
6197 : (ndr_print_function_t) ndr_print_dfs_Move,
6198 : { 0, NULL },
6199 : { 0, NULL },
6200 : },
6201 : {
6202 : "dfs_ManagerGetConfigInfo",
6203 : sizeof(struct dfs_ManagerGetConfigInfo),
6204 : (ndr_push_flags_fn_t) ndr_push_dfs_ManagerGetConfigInfo,
6205 : (ndr_pull_flags_fn_t) ndr_pull_dfs_ManagerGetConfigInfo,
6206 : (ndr_print_function_t) ndr_print_dfs_ManagerGetConfigInfo,
6207 : { 0, NULL },
6208 : { 0, NULL },
6209 : },
6210 : {
6211 : "dfs_ManagerSendSiteInfo",
6212 : sizeof(struct dfs_ManagerSendSiteInfo),
6213 : (ndr_push_flags_fn_t) ndr_push_dfs_ManagerSendSiteInfo,
6214 : (ndr_pull_flags_fn_t) ndr_pull_dfs_ManagerSendSiteInfo,
6215 : (ndr_print_function_t) ndr_print_dfs_ManagerSendSiteInfo,
6216 : { 0, NULL },
6217 : { 0, NULL },
6218 : },
6219 : {
6220 : "dfs_AddFtRoot",
6221 : sizeof(struct dfs_AddFtRoot),
6222 : (ndr_push_flags_fn_t) ndr_push_dfs_AddFtRoot,
6223 : (ndr_pull_flags_fn_t) ndr_pull_dfs_AddFtRoot,
6224 : (ndr_print_function_t) ndr_print_dfs_AddFtRoot,
6225 : { 0, NULL },
6226 : { 0, NULL },
6227 : },
6228 : {
6229 : "dfs_RemoveFtRoot",
6230 : sizeof(struct dfs_RemoveFtRoot),
6231 : (ndr_push_flags_fn_t) ndr_push_dfs_RemoveFtRoot,
6232 : (ndr_pull_flags_fn_t) ndr_pull_dfs_RemoveFtRoot,
6233 : (ndr_print_function_t) ndr_print_dfs_RemoveFtRoot,
6234 : { 0, NULL },
6235 : { 0, NULL },
6236 : },
6237 : {
6238 : "dfs_AddStdRoot",
6239 : sizeof(struct dfs_AddStdRoot),
6240 : (ndr_push_flags_fn_t) ndr_push_dfs_AddStdRoot,
6241 : (ndr_pull_flags_fn_t) ndr_pull_dfs_AddStdRoot,
6242 : (ndr_print_function_t) ndr_print_dfs_AddStdRoot,
6243 : { 0, NULL },
6244 : { 0, NULL },
6245 : },
6246 : {
6247 : "dfs_RemoveStdRoot",
6248 : sizeof(struct dfs_RemoveStdRoot),
6249 : (ndr_push_flags_fn_t) ndr_push_dfs_RemoveStdRoot,
6250 : (ndr_pull_flags_fn_t) ndr_pull_dfs_RemoveStdRoot,
6251 : (ndr_print_function_t) ndr_print_dfs_RemoveStdRoot,
6252 : { 0, NULL },
6253 : { 0, NULL },
6254 : },
6255 : {
6256 : "dfs_ManagerInitialize",
6257 : sizeof(struct dfs_ManagerInitialize),
6258 : (ndr_push_flags_fn_t) ndr_push_dfs_ManagerInitialize,
6259 : (ndr_pull_flags_fn_t) ndr_pull_dfs_ManagerInitialize,
6260 : (ndr_print_function_t) ndr_print_dfs_ManagerInitialize,
6261 : { 0, NULL },
6262 : { 0, NULL },
6263 : },
6264 : {
6265 : "dfs_AddStdRootForced",
6266 : sizeof(struct dfs_AddStdRootForced),
6267 : (ndr_push_flags_fn_t) ndr_push_dfs_AddStdRootForced,
6268 : (ndr_pull_flags_fn_t) ndr_pull_dfs_AddStdRootForced,
6269 : (ndr_print_function_t) ndr_print_dfs_AddStdRootForced,
6270 : { 0, NULL },
6271 : { 0, NULL },
6272 : },
6273 : {
6274 : "dfs_GetDcAddress",
6275 : sizeof(struct dfs_GetDcAddress),
6276 : (ndr_push_flags_fn_t) ndr_push_dfs_GetDcAddress,
6277 : (ndr_pull_flags_fn_t) ndr_pull_dfs_GetDcAddress,
6278 : (ndr_print_function_t) ndr_print_dfs_GetDcAddress,
6279 : { 0, NULL },
6280 : { 0, NULL },
6281 : },
6282 : {
6283 : "dfs_SetDcAddress",
6284 : sizeof(struct dfs_SetDcAddress),
6285 : (ndr_push_flags_fn_t) ndr_push_dfs_SetDcAddress,
6286 : (ndr_pull_flags_fn_t) ndr_pull_dfs_SetDcAddress,
6287 : (ndr_print_function_t) ndr_print_dfs_SetDcAddress,
6288 : { 0, NULL },
6289 : { 0, NULL },
6290 : },
6291 : {
6292 : "dfs_FlushFtTable",
6293 : sizeof(struct dfs_FlushFtTable),
6294 : (ndr_push_flags_fn_t) ndr_push_dfs_FlushFtTable,
6295 : (ndr_pull_flags_fn_t) ndr_pull_dfs_FlushFtTable,
6296 : (ndr_print_function_t) ndr_print_dfs_FlushFtTable,
6297 : { 0, NULL },
6298 : { 0, NULL },
6299 : },
6300 : {
6301 : "dfs_Add2",
6302 : sizeof(struct dfs_Add2),
6303 : (ndr_push_flags_fn_t) ndr_push_dfs_Add2,
6304 : (ndr_pull_flags_fn_t) ndr_pull_dfs_Add2,
6305 : (ndr_print_function_t) ndr_print_dfs_Add2,
6306 : { 0, NULL },
6307 : { 0, NULL },
6308 : },
6309 : {
6310 : "dfs_Remove2",
6311 : sizeof(struct dfs_Remove2),
6312 : (ndr_push_flags_fn_t) ndr_push_dfs_Remove2,
6313 : (ndr_pull_flags_fn_t) ndr_pull_dfs_Remove2,
6314 : (ndr_print_function_t) ndr_print_dfs_Remove2,
6315 : { 0, NULL },
6316 : { 0, NULL },
6317 : },
6318 : {
6319 : "dfs_EnumEx",
6320 : sizeof(struct dfs_EnumEx),
6321 : (ndr_push_flags_fn_t) ndr_push_dfs_EnumEx,
6322 : (ndr_pull_flags_fn_t) ndr_pull_dfs_EnumEx,
6323 : (ndr_print_function_t) ndr_print_dfs_EnumEx,
6324 : { 0, NULL },
6325 : { 0, NULL },
6326 : },
6327 : {
6328 : "dfs_SetInfo2",
6329 : sizeof(struct dfs_SetInfo2),
6330 : (ndr_push_flags_fn_t) ndr_push_dfs_SetInfo2,
6331 : (ndr_pull_flags_fn_t) ndr_pull_dfs_SetInfo2,
6332 : (ndr_print_function_t) ndr_print_dfs_SetInfo2,
6333 : { 0, NULL },
6334 : { 0, NULL },
6335 : },
6336 : { .name = NULL }
6337 : };
6338 :
6339 : static const char * const netdfs_endpoint_strings[] = {
6340 : "ncacn_np:[\\pipe\\netdfs]",
6341 : "ncacn_ip_tcp:",
6342 : "ncalrpc:",
6343 : };
6344 :
6345 : static const struct ndr_interface_string_array netdfs_endpoints = {
6346 : .count = 3,
6347 : .names = netdfs_endpoint_strings
6348 : };
6349 :
6350 : static const char * const netdfs_authservice_strings[] = {
6351 : "host",
6352 : };
6353 :
6354 : static const struct ndr_interface_string_array netdfs_authservices = {
6355 : .count = 1,
6356 : .names = netdfs_authservice_strings
6357 : };
6358 :
6359 :
6360 : const struct ndr_interface_table ndr_table_netdfs = {
6361 : .name = "netdfs",
6362 : .syntax_id = {
6363 : {0x4fc742e0,0x4a10,0x11cf,{0x82,0x73},{0x00,0xaa,0x00,0x4a,0xe6,0x73}},
6364 : NDR_NETDFS_VERSION
6365 : },
6366 : .helpstring = NDR_NETDFS_HELPSTRING,
6367 : .num_calls = 23,
6368 : .calls = netdfs_calls,
6369 : .num_public_structs = 0,
6370 : .public_structs = netdfs_public_structs,
6371 : .endpoints = &netdfs_endpoints,
6372 : .authservices = &netdfs_authservices
6373 : };
6374 :
6375 : #endif /* SKIP_NDR_TABLE_netdfs */
|