Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/librpc/gen_ndr/ndr_epmapper.h"
5 :
6 : #include "librpc/gen_ndr/ndr_misc.h"
7 157746 : static enum ndr_err_code ndr_push_epm_protocol(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum epm_protocol r)
8 : {
9 157746 : NDR_CHECK(ndr_push_enum_uint8(ndr, NDR_SCALARS, r));
10 155262 : return NDR_ERR_SUCCESS;
11 : }
12 :
13 77587 : static enum ndr_err_code ndr_pull_epm_protocol(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum epm_protocol *r)
14 : {
15 1252 : uint8_t v;
16 77587 : NDR_CHECK(ndr_pull_enum_uint8(ndr, NDR_SCALARS, &v));
17 77587 : *r = v;
18 77587 : return NDR_ERR_SUCCESS;
19 : }
20 :
21 2612 : _PUBLIC_ void ndr_print_epm_protocol(struct ndr_print *ndr, const char *name, enum epm_protocol r)
22 : {
23 2612 : const char *val = NULL;
24 :
25 2612 : switch (r) {
26 0 : case EPM_PROTOCOL_DNET_NSP: val = "EPM_PROTOCOL_DNET_NSP"; break;
27 0 : case EPM_PROTOCOL_OSI_TP4: val = "EPM_PROTOCOL_OSI_TP4"; break;
28 0 : case EPM_PROTOCOL_OSI_CLNS: val = "EPM_PROTOCOL_OSI_CLNS"; break;
29 186 : case EPM_PROTOCOL_TCP: val = "EPM_PROTOCOL_TCP"; break;
30 0 : case EPM_PROTOCOL_UDP: val = "EPM_PROTOCOL_UDP"; break;
31 234 : case EPM_PROTOCOL_IP: val = "EPM_PROTOCOL_IP"; break;
32 0 : case EPM_PROTOCOL_NCADG: val = "EPM_PROTOCOL_NCADG"; break;
33 484 : case EPM_PROTOCOL_NCACN: val = "EPM_PROTOCOL_NCACN"; break;
34 48 : case EPM_PROTOCOL_NCALRPC: val = "EPM_PROTOCOL_NCALRPC"; break;
35 1064 : case EPM_PROTOCOL_UUID: val = "EPM_PROTOCOL_UUID"; break;
36 0 : case EPM_PROTOCOL_IPX: val = "EPM_PROTOCOL_IPX"; break;
37 250 : case EPM_PROTOCOL_SMB: val = "EPM_PROTOCOL_SMB"; break;
38 48 : case EPM_PROTOCOL_NAMED_PIPE: val = "EPM_PROTOCOL_NAMED_PIPE"; break;
39 250 : case EPM_PROTOCOL_NETBIOS: val = "EPM_PROTOCOL_NETBIOS"; break;
40 0 : case EPM_PROTOCOL_NETBEUI: val = "EPM_PROTOCOL_NETBEUI"; break;
41 0 : case EPM_PROTOCOL_SPX: val = "EPM_PROTOCOL_SPX"; break;
42 0 : case EPM_PROTOCOL_NB_IPX: val = "EPM_PROTOCOL_NB_IPX"; break;
43 0 : case EPM_PROTOCOL_DSP: val = "EPM_PROTOCOL_DSP"; break;
44 0 : case EPM_PROTOCOL_DDP: val = "EPM_PROTOCOL_DDP"; break;
45 0 : case EPM_PROTOCOL_APPLETALK: val = "EPM_PROTOCOL_APPLETALK"; break;
46 0 : case EPM_PROTOCOL_VINES_SPP: val = "EPM_PROTOCOL_VINES_SPP"; break;
47 0 : case EPM_PROTOCOL_VINES_IPC: val = "EPM_PROTOCOL_VINES_IPC"; break;
48 0 : case EPM_PROTOCOL_STREETTALK: val = "EPM_PROTOCOL_STREETTALK"; break;
49 48 : case EPM_PROTOCOL_HTTP: val = "EPM_PROTOCOL_HTTP"; break;
50 0 : case EPM_PROTOCOL_UNIX_DS: val = "EPM_PROTOCOL_UNIX_DS"; break;
51 0 : case EPM_PROTOCOL_NULL: val = "EPM_PROTOCOL_NULL"; break;
52 : }
53 2612 : ndr_print_enum(ndr, name, "ENUM", val, r);
54 2612 : }
55 :
56 0 : static enum ndr_err_code ndr_push_epm_rhs_dnet_nsp(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_dnet_nsp *r)
57 : {
58 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
59 0 : if (ndr_flags & NDR_SCALARS) {
60 0 : NDR_CHECK(ndr_push_align(ndr, 1));
61 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
62 : }
63 0 : if (ndr_flags & NDR_BUFFERS) {
64 0 : }
65 0 : return NDR_ERR_SUCCESS;
66 : }
67 :
68 0 : static enum ndr_err_code ndr_pull_epm_rhs_dnet_nsp(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_dnet_nsp *r)
69 : {
70 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
71 0 : if (ndr_flags & NDR_SCALARS) {
72 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
73 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
74 : }
75 0 : if (ndr_flags & NDR_BUFFERS) {
76 0 : }
77 0 : return NDR_ERR_SUCCESS;
78 : }
79 :
80 0 : _PUBLIC_ void ndr_print_epm_rhs_dnet_nsp(struct ndr_print *ndr, const char *name, const struct epm_rhs_dnet_nsp *r)
81 : {
82 0 : ndr_print_struct(ndr, name, "epm_rhs_dnet_nsp");
83 0 : if (r == NULL) { ndr_print_null(ndr); return; }
84 0 : ndr->depth++;
85 0 : ndr->depth--;
86 : }
87 :
88 0 : static enum ndr_err_code ndr_push_epm_rhs_osi_tp4(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_osi_tp4 *r)
89 : {
90 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
91 0 : if (ndr_flags & NDR_SCALARS) {
92 0 : NDR_CHECK(ndr_push_align(ndr, 1));
93 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
94 : }
95 0 : if (ndr_flags & NDR_BUFFERS) {
96 0 : }
97 0 : return NDR_ERR_SUCCESS;
98 : }
99 :
100 0 : static enum ndr_err_code ndr_pull_epm_rhs_osi_tp4(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_osi_tp4 *r)
101 : {
102 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
103 0 : if (ndr_flags & NDR_SCALARS) {
104 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
105 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
106 : }
107 0 : if (ndr_flags & NDR_BUFFERS) {
108 0 : }
109 0 : return NDR_ERR_SUCCESS;
110 : }
111 :
112 0 : _PUBLIC_ void ndr_print_epm_rhs_osi_tp4(struct ndr_print *ndr, const char *name, const struct epm_rhs_osi_tp4 *r)
113 : {
114 0 : ndr_print_struct(ndr, name, "epm_rhs_osi_tp4");
115 0 : if (r == NULL) { ndr_print_null(ndr); return; }
116 0 : ndr->depth++;
117 0 : ndr->depth--;
118 : }
119 :
120 0 : static enum ndr_err_code ndr_push_epm_rhs_osi_clns(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_osi_clns *r)
121 : {
122 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
123 0 : if (ndr_flags & NDR_SCALARS) {
124 0 : NDR_CHECK(ndr_push_align(ndr, 1));
125 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
126 : }
127 0 : if (ndr_flags & NDR_BUFFERS) {
128 0 : }
129 0 : return NDR_ERR_SUCCESS;
130 : }
131 :
132 0 : static enum ndr_err_code ndr_pull_epm_rhs_osi_clns(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_osi_clns *r)
133 : {
134 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
135 0 : if (ndr_flags & NDR_SCALARS) {
136 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
137 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
138 : }
139 0 : if (ndr_flags & NDR_BUFFERS) {
140 0 : }
141 0 : return NDR_ERR_SUCCESS;
142 : }
143 :
144 0 : _PUBLIC_ void ndr_print_epm_rhs_osi_clns(struct ndr_print *ndr, const char *name, const struct epm_rhs_osi_clns *r)
145 : {
146 0 : ndr_print_struct(ndr, name, "epm_rhs_osi_clns");
147 0 : if (r == NULL) { ndr_print_null(ndr); return; }
148 0 : ndr->depth++;
149 0 : ndr->depth--;
150 : }
151 :
152 468 : static enum ndr_err_code ndr_push_epm_rhs_udp(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_udp *r)
153 : {
154 468 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
155 468 : if (ndr_flags & NDR_SCALARS) {
156 468 : NDR_CHECK(ndr_push_align(ndr, 2));
157 468 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->port));
158 468 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
159 : }
160 468 : if (ndr_flags & NDR_BUFFERS) {
161 0 : }
162 468 : return NDR_ERR_SUCCESS;
163 : }
164 :
165 234 : static enum ndr_err_code ndr_pull_epm_rhs_udp(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_udp *r)
166 : {
167 234 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
168 234 : if (ndr_flags & NDR_SCALARS) {
169 234 : NDR_CHECK(ndr_pull_align(ndr, 2));
170 234 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
171 234 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
172 : }
173 234 : if (ndr_flags & NDR_BUFFERS) {
174 0 : }
175 234 : return NDR_ERR_SUCCESS;
176 : }
177 :
178 0 : _PUBLIC_ void ndr_print_epm_rhs_udp(struct ndr_print *ndr, const char *name, const struct epm_rhs_udp *r)
179 : {
180 0 : ndr_print_struct(ndr, name, "epm_rhs_udp");
181 0 : if (r == NULL) { ndr_print_null(ndr); return; }
182 0 : ndr->depth++;
183 0 : ndr_print_uint16(ndr, "port", r->port);
184 0 : ndr->depth--;
185 : }
186 :
187 23944 : static enum ndr_err_code ndr_push_epm_rhs_tcp(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_tcp *r)
188 : {
189 23944 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
190 23944 : if (ndr_flags & NDR_SCALARS) {
191 23944 : NDR_CHECK(ndr_push_align(ndr, 2));
192 23944 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->port));
193 23944 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
194 : }
195 23944 : if (ndr_flags & NDR_BUFFERS) {
196 484 : }
197 23944 : return NDR_ERR_SUCCESS;
198 : }
199 :
200 11882 : static enum ndr_err_code ndr_pull_epm_rhs_tcp(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_tcp *r)
201 : {
202 11882 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
203 11882 : if (ndr_flags & NDR_SCALARS) {
204 11882 : NDR_CHECK(ndr_pull_align(ndr, 2));
205 11882 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
206 11882 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
207 : }
208 11882 : if (ndr_flags & NDR_BUFFERS) {
209 244 : }
210 11882 : return NDR_ERR_SUCCESS;
211 : }
212 :
213 186 : _PUBLIC_ void ndr_print_epm_rhs_tcp(struct ndr_print *ndr, const char *name, const struct epm_rhs_tcp *r)
214 : {
215 186 : ndr_print_struct(ndr, name, "epm_rhs_tcp");
216 186 : if (r == NULL) { ndr_print_null(ndr); return; }
217 186 : ndr->depth++;
218 186 : ndr_print_uint16(ndr, "port", r->port);
219 186 : ndr->depth--;
220 : }
221 :
222 25164 : static enum ndr_err_code ndr_push_epm_rhs_ip(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_ip *r)
223 : {
224 25164 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
225 25164 : if (ndr_flags & NDR_SCALARS) {
226 25164 : NDR_CHECK(ndr_push_align(ndr, 4));
227 25164 : NDR_CHECK(ndr_push_ipv4address(ndr, NDR_SCALARS, r->ipaddr));
228 25164 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
229 : }
230 25164 : if (ndr_flags & NDR_BUFFERS) {
231 484 : }
232 25164 : return NDR_ERR_SUCCESS;
233 : }
234 :
235 12468 : static enum ndr_err_code ndr_pull_epm_rhs_ip(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_ip *r)
236 : {
237 12468 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
238 12468 : if (ndr_flags & NDR_SCALARS) {
239 12468 : NDR_CHECK(ndr_pull_align(ndr, 4));
240 12468 : NDR_CHECK(ndr_pull_ipv4address(ndr, NDR_SCALARS, &r->ipaddr));
241 12468 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
242 : }
243 12468 : if (ndr_flags & NDR_BUFFERS) {
244 244 : }
245 12468 : return NDR_ERR_SUCCESS;
246 : }
247 :
248 234 : _PUBLIC_ void ndr_print_epm_rhs_ip(struct ndr_print *ndr, const char *name, const struct epm_rhs_ip *r)
249 : {
250 234 : ndr_print_struct(ndr, name, "epm_rhs_ip");
251 234 : if (r == NULL) { ndr_print_null(ndr); return; }
252 234 : ndr->depth++;
253 234 : ndr_print_ipv4address(ndr, "ipaddr", r->ipaddr);
254 234 : ndr->depth--;
255 : }
256 :
257 0 : static enum ndr_err_code ndr_push_epm_rhs_ncadg(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_ncadg *r)
258 : {
259 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
260 0 : if (ndr_flags & NDR_SCALARS) {
261 0 : NDR_CHECK(ndr_push_align(ndr, 2));
262 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->minor_version));
263 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
264 : }
265 0 : if (ndr_flags & NDR_BUFFERS) {
266 0 : }
267 0 : return NDR_ERR_SUCCESS;
268 : }
269 :
270 0 : static enum ndr_err_code ndr_pull_epm_rhs_ncadg(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_ncadg *r)
271 : {
272 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
273 0 : if (ndr_flags & NDR_SCALARS) {
274 0 : NDR_CHECK(ndr_pull_align(ndr, 2));
275 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->minor_version));
276 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
277 : }
278 0 : if (ndr_flags & NDR_BUFFERS) {
279 0 : }
280 0 : return NDR_ERR_SUCCESS;
281 : }
282 :
283 0 : _PUBLIC_ void ndr_print_epm_rhs_ncadg(struct ndr_print *ndr, const char *name, const struct epm_rhs_ncadg *r)
284 : {
285 0 : ndr_print_struct(ndr, name, "epm_rhs_ncadg");
286 0 : if (r == NULL) { ndr_print_null(ndr); return; }
287 0 : ndr->depth++;
288 0 : ndr_print_uint16(ndr, "minor_version", r->minor_version);
289 0 : ndr->depth--;
290 : }
291 :
292 29098 : static enum ndr_err_code ndr_push_epm_rhs_ncacn(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_ncacn *r)
293 : {
294 29098 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
295 29098 : if (ndr_flags & NDR_SCALARS) {
296 29098 : NDR_CHECK(ndr_push_align(ndr, 2));
297 29098 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->minor_version));
298 29098 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
299 : }
300 29098 : if (ndr_flags & NDR_BUFFERS) {
301 484 : }
302 29098 : return NDR_ERR_SUCCESS;
303 : }
304 :
305 14311 : static enum ndr_err_code ndr_pull_epm_rhs_ncacn(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_ncacn *r)
306 : {
307 14311 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
308 14311 : if (ndr_flags & NDR_SCALARS) {
309 14311 : NDR_CHECK(ndr_pull_align(ndr, 2));
310 14311 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->minor_version));
311 14311 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
312 : }
313 14311 : if (ndr_flags & NDR_BUFFERS) {
314 244 : }
315 14311 : return NDR_ERR_SUCCESS;
316 : }
317 :
318 484 : _PUBLIC_ void ndr_print_epm_rhs_ncacn(struct ndr_print *ndr, const char *name, const struct epm_rhs_ncacn *r)
319 : {
320 484 : ndr_print_struct(ndr, name, "epm_rhs_ncacn");
321 484 : if (r == NULL) { ndr_print_null(ndr); return; }
322 484 : ndr->depth++;
323 484 : ndr_print_uint16(ndr, "minor_version", r->minor_version);
324 484 : ndr->depth--;
325 : }
326 :
327 64324 : static enum ndr_err_code ndr_push_epm_rhs_uuid(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_uuid *r)
328 : {
329 64324 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
330 64324 : if (ndr_flags & NDR_SCALARS) {
331 64324 : NDR_CHECK(ndr_push_align(ndr, 4));
332 : {
333 64324 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
334 64324 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
335 64324 : NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->unknown));
336 64324 : ndr->flags = _flags_save_DATA_BLOB;
337 : }
338 64324 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
339 : }
340 64324 : if (ndr_flags & NDR_BUFFERS) {
341 1000 : }
342 64324 : return NDR_ERR_SUCCESS;
343 : }
344 :
345 31638 : static enum ndr_err_code ndr_pull_epm_rhs_uuid(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_uuid *r)
346 : {
347 31638 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
348 31638 : if (ndr_flags & NDR_SCALARS) {
349 31638 : NDR_CHECK(ndr_pull_align(ndr, 4));
350 : {
351 31638 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
352 31638 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
353 31638 : NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->unknown));
354 31638 : ndr->flags = _flags_save_DATA_BLOB;
355 : }
356 31638 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
357 : }
358 31638 : if (ndr_flags & NDR_BUFFERS) {
359 504 : }
360 31638 : return NDR_ERR_SUCCESS;
361 : }
362 :
363 1064 : _PUBLIC_ void ndr_print_epm_rhs_uuid(struct ndr_print *ndr, const char *name, const struct epm_rhs_uuid *r)
364 : {
365 1064 : ndr_print_struct(ndr, name, "epm_rhs_uuid");
366 1064 : if (r == NULL) { ndr_print_null(ndr); return; }
367 1064 : ndr->depth++;
368 : {
369 1064 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
370 1064 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
371 1064 : ndr_print_DATA_BLOB(ndr, "unknown", r->unknown);
372 1064 : ndr->flags = _flags_save_DATA_BLOB;
373 : }
374 1064 : ndr->depth--;
375 : }
376 :
377 0 : static enum ndr_err_code ndr_push_epm_rhs_ipx(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_ipx *r)
378 : {
379 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
380 0 : if (ndr_flags & NDR_SCALARS) {
381 0 : NDR_CHECK(ndr_push_align(ndr, 1));
382 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
383 : }
384 0 : if (ndr_flags & NDR_BUFFERS) {
385 0 : }
386 0 : return NDR_ERR_SUCCESS;
387 : }
388 :
389 0 : static enum ndr_err_code ndr_pull_epm_rhs_ipx(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_ipx *r)
390 : {
391 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
392 0 : if (ndr_flags & NDR_SCALARS) {
393 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
394 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
395 : }
396 0 : if (ndr_flags & NDR_BUFFERS) {
397 0 : }
398 0 : return NDR_ERR_SUCCESS;
399 : }
400 :
401 0 : _PUBLIC_ void ndr_print_epm_rhs_ipx(struct ndr_print *ndr, const char *name, const struct epm_rhs_ipx *r)
402 : {
403 0 : ndr_print_struct(ndr, name, "epm_rhs_ipx");
404 0 : if (r == NULL) { ndr_print_null(ndr); return; }
405 0 : ndr->depth++;
406 0 : ndr->depth--;
407 : }
408 :
409 3934 : static enum ndr_err_code ndr_push_epm_rhs_smb(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_smb *r)
410 : {
411 3934 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
412 3934 : if (ndr_flags & NDR_SCALARS) {
413 3934 : NDR_CHECK(ndr_push_align(ndr, 4));
414 : {
415 3934 : libndr_flags _flags_save_string = ndr->flags;
416 3934 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
417 3934 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->unc));
418 3934 : ndr->flags = _flags_save_string;
419 : }
420 3934 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
421 : }
422 3934 : if (ndr_flags & NDR_BUFFERS) {
423 0 : }
424 3934 : return NDR_ERR_SUCCESS;
425 : }
426 :
427 1843 : static enum ndr_err_code ndr_pull_epm_rhs_smb(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_smb *r)
428 : {
429 1843 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
430 1843 : if (ndr_flags & NDR_SCALARS) {
431 1843 : NDR_CHECK(ndr_pull_align(ndr, 4));
432 : {
433 1843 : libndr_flags _flags_save_string = ndr->flags;
434 1843 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
435 1843 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->unc));
436 1843 : ndr->flags = _flags_save_string;
437 : }
438 1843 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
439 : }
440 1843 : if (ndr_flags & NDR_BUFFERS) {
441 0 : }
442 1843 : return NDR_ERR_SUCCESS;
443 : }
444 :
445 250 : _PUBLIC_ void ndr_print_epm_rhs_smb(struct ndr_print *ndr, const char *name, const struct epm_rhs_smb *r)
446 : {
447 250 : ndr_print_struct(ndr, name, "epm_rhs_smb");
448 250 : if (r == NULL) { ndr_print_null(ndr); return; }
449 250 : ndr->depth++;
450 : {
451 250 : libndr_flags _flags_save_string = ndr->flags;
452 250 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
453 250 : ndr_print_string(ndr, "unc", r->unc);
454 250 : ndr->flags = _flags_save_string;
455 : }
456 250 : ndr->depth--;
457 : }
458 :
459 3064 : static enum ndr_err_code ndr_push_epm_rhs_named_pipe(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_named_pipe *r)
460 : {
461 3064 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
462 3064 : if (ndr_flags & NDR_SCALARS) {
463 3064 : NDR_CHECK(ndr_push_align(ndr, 4));
464 : {
465 3064 : libndr_flags _flags_save_string = ndr->flags;
466 3064 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
467 3064 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->path));
468 3064 : ndr->flags = _flags_save_string;
469 : }
470 3064 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
471 : }
472 3064 : if (ndr_flags & NDR_BUFFERS) {
473 16 : }
474 3064 : return NDR_ERR_SUCCESS;
475 : }
476 :
477 1508 : static enum ndr_err_code ndr_pull_epm_rhs_named_pipe(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_named_pipe *r)
478 : {
479 1508 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
480 1508 : if (ndr_flags & NDR_SCALARS) {
481 1508 : NDR_CHECK(ndr_pull_align(ndr, 4));
482 : {
483 1508 : libndr_flags _flags_save_string = ndr->flags;
484 1508 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
485 1508 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->path));
486 1508 : ndr->flags = _flags_save_string;
487 : }
488 1508 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
489 : }
490 1508 : if (ndr_flags & NDR_BUFFERS) {
491 8 : }
492 1508 : return NDR_ERR_SUCCESS;
493 : }
494 :
495 48 : _PUBLIC_ void ndr_print_epm_rhs_named_pipe(struct ndr_print *ndr, const char *name, const struct epm_rhs_named_pipe *r)
496 : {
497 48 : ndr_print_struct(ndr, name, "epm_rhs_named_pipe");
498 48 : if (r == NULL) { ndr_print_null(ndr); return; }
499 48 : ndr->depth++;
500 : {
501 48 : libndr_flags _flags_save_string = ndr->flags;
502 48 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
503 48 : ndr_print_string(ndr, "path", r->path);
504 48 : ndr->flags = _flags_save_string;
505 : }
506 48 : ndr->depth--;
507 : }
508 :
509 3934 : static enum ndr_err_code ndr_push_epm_rhs_netbios(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_netbios *r)
510 : {
511 3934 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
512 3934 : if (ndr_flags & NDR_SCALARS) {
513 3934 : NDR_CHECK(ndr_push_align(ndr, 4));
514 : {
515 3934 : libndr_flags _flags_save_string = ndr->flags;
516 3934 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
517 3934 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->name));
518 3934 : ndr->flags = _flags_save_string;
519 : }
520 3934 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
521 : }
522 3934 : if (ndr_flags & NDR_BUFFERS) {
523 0 : }
524 3934 : return NDR_ERR_SUCCESS;
525 : }
526 :
527 1843 : static enum ndr_err_code ndr_pull_epm_rhs_netbios(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_netbios *r)
528 : {
529 1843 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
530 1843 : if (ndr_flags & NDR_SCALARS) {
531 1843 : NDR_CHECK(ndr_pull_align(ndr, 4));
532 : {
533 1843 : libndr_flags _flags_save_string = ndr->flags;
534 1843 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
535 1843 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->name));
536 1843 : ndr->flags = _flags_save_string;
537 : }
538 1843 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
539 : }
540 1843 : if (ndr_flags & NDR_BUFFERS) {
541 0 : }
542 1843 : return NDR_ERR_SUCCESS;
543 : }
544 :
545 250 : _PUBLIC_ void ndr_print_epm_rhs_netbios(struct ndr_print *ndr, const char *name, const struct epm_rhs_netbios *r)
546 : {
547 250 : ndr_print_struct(ndr, name, "epm_rhs_netbios");
548 250 : if (r == NULL) { ndr_print_null(ndr); return; }
549 250 : ndr->depth++;
550 : {
551 250 : libndr_flags _flags_save_string = ndr->flags;
552 250 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
553 250 : ndr_print_string(ndr, "name", r->name);
554 250 : ndr->flags = _flags_save_string;
555 : }
556 250 : ndr->depth--;
557 : }
558 :
559 0 : static enum ndr_err_code ndr_push_epm_rhs_netbeui(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_netbeui *r)
560 : {
561 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
562 0 : if (ndr_flags & NDR_SCALARS) {
563 0 : NDR_CHECK(ndr_push_align(ndr, 1));
564 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
565 : }
566 0 : if (ndr_flags & NDR_BUFFERS) {
567 0 : }
568 0 : return NDR_ERR_SUCCESS;
569 : }
570 :
571 0 : static enum ndr_err_code ndr_pull_epm_rhs_netbeui(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_netbeui *r)
572 : {
573 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
574 0 : if (ndr_flags & NDR_SCALARS) {
575 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
576 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
577 : }
578 0 : if (ndr_flags & NDR_BUFFERS) {
579 0 : }
580 0 : return NDR_ERR_SUCCESS;
581 : }
582 :
583 0 : _PUBLIC_ void ndr_print_epm_rhs_netbeui(struct ndr_print *ndr, const char *name, const struct epm_rhs_netbeui *r)
584 : {
585 0 : ndr_print_struct(ndr, name, "epm_rhs_netbeui");
586 0 : if (r == NULL) { ndr_print_null(ndr); return; }
587 0 : ndr->depth++;
588 0 : ndr->depth--;
589 : }
590 :
591 0 : static enum ndr_err_code ndr_push_epm_rhs_spx(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_spx *r)
592 : {
593 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
594 0 : if (ndr_flags & NDR_SCALARS) {
595 0 : NDR_CHECK(ndr_push_align(ndr, 1));
596 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
597 : }
598 0 : if (ndr_flags & NDR_BUFFERS) {
599 0 : }
600 0 : return NDR_ERR_SUCCESS;
601 : }
602 :
603 0 : static enum ndr_err_code ndr_pull_epm_rhs_spx(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_spx *r)
604 : {
605 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
606 0 : if (ndr_flags & NDR_SCALARS) {
607 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
608 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
609 : }
610 0 : if (ndr_flags & NDR_BUFFERS) {
611 0 : }
612 0 : return NDR_ERR_SUCCESS;
613 : }
614 :
615 0 : _PUBLIC_ void ndr_print_epm_rhs_spx(struct ndr_print *ndr, const char *name, const struct epm_rhs_spx *r)
616 : {
617 0 : ndr_print_struct(ndr, name, "epm_rhs_spx");
618 0 : if (r == NULL) { ndr_print_null(ndr); return; }
619 0 : ndr->depth++;
620 0 : ndr->depth--;
621 : }
622 :
623 0 : static enum ndr_err_code ndr_push_epm_rhs_nb_ipx(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_nb_ipx *r)
624 : {
625 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
626 0 : if (ndr_flags & NDR_SCALARS) {
627 0 : NDR_CHECK(ndr_push_align(ndr, 1));
628 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
629 : }
630 0 : if (ndr_flags & NDR_BUFFERS) {
631 0 : }
632 0 : return NDR_ERR_SUCCESS;
633 : }
634 :
635 0 : static enum ndr_err_code ndr_pull_epm_rhs_nb_ipx(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_nb_ipx *r)
636 : {
637 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
638 0 : if (ndr_flags & NDR_SCALARS) {
639 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
640 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
641 : }
642 0 : if (ndr_flags & NDR_BUFFERS) {
643 0 : }
644 0 : return NDR_ERR_SUCCESS;
645 : }
646 :
647 0 : _PUBLIC_ void ndr_print_epm_rhs_nb_ipx(struct ndr_print *ndr, const char *name, const struct epm_rhs_nb_ipx *r)
648 : {
649 0 : ndr_print_struct(ndr, name, "epm_rhs_nb_ipx");
650 0 : if (r == NULL) { ndr_print_null(ndr); return; }
651 0 : ndr->depth++;
652 0 : ndr->depth--;
653 : }
654 :
655 752 : static enum ndr_err_code ndr_push_epm_rhs_http(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_http *r)
656 : {
657 752 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
658 752 : if (ndr_flags & NDR_SCALARS) {
659 752 : NDR_CHECK(ndr_push_align(ndr, 2));
660 752 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->port));
661 752 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
662 : }
663 752 : if (ndr_flags & NDR_BUFFERS) {
664 0 : }
665 752 : return NDR_ERR_SUCCESS;
666 : }
667 :
668 352 : static enum ndr_err_code ndr_pull_epm_rhs_http(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_http *r)
669 : {
670 352 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
671 352 : if (ndr_flags & NDR_SCALARS) {
672 352 : NDR_CHECK(ndr_pull_align(ndr, 2));
673 352 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
674 352 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
675 : }
676 352 : if (ndr_flags & NDR_BUFFERS) {
677 0 : }
678 352 : return NDR_ERR_SUCCESS;
679 : }
680 :
681 48 : _PUBLIC_ void ndr_print_epm_rhs_http(struct ndr_print *ndr, const char *name, const struct epm_rhs_http *r)
682 : {
683 48 : ndr_print_struct(ndr, name, "epm_rhs_http");
684 48 : if (r == NULL) { ndr_print_null(ndr); return; }
685 48 : ndr->depth++;
686 48 : ndr_print_uint16(ndr, "port", r->port);
687 48 : ndr->depth--;
688 : }
689 :
690 0 : static enum ndr_err_code ndr_push_epm_rhs_unix_ds(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_unix_ds *r)
691 : {
692 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
693 0 : if (ndr_flags & NDR_SCALARS) {
694 0 : NDR_CHECK(ndr_push_align(ndr, 4));
695 : {
696 0 : libndr_flags _flags_save_string = ndr->flags;
697 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
698 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->path));
699 0 : ndr->flags = _flags_save_string;
700 : }
701 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
702 : }
703 0 : if (ndr_flags & NDR_BUFFERS) {
704 0 : }
705 0 : return NDR_ERR_SUCCESS;
706 : }
707 :
708 0 : static enum ndr_err_code ndr_pull_epm_rhs_unix_ds(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_unix_ds *r)
709 : {
710 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
711 0 : if (ndr_flags & NDR_SCALARS) {
712 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
713 : {
714 0 : libndr_flags _flags_save_string = ndr->flags;
715 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
716 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->path));
717 0 : ndr->flags = _flags_save_string;
718 : }
719 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
720 : }
721 0 : if (ndr_flags & NDR_BUFFERS) {
722 0 : }
723 0 : return NDR_ERR_SUCCESS;
724 : }
725 :
726 0 : _PUBLIC_ void ndr_print_epm_rhs_unix_ds(struct ndr_print *ndr, const char *name, const struct epm_rhs_unix_ds *r)
727 : {
728 0 : ndr_print_struct(ndr, name, "epm_rhs_unix_ds");
729 0 : if (r == NULL) { ndr_print_null(ndr); return; }
730 0 : ndr->depth++;
731 : {
732 0 : libndr_flags _flags_save_string = ndr->flags;
733 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
734 0 : ndr_print_string(ndr, "path", r->path);
735 0 : ndr->flags = _flags_save_string;
736 : }
737 0 : ndr->depth--;
738 : }
739 :
740 0 : static enum ndr_err_code ndr_push_epm_rhs_null(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_null *r)
741 : {
742 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
743 0 : if (ndr_flags & NDR_SCALARS) {
744 0 : NDR_CHECK(ndr_push_align(ndr, 1));
745 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
746 : }
747 0 : if (ndr_flags & NDR_BUFFERS) {
748 0 : }
749 0 : return NDR_ERR_SUCCESS;
750 : }
751 :
752 0 : static enum ndr_err_code ndr_pull_epm_rhs_null(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_null *r)
753 : {
754 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
755 0 : if (ndr_flags & NDR_SCALARS) {
756 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
757 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
758 : }
759 0 : if (ndr_flags & NDR_BUFFERS) {
760 0 : }
761 0 : return NDR_ERR_SUCCESS;
762 : }
763 :
764 0 : _PUBLIC_ void ndr_print_epm_rhs_null(struct ndr_print *ndr, const char *name, const struct epm_rhs_null *r)
765 : {
766 0 : ndr_print_struct(ndr, name, "epm_rhs_null");
767 0 : if (r == NULL) { ndr_print_null(ndr); return; }
768 0 : ndr->depth++;
769 0 : ndr->depth--;
770 : }
771 :
772 3064 : static enum ndr_err_code ndr_push_epm_rhs_ncalrpc(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_ncalrpc *r)
773 : {
774 3064 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
775 3064 : if (ndr_flags & NDR_SCALARS) {
776 3064 : NDR_CHECK(ndr_push_align(ndr, 2));
777 3064 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->minor_version));
778 3064 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
779 : }
780 3064 : if (ndr_flags & NDR_BUFFERS) {
781 16 : }
782 3064 : return NDR_ERR_SUCCESS;
783 : }
784 :
785 1508 : static enum ndr_err_code ndr_pull_epm_rhs_ncalrpc(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_ncalrpc *r)
786 : {
787 1508 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
788 1508 : if (ndr_flags & NDR_SCALARS) {
789 1508 : NDR_CHECK(ndr_pull_align(ndr, 2));
790 1508 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->minor_version));
791 1508 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
792 : }
793 1508 : if (ndr_flags & NDR_BUFFERS) {
794 8 : }
795 1508 : return NDR_ERR_SUCCESS;
796 : }
797 :
798 48 : _PUBLIC_ void ndr_print_epm_rhs_ncalrpc(struct ndr_print *ndr, const char *name, const struct epm_rhs_ncalrpc *r)
799 : {
800 48 : ndr_print_struct(ndr, name, "epm_rhs_ncalrpc");
801 48 : if (r == NULL) { ndr_print_null(ndr); return; }
802 48 : ndr->depth++;
803 48 : ndr_print_uint16(ndr, "minor_version", r->minor_version);
804 48 : ndr->depth--;
805 : }
806 :
807 0 : static enum ndr_err_code ndr_push_epm_rhs_appletalk(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_appletalk *r)
808 : {
809 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
810 0 : if (ndr_flags & NDR_SCALARS) {
811 0 : NDR_CHECK(ndr_push_align(ndr, 1));
812 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
813 : }
814 0 : if (ndr_flags & NDR_BUFFERS) {
815 0 : }
816 0 : return NDR_ERR_SUCCESS;
817 : }
818 :
819 0 : static enum ndr_err_code ndr_pull_epm_rhs_appletalk(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_appletalk *r)
820 : {
821 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
822 0 : if (ndr_flags & NDR_SCALARS) {
823 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
824 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
825 : }
826 0 : if (ndr_flags & NDR_BUFFERS) {
827 0 : }
828 0 : return NDR_ERR_SUCCESS;
829 : }
830 :
831 0 : _PUBLIC_ void ndr_print_epm_rhs_appletalk(struct ndr_print *ndr, const char *name, const struct epm_rhs_appletalk *r)
832 : {
833 0 : ndr_print_struct(ndr, name, "epm_rhs_appletalk");
834 0 : if (r == NULL) { ndr_print_null(ndr); return; }
835 0 : ndr->depth++;
836 0 : ndr->depth--;
837 : }
838 :
839 0 : static enum ndr_err_code ndr_push_epm_rhs_atalk_stream(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_atalk_stream *r)
840 : {
841 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
842 0 : if (ndr_flags & NDR_SCALARS) {
843 0 : NDR_CHECK(ndr_push_align(ndr, 1));
844 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
845 : }
846 0 : if (ndr_flags & NDR_BUFFERS) {
847 0 : }
848 0 : return NDR_ERR_SUCCESS;
849 : }
850 :
851 0 : static enum ndr_err_code ndr_pull_epm_rhs_atalk_stream(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_atalk_stream *r)
852 : {
853 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
854 0 : if (ndr_flags & NDR_SCALARS) {
855 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
856 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
857 : }
858 0 : if (ndr_flags & NDR_BUFFERS) {
859 0 : }
860 0 : return NDR_ERR_SUCCESS;
861 : }
862 :
863 0 : _PUBLIC_ void ndr_print_epm_rhs_atalk_stream(struct ndr_print *ndr, const char *name, const struct epm_rhs_atalk_stream *r)
864 : {
865 0 : ndr_print_struct(ndr, name, "epm_rhs_atalk_stream");
866 0 : if (r == NULL) { ndr_print_null(ndr); return; }
867 0 : ndr->depth++;
868 0 : ndr->depth--;
869 : }
870 :
871 0 : static enum ndr_err_code ndr_push_epm_rhs_atalk_datagram(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_atalk_datagram *r)
872 : {
873 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
874 0 : if (ndr_flags & NDR_SCALARS) {
875 0 : NDR_CHECK(ndr_push_align(ndr, 1));
876 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
877 : }
878 0 : if (ndr_flags & NDR_BUFFERS) {
879 0 : }
880 0 : return NDR_ERR_SUCCESS;
881 : }
882 :
883 0 : static enum ndr_err_code ndr_pull_epm_rhs_atalk_datagram(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_atalk_datagram *r)
884 : {
885 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
886 0 : if (ndr_flags & NDR_SCALARS) {
887 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
888 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
889 : }
890 0 : if (ndr_flags & NDR_BUFFERS) {
891 0 : }
892 0 : return NDR_ERR_SUCCESS;
893 : }
894 :
895 0 : _PUBLIC_ void ndr_print_epm_rhs_atalk_datagram(struct ndr_print *ndr, const char *name, const struct epm_rhs_atalk_datagram *r)
896 : {
897 0 : ndr_print_struct(ndr, name, "epm_rhs_atalk_datagram");
898 0 : if (r == NULL) { ndr_print_null(ndr); return; }
899 0 : ndr->depth++;
900 0 : ndr->depth--;
901 : }
902 :
903 0 : static enum ndr_err_code ndr_push_epm_rhs_vines_spp(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_vines_spp *r)
904 : {
905 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
906 0 : if (ndr_flags & NDR_SCALARS) {
907 0 : NDR_CHECK(ndr_push_align(ndr, 2));
908 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->port));
909 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
910 : }
911 0 : if (ndr_flags & NDR_BUFFERS) {
912 0 : }
913 0 : return NDR_ERR_SUCCESS;
914 : }
915 :
916 0 : static enum ndr_err_code ndr_pull_epm_rhs_vines_spp(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_vines_spp *r)
917 : {
918 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
919 0 : if (ndr_flags & NDR_SCALARS) {
920 0 : NDR_CHECK(ndr_pull_align(ndr, 2));
921 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
922 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
923 : }
924 0 : if (ndr_flags & NDR_BUFFERS) {
925 0 : }
926 0 : return NDR_ERR_SUCCESS;
927 : }
928 :
929 0 : _PUBLIC_ void ndr_print_epm_rhs_vines_spp(struct ndr_print *ndr, const char *name, const struct epm_rhs_vines_spp *r)
930 : {
931 0 : ndr_print_struct(ndr, name, "epm_rhs_vines_spp");
932 0 : if (r == NULL) { ndr_print_null(ndr); return; }
933 0 : ndr->depth++;
934 0 : ndr_print_uint16(ndr, "port", r->port);
935 0 : ndr->depth--;
936 : }
937 :
938 0 : static enum ndr_err_code ndr_push_epm_rhs_vines_ipc(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_vines_ipc *r)
939 : {
940 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
941 0 : if (ndr_flags & NDR_SCALARS) {
942 0 : NDR_CHECK(ndr_push_align(ndr, 2));
943 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->port));
944 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
945 : }
946 0 : if (ndr_flags & NDR_BUFFERS) {
947 0 : }
948 0 : return NDR_ERR_SUCCESS;
949 : }
950 :
951 0 : static enum ndr_err_code ndr_pull_epm_rhs_vines_ipc(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_vines_ipc *r)
952 : {
953 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
954 0 : if (ndr_flags & NDR_SCALARS) {
955 0 : NDR_CHECK(ndr_pull_align(ndr, 2));
956 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
957 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
958 : }
959 0 : if (ndr_flags & NDR_BUFFERS) {
960 0 : }
961 0 : return NDR_ERR_SUCCESS;
962 : }
963 :
964 0 : _PUBLIC_ void ndr_print_epm_rhs_vines_ipc(struct ndr_print *ndr, const char *name, const struct epm_rhs_vines_ipc *r)
965 : {
966 0 : ndr_print_struct(ndr, name, "epm_rhs_vines_ipc");
967 0 : if (r == NULL) { ndr_print_null(ndr); return; }
968 0 : ndr->depth++;
969 0 : ndr_print_uint16(ndr, "port", r->port);
970 0 : ndr->depth--;
971 : }
972 :
973 0 : static enum ndr_err_code ndr_push_epm_rhs_streettalk(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_rhs_streettalk *r)
974 : {
975 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
976 0 : if (ndr_flags & NDR_SCALARS) {
977 0 : NDR_CHECK(ndr_push_align(ndr, 4));
978 : {
979 0 : libndr_flags _flags_save_string = ndr->flags;
980 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
981 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->streettalk));
982 0 : ndr->flags = _flags_save_string;
983 : }
984 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
985 : }
986 0 : if (ndr_flags & NDR_BUFFERS) {
987 0 : }
988 0 : return NDR_ERR_SUCCESS;
989 : }
990 :
991 0 : static enum ndr_err_code ndr_pull_epm_rhs_streettalk(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_rhs_streettalk *r)
992 : {
993 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
994 0 : if (ndr_flags & NDR_SCALARS) {
995 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
996 : {
997 0 : libndr_flags _flags_save_string = ndr->flags;
998 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
999 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->streettalk));
1000 0 : ndr->flags = _flags_save_string;
1001 : }
1002 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1003 : }
1004 0 : if (ndr_flags & NDR_BUFFERS) {
1005 0 : }
1006 0 : return NDR_ERR_SUCCESS;
1007 : }
1008 :
1009 0 : _PUBLIC_ void ndr_print_epm_rhs_streettalk(struct ndr_print *ndr, const char *name, const struct epm_rhs_streettalk *r)
1010 : {
1011 0 : ndr_print_struct(ndr, name, "epm_rhs_streettalk");
1012 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1013 0 : ndr->depth++;
1014 : {
1015 0 : libndr_flags _flags_save_string = ndr->flags;
1016 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
1017 0 : ndr_print_string(ndr, "streettalk", r->streettalk);
1018 0 : ndr->flags = _flags_save_string;
1019 : }
1020 0 : ndr->depth--;
1021 : }
1022 :
1023 157746 : static enum ndr_err_code ndr_push_epm_rhs(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union epm_rhs *r)
1024 : {
1025 2484 : uint32_t level;
1026 : {
1027 157746 : libndr_flags _flags_save_UNION = ndr->flags;
1028 157746 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
1029 157746 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1030 157746 : if (ndr_flags & NDR_SCALARS) {
1031 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
1032 157746 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
1033 157746 : NDR_CHECK(ndr_push_union_align(ndr, 4));
1034 157746 : switch (level) {
1035 0 : case EPM_PROTOCOL_DNET_NSP: {
1036 0 : NDR_CHECK(ndr_push_epm_rhs_dnet_nsp(ndr, NDR_SCALARS, &r->dnet_nsp));
1037 0 : break; }
1038 :
1039 0 : case EPM_PROTOCOL_OSI_TP4: {
1040 0 : NDR_CHECK(ndr_push_epm_rhs_osi_tp4(ndr, NDR_SCALARS, &r->osi_tp4));
1041 0 : break; }
1042 :
1043 0 : case EPM_PROTOCOL_OSI_CLNS: {
1044 0 : NDR_CHECK(ndr_push_epm_rhs_osi_clns(ndr, NDR_SCALARS, &r->osi_clns));
1045 0 : break; }
1046 :
1047 23944 : case EPM_PROTOCOL_TCP: {
1048 23944 : NDR_CHECK(ndr_push_epm_rhs_tcp(ndr, NDR_SCALARS, &r->tcp));
1049 23460 : break; }
1050 :
1051 468 : case EPM_PROTOCOL_UDP: {
1052 468 : NDR_CHECK(ndr_push_epm_rhs_udp(ndr, NDR_SCALARS, &r->udp));
1053 468 : break; }
1054 :
1055 25164 : case EPM_PROTOCOL_IP: {
1056 25164 : NDR_CHECK(ndr_push_epm_rhs_ip(ndr, NDR_SCALARS, &r->ip));
1057 24680 : break; }
1058 :
1059 0 : case EPM_PROTOCOL_NCADG: {
1060 0 : NDR_CHECK(ndr_push_epm_rhs_ncadg(ndr, NDR_SCALARS, &r->ncadg));
1061 0 : break; }
1062 :
1063 29098 : case EPM_PROTOCOL_NCACN: {
1064 29098 : NDR_CHECK(ndr_push_epm_rhs_ncacn(ndr, NDR_SCALARS, &r->ncacn));
1065 28614 : break; }
1066 :
1067 3064 : case EPM_PROTOCOL_NCALRPC: {
1068 3064 : NDR_CHECK(ndr_push_epm_rhs_ncalrpc(ndr, NDR_SCALARS, &r->ncalrpc));
1069 3048 : break; }
1070 :
1071 64324 : case EPM_PROTOCOL_UUID: {
1072 64324 : NDR_CHECK(ndr_push_epm_rhs_uuid(ndr, NDR_SCALARS, &r->uuid));
1073 63324 : break; }
1074 :
1075 0 : case EPM_PROTOCOL_IPX: {
1076 0 : NDR_CHECK(ndr_push_epm_rhs_ipx(ndr, NDR_SCALARS, &r->ipx));
1077 0 : break; }
1078 :
1079 3934 : case EPM_PROTOCOL_SMB: {
1080 3934 : NDR_CHECK(ndr_push_epm_rhs_smb(ndr, NDR_SCALARS, &r->smb));
1081 3934 : break; }
1082 :
1083 3064 : case EPM_PROTOCOL_NAMED_PIPE: {
1084 3064 : NDR_CHECK(ndr_push_epm_rhs_named_pipe(ndr, NDR_SCALARS, &r->named_pipe));
1085 3048 : break; }
1086 :
1087 3934 : case EPM_PROTOCOL_NETBIOS: {
1088 3934 : NDR_CHECK(ndr_push_epm_rhs_netbios(ndr, NDR_SCALARS, &r->netbios));
1089 3934 : break; }
1090 :
1091 0 : case EPM_PROTOCOL_NETBEUI: {
1092 0 : NDR_CHECK(ndr_push_epm_rhs_netbeui(ndr, NDR_SCALARS, &r->netbeui));
1093 0 : break; }
1094 :
1095 0 : case EPM_PROTOCOL_SPX: {
1096 0 : NDR_CHECK(ndr_push_epm_rhs_spx(ndr, NDR_SCALARS, &r->spx));
1097 0 : break; }
1098 :
1099 0 : case EPM_PROTOCOL_NB_IPX: {
1100 0 : NDR_CHECK(ndr_push_epm_rhs_nb_ipx(ndr, NDR_SCALARS, &r->nb_ipx));
1101 0 : break; }
1102 :
1103 0 : case EPM_PROTOCOL_DSP: {
1104 0 : NDR_CHECK(ndr_push_epm_rhs_atalk_stream(ndr, NDR_SCALARS, &r->atalk_stream));
1105 0 : break; }
1106 :
1107 0 : case EPM_PROTOCOL_DDP: {
1108 0 : NDR_CHECK(ndr_push_epm_rhs_atalk_datagram(ndr, NDR_SCALARS, &r->atalk_datagram));
1109 0 : break; }
1110 :
1111 0 : case EPM_PROTOCOL_APPLETALK: {
1112 0 : NDR_CHECK(ndr_push_epm_rhs_appletalk(ndr, NDR_SCALARS, &r->appletalk));
1113 0 : break; }
1114 :
1115 0 : case EPM_PROTOCOL_VINES_SPP: {
1116 0 : NDR_CHECK(ndr_push_epm_rhs_vines_spp(ndr, NDR_SCALARS, &r->vines_spp));
1117 0 : break; }
1118 :
1119 0 : case EPM_PROTOCOL_VINES_IPC: {
1120 0 : NDR_CHECK(ndr_push_epm_rhs_vines_ipc(ndr, NDR_SCALARS, &r->vines_ipc));
1121 0 : break; }
1122 :
1123 0 : case EPM_PROTOCOL_STREETTALK: {
1124 0 : NDR_CHECK(ndr_push_epm_rhs_streettalk(ndr, NDR_SCALARS, &r->streettalk));
1125 0 : break; }
1126 :
1127 752 : case EPM_PROTOCOL_HTTP: {
1128 752 : NDR_CHECK(ndr_push_epm_rhs_http(ndr, NDR_SCALARS, &r->http));
1129 752 : break; }
1130 :
1131 0 : case EPM_PROTOCOL_UNIX_DS: {
1132 0 : NDR_CHECK(ndr_push_epm_rhs_unix_ds(ndr, NDR_SCALARS, &r->unix_ds));
1133 0 : break; }
1134 :
1135 0 : case EPM_PROTOCOL_NULL: {
1136 0 : NDR_CHECK(ndr_push_epm_rhs_null(ndr, NDR_SCALARS, &r->null));
1137 0 : break; }
1138 :
1139 0 : default: {
1140 : {
1141 0 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
1142 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1143 0 : NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->unknown));
1144 0 : ndr->flags = _flags_save_DATA_BLOB;
1145 : }
1146 0 : break; }
1147 :
1148 : }
1149 : }
1150 157746 : ndr->flags = _flags_save_UNION;
1151 : }
1152 157746 : return NDR_ERR_SUCCESS;
1153 : }
1154 :
1155 77587 : static enum ndr_err_code ndr_pull_epm_rhs(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union epm_rhs *r)
1156 : {
1157 1252 : uint32_t level;
1158 : {
1159 77587 : libndr_flags _flags_save_UNION = ndr->flags;
1160 77587 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
1161 77587 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1162 77587 : if (ndr_flags & NDR_SCALARS) {
1163 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
1164 77587 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
1165 77587 : NDR_CHECK(ndr_pull_union_align(ndr, 4));
1166 77587 : switch (level) {
1167 0 : case EPM_PROTOCOL_DNET_NSP: {
1168 0 : NDR_CHECK(ndr_pull_epm_rhs_dnet_nsp(ndr, NDR_SCALARS, &r->dnet_nsp));
1169 0 : break; }
1170 :
1171 0 : case EPM_PROTOCOL_OSI_TP4: {
1172 0 : NDR_CHECK(ndr_pull_epm_rhs_osi_tp4(ndr, NDR_SCALARS, &r->osi_tp4));
1173 0 : break; }
1174 :
1175 0 : case EPM_PROTOCOL_OSI_CLNS: {
1176 0 : NDR_CHECK(ndr_pull_epm_rhs_osi_clns(ndr, NDR_SCALARS, &r->osi_clns));
1177 0 : break; }
1178 :
1179 11882 : case EPM_PROTOCOL_TCP: {
1180 11882 : NDR_CHECK(ndr_pull_epm_rhs_tcp(ndr, NDR_SCALARS, &r->tcp));
1181 11638 : break; }
1182 :
1183 234 : case EPM_PROTOCOL_UDP: {
1184 234 : NDR_CHECK(ndr_pull_epm_rhs_udp(ndr, NDR_SCALARS, &r->udp));
1185 234 : break; }
1186 :
1187 12468 : case EPM_PROTOCOL_IP: {
1188 12468 : NDR_CHECK(ndr_pull_epm_rhs_ip(ndr, NDR_SCALARS, &r->ip));
1189 12224 : break; }
1190 :
1191 0 : case EPM_PROTOCOL_NCADG: {
1192 0 : NDR_CHECK(ndr_pull_epm_rhs_ncadg(ndr, NDR_SCALARS, &r->ncadg));
1193 0 : break; }
1194 :
1195 14311 : case EPM_PROTOCOL_NCACN: {
1196 14311 : NDR_CHECK(ndr_pull_epm_rhs_ncacn(ndr, NDR_SCALARS, &r->ncacn));
1197 14067 : break; }
1198 :
1199 1508 : case EPM_PROTOCOL_NCALRPC: {
1200 1508 : NDR_CHECK(ndr_pull_epm_rhs_ncalrpc(ndr, NDR_SCALARS, &r->ncalrpc));
1201 1500 : break; }
1202 :
1203 31638 : case EPM_PROTOCOL_UUID: {
1204 31638 : NDR_CHECK(ndr_pull_epm_rhs_uuid(ndr, NDR_SCALARS, &r->uuid));
1205 31134 : break; }
1206 :
1207 0 : case EPM_PROTOCOL_IPX: {
1208 0 : NDR_CHECK(ndr_pull_epm_rhs_ipx(ndr, NDR_SCALARS, &r->ipx));
1209 0 : break; }
1210 :
1211 1843 : case EPM_PROTOCOL_SMB: {
1212 1843 : NDR_CHECK(ndr_pull_epm_rhs_smb(ndr, NDR_SCALARS, &r->smb));
1213 1843 : break; }
1214 :
1215 1508 : case EPM_PROTOCOL_NAMED_PIPE: {
1216 1508 : NDR_CHECK(ndr_pull_epm_rhs_named_pipe(ndr, NDR_SCALARS, &r->named_pipe));
1217 1500 : break; }
1218 :
1219 1843 : case EPM_PROTOCOL_NETBIOS: {
1220 1843 : NDR_CHECK(ndr_pull_epm_rhs_netbios(ndr, NDR_SCALARS, &r->netbios));
1221 1843 : break; }
1222 :
1223 0 : case EPM_PROTOCOL_NETBEUI: {
1224 0 : NDR_CHECK(ndr_pull_epm_rhs_netbeui(ndr, NDR_SCALARS, &r->netbeui));
1225 0 : break; }
1226 :
1227 0 : case EPM_PROTOCOL_SPX: {
1228 0 : NDR_CHECK(ndr_pull_epm_rhs_spx(ndr, NDR_SCALARS, &r->spx));
1229 0 : break; }
1230 :
1231 0 : case EPM_PROTOCOL_NB_IPX: {
1232 0 : NDR_CHECK(ndr_pull_epm_rhs_nb_ipx(ndr, NDR_SCALARS, &r->nb_ipx));
1233 0 : break; }
1234 :
1235 0 : case EPM_PROTOCOL_DSP: {
1236 0 : NDR_CHECK(ndr_pull_epm_rhs_atalk_stream(ndr, NDR_SCALARS, &r->atalk_stream));
1237 0 : break; }
1238 :
1239 0 : case EPM_PROTOCOL_DDP: {
1240 0 : NDR_CHECK(ndr_pull_epm_rhs_atalk_datagram(ndr, NDR_SCALARS, &r->atalk_datagram));
1241 0 : break; }
1242 :
1243 0 : case EPM_PROTOCOL_APPLETALK: {
1244 0 : NDR_CHECK(ndr_pull_epm_rhs_appletalk(ndr, NDR_SCALARS, &r->appletalk));
1245 0 : break; }
1246 :
1247 0 : case EPM_PROTOCOL_VINES_SPP: {
1248 0 : NDR_CHECK(ndr_pull_epm_rhs_vines_spp(ndr, NDR_SCALARS, &r->vines_spp));
1249 0 : break; }
1250 :
1251 0 : case EPM_PROTOCOL_VINES_IPC: {
1252 0 : NDR_CHECK(ndr_pull_epm_rhs_vines_ipc(ndr, NDR_SCALARS, &r->vines_ipc));
1253 0 : break; }
1254 :
1255 0 : case EPM_PROTOCOL_STREETTALK: {
1256 0 : NDR_CHECK(ndr_pull_epm_rhs_streettalk(ndr, NDR_SCALARS, &r->streettalk));
1257 0 : break; }
1258 :
1259 352 : case EPM_PROTOCOL_HTTP: {
1260 352 : NDR_CHECK(ndr_pull_epm_rhs_http(ndr, NDR_SCALARS, &r->http));
1261 352 : break; }
1262 :
1263 0 : case EPM_PROTOCOL_UNIX_DS: {
1264 0 : NDR_CHECK(ndr_pull_epm_rhs_unix_ds(ndr, NDR_SCALARS, &r->unix_ds));
1265 0 : break; }
1266 :
1267 0 : case EPM_PROTOCOL_NULL: {
1268 0 : NDR_CHECK(ndr_pull_epm_rhs_null(ndr, NDR_SCALARS, &r->null));
1269 0 : break; }
1270 :
1271 0 : default: {
1272 : {
1273 0 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
1274 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1275 0 : NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->unknown));
1276 0 : ndr->flags = _flags_save_DATA_BLOB;
1277 : }
1278 0 : break; }
1279 :
1280 : }
1281 : }
1282 77587 : ndr->flags = _flags_save_UNION;
1283 : }
1284 77587 : return NDR_ERR_SUCCESS;
1285 : }
1286 :
1287 2612 : _PUBLIC_ void ndr_print_epm_rhs(struct ndr_print *ndr, const char *name, const union epm_rhs *r)
1288 : {
1289 10 : uint32_t level;
1290 : {
1291 2612 : libndr_flags _flags_save_UNION = ndr->flags;
1292 2612 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
1293 2612 : level = ndr_print_steal_switch_value(ndr, r);
1294 2612 : ndr_print_union(ndr, name, level, "epm_rhs");
1295 2612 : switch (level) {
1296 0 : case EPM_PROTOCOL_DNET_NSP:
1297 0 : ndr_print_epm_rhs_dnet_nsp(ndr, "dnet_nsp", &r->dnet_nsp);
1298 0 : break;
1299 :
1300 0 : case EPM_PROTOCOL_OSI_TP4:
1301 0 : ndr_print_epm_rhs_osi_tp4(ndr, "osi_tp4", &r->osi_tp4);
1302 0 : break;
1303 :
1304 0 : case EPM_PROTOCOL_OSI_CLNS:
1305 0 : ndr_print_epm_rhs_osi_clns(ndr, "osi_clns", &r->osi_clns);
1306 0 : break;
1307 :
1308 186 : case EPM_PROTOCOL_TCP:
1309 186 : ndr_print_epm_rhs_tcp(ndr, "tcp", &r->tcp);
1310 186 : break;
1311 :
1312 0 : case EPM_PROTOCOL_UDP:
1313 0 : ndr_print_epm_rhs_udp(ndr, "udp", &r->udp);
1314 0 : break;
1315 :
1316 234 : case EPM_PROTOCOL_IP:
1317 234 : ndr_print_epm_rhs_ip(ndr, "ip", &r->ip);
1318 234 : break;
1319 :
1320 0 : case EPM_PROTOCOL_NCADG:
1321 0 : ndr_print_epm_rhs_ncadg(ndr, "ncadg", &r->ncadg);
1322 0 : break;
1323 :
1324 484 : case EPM_PROTOCOL_NCACN:
1325 484 : ndr_print_epm_rhs_ncacn(ndr, "ncacn", &r->ncacn);
1326 484 : break;
1327 :
1328 48 : case EPM_PROTOCOL_NCALRPC:
1329 48 : ndr_print_epm_rhs_ncalrpc(ndr, "ncalrpc", &r->ncalrpc);
1330 48 : break;
1331 :
1332 1064 : case EPM_PROTOCOL_UUID:
1333 1064 : ndr_print_epm_rhs_uuid(ndr, "uuid", &r->uuid);
1334 1064 : break;
1335 :
1336 0 : case EPM_PROTOCOL_IPX:
1337 0 : ndr_print_epm_rhs_ipx(ndr, "ipx", &r->ipx);
1338 0 : break;
1339 :
1340 250 : case EPM_PROTOCOL_SMB:
1341 250 : ndr_print_epm_rhs_smb(ndr, "smb", &r->smb);
1342 250 : break;
1343 :
1344 48 : case EPM_PROTOCOL_NAMED_PIPE:
1345 48 : ndr_print_epm_rhs_named_pipe(ndr, "named_pipe", &r->named_pipe);
1346 48 : break;
1347 :
1348 250 : case EPM_PROTOCOL_NETBIOS:
1349 250 : ndr_print_epm_rhs_netbios(ndr, "netbios", &r->netbios);
1350 250 : break;
1351 :
1352 0 : case EPM_PROTOCOL_NETBEUI:
1353 0 : ndr_print_epm_rhs_netbeui(ndr, "netbeui", &r->netbeui);
1354 0 : break;
1355 :
1356 0 : case EPM_PROTOCOL_SPX:
1357 0 : ndr_print_epm_rhs_spx(ndr, "spx", &r->spx);
1358 0 : break;
1359 :
1360 0 : case EPM_PROTOCOL_NB_IPX:
1361 0 : ndr_print_epm_rhs_nb_ipx(ndr, "nb_ipx", &r->nb_ipx);
1362 0 : break;
1363 :
1364 0 : case EPM_PROTOCOL_DSP:
1365 0 : ndr_print_epm_rhs_atalk_stream(ndr, "atalk_stream", &r->atalk_stream);
1366 0 : break;
1367 :
1368 0 : case EPM_PROTOCOL_DDP:
1369 0 : ndr_print_epm_rhs_atalk_datagram(ndr, "atalk_datagram", &r->atalk_datagram);
1370 0 : break;
1371 :
1372 0 : case EPM_PROTOCOL_APPLETALK:
1373 0 : ndr_print_epm_rhs_appletalk(ndr, "appletalk", &r->appletalk);
1374 0 : break;
1375 :
1376 0 : case EPM_PROTOCOL_VINES_SPP:
1377 0 : ndr_print_epm_rhs_vines_spp(ndr, "vines_spp", &r->vines_spp);
1378 0 : break;
1379 :
1380 0 : case EPM_PROTOCOL_VINES_IPC:
1381 0 : ndr_print_epm_rhs_vines_ipc(ndr, "vines_ipc", &r->vines_ipc);
1382 0 : break;
1383 :
1384 0 : case EPM_PROTOCOL_STREETTALK:
1385 0 : ndr_print_epm_rhs_streettalk(ndr, "streettalk", &r->streettalk);
1386 0 : break;
1387 :
1388 48 : case EPM_PROTOCOL_HTTP:
1389 48 : ndr_print_epm_rhs_http(ndr, "http", &r->http);
1390 48 : break;
1391 :
1392 0 : case EPM_PROTOCOL_UNIX_DS:
1393 0 : ndr_print_epm_rhs_unix_ds(ndr, "unix_ds", &r->unix_ds);
1394 0 : break;
1395 :
1396 0 : case EPM_PROTOCOL_NULL:
1397 0 : ndr_print_epm_rhs_null(ndr, "null", &r->null);
1398 0 : break;
1399 :
1400 0 : default:
1401 : {
1402 0 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
1403 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1404 0 : ndr_print_DATA_BLOB(ndr, "unknown", r->unknown);
1405 0 : ndr->flags = _flags_save_DATA_BLOB;
1406 : }
1407 0 : break;
1408 :
1409 : }
1410 2612 : ndr->flags = _flags_save_UNION;
1411 : }
1412 2612 : }
1413 :
1414 157746 : static enum ndr_err_code ndr_push_epm_lhs(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_lhs *r)
1415 : {
1416 157746 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1417 157746 : if (ndr_flags & NDR_SCALARS) {
1418 157746 : NDR_CHECK(ndr_push_align(ndr, 4));
1419 160230 : NDR_CHECK(ndr_push_epm_protocol(ndr, NDR_SCALARS, r->protocol));
1420 : {
1421 157746 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
1422 157746 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1423 157746 : NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->lhs_data));
1424 157746 : ndr->flags = _flags_save_DATA_BLOB;
1425 : }
1426 157746 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1427 : }
1428 157746 : if (ndr_flags & NDR_BUFFERS) {
1429 2484 : }
1430 157746 : return NDR_ERR_SUCCESS;
1431 : }
1432 :
1433 77587 : static enum ndr_err_code ndr_pull_epm_lhs(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_lhs *r)
1434 : {
1435 77587 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1436 77587 : if (ndr_flags & NDR_SCALARS) {
1437 77587 : NDR_CHECK(ndr_pull_align(ndr, 4));
1438 78839 : NDR_CHECK(ndr_pull_epm_protocol(ndr, NDR_SCALARS, &r->protocol));
1439 : {
1440 77587 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
1441 77587 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1442 77587 : NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->lhs_data));
1443 77587 : ndr->flags = _flags_save_DATA_BLOB;
1444 : }
1445 77587 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1446 : }
1447 77587 : if (ndr_flags & NDR_BUFFERS) {
1448 1252 : }
1449 77587 : return NDR_ERR_SUCCESS;
1450 : }
1451 :
1452 2612 : _PUBLIC_ void ndr_print_epm_lhs(struct ndr_print *ndr, const char *name, const struct epm_lhs *r)
1453 : {
1454 2612 : ndr_print_struct(ndr, name, "epm_lhs");
1455 2612 : if (r == NULL) { ndr_print_null(ndr); return; }
1456 2612 : ndr->depth++;
1457 2612 : ndr_print_epm_protocol(ndr, "protocol", r->protocol);
1458 : {
1459 2612 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
1460 2612 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1461 2612 : ndr_print_DATA_BLOB(ndr, "lhs_data", r->lhs_data);
1462 2612 : ndr->flags = _flags_save_DATA_BLOB;
1463 : }
1464 2612 : ndr->depth--;
1465 : }
1466 :
1467 157746 : static enum ndr_err_code ndr_push_epm_floor(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_floor *r)
1468 : {
1469 157746 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1470 157746 : if (ndr_flags & NDR_SCALARS) {
1471 157746 : NDR_CHECK(ndr_push_align(ndr, 1));
1472 : {
1473 2484 : struct ndr_push *_ndr_lhs;
1474 157746 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_lhs, 2, -1));
1475 157746 : NDR_CHECK(ndr_push_epm_lhs(_ndr_lhs, NDR_SCALARS, &r->lhs));
1476 157746 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_lhs, 2, -1));
1477 : }
1478 : {
1479 2484 : struct ndr_push *_ndr_rhs;
1480 157746 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_rhs, 2, -1));
1481 157746 : NDR_CHECK(ndr_push_set_switch_value(_ndr_rhs, &r->rhs, r->lhs.protocol));
1482 157746 : NDR_CHECK(ndr_push_epm_rhs(_ndr_rhs, NDR_SCALARS, &r->rhs));
1483 157746 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_rhs, 2, -1));
1484 : }
1485 157746 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
1486 : }
1487 157746 : if (ndr_flags & NDR_BUFFERS) {
1488 2484 : }
1489 157746 : return NDR_ERR_SUCCESS;
1490 : }
1491 :
1492 77587 : static enum ndr_err_code ndr_pull_epm_floor(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_floor *r)
1493 : {
1494 77587 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1495 77587 : if (ndr_flags & NDR_SCALARS) {
1496 77587 : NDR_CHECK(ndr_pull_align(ndr, 1));
1497 : {
1498 1252 : struct ndr_pull *_ndr_lhs;
1499 77587 : ssize_t sub_size = -1;
1500 77587 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_lhs, 2, sub_size));
1501 77587 : NDR_CHECK(ndr_pull_epm_lhs(_ndr_lhs, NDR_SCALARS, &r->lhs));
1502 77587 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_lhs, 2, sub_size));
1503 : }
1504 : {
1505 1252 : struct ndr_pull *_ndr_rhs;
1506 77587 : ssize_t sub_size = -1;
1507 77587 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_rhs, 2, sub_size));
1508 77587 : NDR_CHECK(ndr_pull_set_switch_value(_ndr_rhs, &r->rhs, r->lhs.protocol));
1509 77587 : NDR_CHECK(ndr_pull_epm_rhs(_ndr_rhs, NDR_SCALARS, &r->rhs));
1510 77587 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_rhs, 2, sub_size));
1511 : }
1512 77587 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
1513 : }
1514 77587 : if (ndr_flags & NDR_BUFFERS) {
1515 1252 : }
1516 77587 : return NDR_ERR_SUCCESS;
1517 : }
1518 :
1519 2612 : _PUBLIC_ void ndr_print_epm_floor(struct ndr_print *ndr, const char *name, const struct epm_floor *r)
1520 : {
1521 2612 : ndr_print_struct(ndr, name, "epm_floor");
1522 2612 : if (r == NULL) { ndr_print_null(ndr); return; }
1523 2612 : ndr->depth++;
1524 2612 : ndr_print_epm_lhs(ndr, "lhs", &r->lhs);
1525 2612 : ndr_print_set_switch_value(ndr, &r->rhs, r->lhs.protocol);
1526 2612 : ndr_print_epm_rhs(ndr, "rhs", &r->rhs);
1527 2612 : ndr->depth--;
1528 : }
1529 :
1530 32162 : static enum ndr_err_code ndr_push_epm_tower(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_tower *r)
1531 : {
1532 500 : uint32_t cntr_floors_0;
1533 : {
1534 32162 : libndr_flags _flags_save_STRUCT = ndr->flags;
1535 32162 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN|LIBNDR_FLAG_LITTLE_ENDIAN);
1536 32162 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1537 32162 : if (ndr_flags & NDR_SCALARS) {
1538 32162 : NDR_CHECK(ndr_push_align(ndr, 2));
1539 32162 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->num_floors));
1540 189908 : for (cntr_floors_0 = 0; cntr_floors_0 < (r->num_floors); cntr_floors_0++) {
1541 157746 : NDR_CHECK(ndr_push_epm_floor(ndr, NDR_SCALARS, &r->floors[cntr_floors_0]));
1542 : }
1543 32162 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
1544 : }
1545 32162 : if (ndr_flags & NDR_BUFFERS) {
1546 500 : }
1547 32162 : ndr->flags = _flags_save_STRUCT;
1548 : }
1549 32162 : return NDR_ERR_SUCCESS;
1550 : }
1551 :
1552 15819 : static enum ndr_err_code ndr_pull_epm_tower(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_tower *r)
1553 : {
1554 15819 : uint32_t size_floors_0 = 0;
1555 252 : uint32_t cntr_floors_0;
1556 15819 : TALLOC_CTX *_mem_save_floors_0 = NULL;
1557 : {
1558 15819 : libndr_flags _flags_save_STRUCT = ndr->flags;
1559 15819 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN|LIBNDR_FLAG_LITTLE_ENDIAN);
1560 15819 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1561 15819 : if (ndr_flags & NDR_SCALARS) {
1562 15819 : NDR_CHECK(ndr_pull_align(ndr, 2));
1563 15819 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->num_floors));
1564 15819 : size_floors_0 = r->num_floors;
1565 15819 : NDR_PULL_ALLOC_N(ndr, r->floors, size_floors_0);
1566 15819 : _mem_save_floors_0 = NDR_PULL_GET_MEM_CTX(ndr);
1567 15819 : NDR_PULL_SET_MEM_CTX(ndr, r->floors, 0);
1568 93406 : for (cntr_floors_0 = 0; cntr_floors_0 < (size_floors_0); cntr_floors_0++) {
1569 77587 : NDR_CHECK(ndr_pull_epm_floor(ndr, NDR_SCALARS, &r->floors[cntr_floors_0]));
1570 : }
1571 15819 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_floors_0, 0);
1572 15819 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
1573 : }
1574 15819 : if (ndr_flags & NDR_BUFFERS) {
1575 252 : }
1576 15819 : ndr->flags = _flags_save_STRUCT;
1577 : }
1578 15819 : return NDR_ERR_SUCCESS;
1579 : }
1580 :
1581 532 : _PUBLIC_ void ndr_print_epm_tower(struct ndr_print *ndr, const char *name, const struct epm_tower *r)
1582 : {
1583 2 : uint32_t cntr_floors_0;
1584 532 : ndr_print_struct(ndr, name, "epm_tower");
1585 532 : if (r == NULL) { ndr_print_null(ndr); return; }
1586 : {
1587 532 : libndr_flags _flags_save_STRUCT = ndr->flags;
1588 532 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN|LIBNDR_FLAG_LITTLE_ENDIAN);
1589 532 : ndr->depth++;
1590 532 : ndr_print_uint16(ndr, "num_floors", r->num_floors);
1591 532 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "floors", (uint32_t)(r->num_floors));
1592 532 : ndr->depth++;
1593 3144 : for (cntr_floors_0 = 0; cntr_floors_0 < (r->num_floors); cntr_floors_0++) {
1594 2612 : ndr_print_epm_floor(ndr, "floors", &r->floors[cntr_floors_0]);
1595 : }
1596 532 : ndr->depth--;
1597 532 : ndr->depth--;
1598 532 : ndr->flags = _flags_save_STRUCT;
1599 : }
1600 : }
1601 :
1602 16081 : static size_t ndr_size_epm_tower(const struct epm_tower *r, libndr_flags flags)
1603 : {
1604 16081 : flags |= LIBNDR_FLAG_NOALIGN|LIBNDR_FLAG_LITTLE_ENDIAN;
1605 16081 : return ndr_size_struct(r, flags, (ndr_push_flags_fn_t)ndr_push_epm_tower);
1606 : }
1607 :
1608 16081 : _PUBLIC_ enum ndr_err_code ndr_push_epm_twr_t(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_twr_t *r)
1609 : {
1610 16081 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1611 16081 : if (ndr_flags & NDR_SCALARS) {
1612 16081 : NDR_CHECK(ndr_push_align(ndr, 4));
1613 16081 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_size_epm_tower(&r->tower, ndr->flags)));
1614 : {
1615 250 : struct ndr_push *_ndr_tower;
1616 16081 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_tower, 4, -1));
1617 16081 : NDR_CHECK(ndr_push_epm_tower(_ndr_tower, NDR_SCALARS, &r->tower));
1618 16081 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_tower, 4, -1));
1619 : }
1620 16081 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1621 : }
1622 16081 : if (ndr_flags & NDR_BUFFERS) {
1623 250 : }
1624 16081 : return NDR_ERR_SUCCESS;
1625 : }
1626 :
1627 15819 : _PUBLIC_ enum ndr_err_code ndr_pull_epm_twr_t(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_twr_t *r)
1628 : {
1629 15819 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1630 15819 : if (ndr_flags & NDR_SCALARS) {
1631 15819 : NDR_CHECK(ndr_pull_align(ndr, 4));
1632 15819 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->tower_length));
1633 : {
1634 252 : struct ndr_pull *_ndr_tower;
1635 15819 : ssize_t sub_size = -1;
1636 15819 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_tower, 4, sub_size));
1637 15819 : NDR_CHECK(ndr_pull_epm_tower(_ndr_tower, NDR_SCALARS, &r->tower));
1638 15819 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_tower, 4, sub_size));
1639 : }
1640 15819 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1641 : }
1642 15819 : if (ndr_flags & NDR_BUFFERS) {
1643 252 : }
1644 15819 : return NDR_ERR_SUCCESS;
1645 : }
1646 :
1647 0 : static void ndr_print_flags_epm_twr_t(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct epm_twr_t *r)
1648 : {
1649 0 : ndr_print_epm_twr_t(ndr, name, r);
1650 0 : }
1651 :
1652 532 : _PUBLIC_ void ndr_print_epm_twr_t(struct ndr_print *ndr, const char *name, const struct epm_twr_t *r)
1653 : {
1654 532 : ndr_print_struct(ndr, name, "epm_twr_t");
1655 532 : if (r == NULL) { ndr_print_null(ndr); return; }
1656 532 : ndr->depth++;
1657 532 : ndr_print_uint32(ndr, "tower_length", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?ndr_size_epm_tower(&r->tower, ndr->flags):r->tower_length);
1658 532 : ndr_print_epm_tower(ndr, "tower", &r->tower);
1659 532 : ndr->depth--;
1660 : }
1661 :
1662 1544 : static enum ndr_err_code ndr_push_epm_entry_t(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_entry_t *r)
1663 : {
1664 1544 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1665 1544 : if (ndr_flags & NDR_SCALARS) {
1666 772 : NDR_CHECK(ndr_push_align(ndr, 5));
1667 772 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->object));
1668 772 : NDR_CHECK(ndr_push_full_ptr(ndr, r->tower));
1669 772 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
1670 772 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, strlen(r->annotation) + 1));
1671 772 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->annotation, strlen(r->annotation) + 1, sizeof(uint8_t), CH_DOS));
1672 772 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1673 : }
1674 1544 : if (ndr_flags & NDR_BUFFERS) {
1675 772 : if (r->tower) {
1676 772 : NDR_CHECK(ndr_push_epm_twr_t(ndr, NDR_SCALARS, r->tower));
1677 : }
1678 : }
1679 1544 : return NDR_ERR_SUCCESS;
1680 : }
1681 :
1682 1312 : static enum ndr_err_code ndr_pull_epm_entry_t(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_entry_t *r)
1683 : {
1684 0 : uint32_t _ptr_tower;
1685 1312 : TALLOC_CTX *_mem_save_tower_0 = NULL;
1686 1312 : uint32_t size_annotation_0 = 0;
1687 1312 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1688 1312 : if (ndr_flags & NDR_SCALARS) {
1689 656 : NDR_CHECK(ndr_pull_align(ndr, 5));
1690 656 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->object));
1691 656 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_tower));
1692 656 : if (_ptr_tower) {
1693 656 : NDR_PULL_ALLOC(ndr, r->tower);
1694 : } else {
1695 0 : r->tower = NULL;
1696 : }
1697 656 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->__annotation_offset));
1698 656 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->__annotation_length));
1699 656 : size_annotation_0 = r->__annotation_length;
1700 656 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->annotation, size_annotation_0, sizeof(uint8_t), CH_DOS));
1701 656 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1702 : }
1703 1312 : if (ndr_flags & NDR_BUFFERS) {
1704 656 : if (r->tower) {
1705 656 : _mem_save_tower_0 = NDR_PULL_GET_MEM_CTX(ndr);
1706 656 : NDR_PULL_SET_MEM_CTX(ndr, r->tower, 0);
1707 656 : NDR_CHECK(ndr_pull_epm_twr_t(ndr, NDR_SCALARS, r->tower));
1708 656 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_tower_0, 0);
1709 : }
1710 : }
1711 1312 : return NDR_ERR_SUCCESS;
1712 : }
1713 :
1714 232 : _PUBLIC_ void ndr_print_epm_entry_t(struct ndr_print *ndr, const char *name, const struct epm_entry_t *r)
1715 : {
1716 232 : ndr_print_struct(ndr, name, "epm_entry_t");
1717 232 : if (r == NULL) { ndr_print_null(ndr); return; }
1718 232 : ndr->depth++;
1719 232 : ndr_print_GUID(ndr, "object", &r->object);
1720 232 : ndr_print_ptr(ndr, "tower", r->tower);
1721 232 : ndr->depth++;
1722 232 : if (r->tower) {
1723 232 : ndr_print_epm_twr_t(ndr, "tower", r->tower);
1724 : }
1725 232 : ndr->depth--;
1726 232 : ndr_print_uint32(ndr, "__annotation_offset", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->__annotation_offset);
1727 232 : ndr_print_uint32(ndr, "__annotation_length", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?strlen(r->annotation) + 1:r->__annotation_length);
1728 232 : ndr_print_string(ndr, "annotation", r->annotation);
1729 232 : ndr->depth--;
1730 : }
1731 :
1732 0 : static enum ndr_err_code ndr_push_rpc_if_id_t(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rpc_if_id_t *r)
1733 : {
1734 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1735 0 : if (ndr_flags & NDR_SCALARS) {
1736 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1737 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->uuid));
1738 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->vers_major));
1739 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->vers_minor));
1740 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1741 : }
1742 0 : if (ndr_flags & NDR_BUFFERS) {
1743 0 : }
1744 0 : return NDR_ERR_SUCCESS;
1745 : }
1746 :
1747 0 : static enum ndr_err_code ndr_pull_rpc_if_id_t(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rpc_if_id_t *r)
1748 : {
1749 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1750 0 : if (ndr_flags & NDR_SCALARS) {
1751 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1752 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->uuid));
1753 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->vers_major));
1754 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->vers_minor));
1755 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1756 : }
1757 0 : if (ndr_flags & NDR_BUFFERS) {
1758 0 : }
1759 0 : return NDR_ERR_SUCCESS;
1760 : }
1761 :
1762 0 : _PUBLIC_ void ndr_print_rpc_if_id_t(struct ndr_print *ndr, const char *name, const struct rpc_if_id_t *r)
1763 : {
1764 0 : ndr_print_struct(ndr, name, "rpc_if_id_t");
1765 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1766 0 : ndr->depth++;
1767 0 : ndr_print_GUID(ndr, "uuid", &r->uuid);
1768 0 : ndr_print_uint16(ndr, "vers_major", r->vers_major);
1769 0 : ndr_print_uint16(ndr, "vers_minor", r->vers_minor);
1770 0 : ndr->depth--;
1771 : }
1772 :
1773 98 : static enum ndr_err_code ndr_push_epm_InquiryType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum epm_InquiryType r)
1774 : {
1775 98 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1776 98 : return NDR_ERR_SUCCESS;
1777 : }
1778 :
1779 98 : static enum ndr_err_code ndr_pull_epm_InquiryType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum epm_InquiryType *r)
1780 : {
1781 0 : uint32_t v;
1782 98 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1783 98 : *r = v;
1784 98 : return NDR_ERR_SUCCESS;
1785 : }
1786 :
1787 0 : _PUBLIC_ void ndr_print_epm_InquiryType(struct ndr_print *ndr, const char *name, enum epm_InquiryType r)
1788 : {
1789 0 : const char *val = NULL;
1790 :
1791 0 : switch (r) {
1792 0 : case RPC_C_EP_ALL_ELTS: val = "RPC_C_EP_ALL_ELTS"; break;
1793 0 : case RPC_C_EP_MATCH_BY_IF: val = "RPC_C_EP_MATCH_BY_IF"; break;
1794 0 : case RPC_C_EP_MATCH_BY_OBJ: val = "RPC_C_EP_MATCH_BY_OBJ"; break;
1795 0 : case RPC_C_EP_MATCH_BY_BOTH: val = "RPC_C_EP_MATCH_BY_BOTH"; break;
1796 : }
1797 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1798 0 : }
1799 :
1800 98 : static enum ndr_err_code ndr_push_epm_VersionOption(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum epm_VersionOption r)
1801 : {
1802 98 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1803 98 : return NDR_ERR_SUCCESS;
1804 : }
1805 :
1806 98 : static enum ndr_err_code ndr_pull_epm_VersionOption(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum epm_VersionOption *r)
1807 : {
1808 0 : uint32_t v;
1809 98 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1810 98 : *r = v;
1811 98 : return NDR_ERR_SUCCESS;
1812 : }
1813 :
1814 0 : _PUBLIC_ void ndr_print_epm_VersionOption(struct ndr_print *ndr, const char *name, enum epm_VersionOption r)
1815 : {
1816 0 : const char *val = NULL;
1817 :
1818 0 : switch (r) {
1819 0 : case RPC_C_VERS_ALL: val = "RPC_C_VERS_ALL"; break;
1820 0 : case RPC_C_VERS_COMPATIBLE: val = "RPC_C_VERS_COMPATIBLE"; break;
1821 0 : case RPC_C_VERS_EXACT: val = "RPC_C_VERS_EXACT"; break;
1822 0 : case RPC_C_VERS_MAJOR_ONLY: val = "RPC_C_VERS_MAJOR_ONLY"; break;
1823 0 : case RPC_C_VERS_UPTO: val = "RPC_C_VERS_UPTO"; break;
1824 : }
1825 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1826 0 : }
1827 :
1828 15458 : static enum ndr_err_code ndr_push_epm_twr_p_t(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct epm_twr_p_t *r)
1829 : {
1830 15458 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1831 15458 : if (ndr_flags & NDR_SCALARS) {
1832 7729 : NDR_CHECK(ndr_push_align(ndr, 5));
1833 7729 : NDR_CHECK(ndr_push_full_ptr(ndr, r->twr));
1834 7729 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1835 : }
1836 15458 : if (ndr_flags & NDR_BUFFERS) {
1837 7729 : if (r->twr) {
1838 7729 : NDR_CHECK(ndr_push_epm_twr_t(ndr, NDR_SCALARS, r->twr));
1839 : }
1840 : }
1841 15208 : return NDR_ERR_SUCCESS;
1842 : }
1843 :
1844 14600 : static enum ndr_err_code ndr_pull_epm_twr_p_t(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct epm_twr_p_t *r)
1845 : {
1846 250 : uint32_t _ptr_twr;
1847 14600 : TALLOC_CTX *_mem_save_twr_0 = NULL;
1848 14600 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1849 14600 : if (ndr_flags & NDR_SCALARS) {
1850 7300 : NDR_CHECK(ndr_pull_align(ndr, 5));
1851 7300 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_twr));
1852 7300 : if (_ptr_twr) {
1853 7300 : NDR_PULL_ALLOC(ndr, r->twr);
1854 : } else {
1855 0 : r->twr = NULL;
1856 : }
1857 7300 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1858 : }
1859 14600 : if (ndr_flags & NDR_BUFFERS) {
1860 7300 : if (r->twr) {
1861 7300 : _mem_save_twr_0 = NDR_PULL_GET_MEM_CTX(ndr);
1862 7300 : NDR_PULL_SET_MEM_CTX(ndr, r->twr, 0);
1863 7300 : NDR_CHECK(ndr_pull_epm_twr_t(ndr, NDR_SCALARS, r->twr));
1864 7300 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_twr_0, 0);
1865 : }
1866 : }
1867 14350 : return NDR_ERR_SUCCESS;
1868 : }
1869 :
1870 298 : _PUBLIC_ void ndr_print_epm_twr_p_t(struct ndr_print *ndr, const char *name, const struct epm_twr_p_t *r)
1871 : {
1872 298 : ndr_print_struct(ndr, name, "epm_twr_p_t");
1873 298 : if (r == NULL) { ndr_print_null(ndr); return; }
1874 298 : ndr->depth++;
1875 298 : ndr_print_ptr(ndr, "twr", r->twr);
1876 298 : ndr->depth++;
1877 298 : if (r->twr) {
1878 298 : ndr_print_epm_twr_t(ndr, "twr", r->twr);
1879 : }
1880 298 : ndr->depth--;
1881 298 : ndr->depth--;
1882 : }
1883 :
1884 4 : static enum ndr_err_code ndr_push_epm_Insert(struct ndr_push *ndr, ndr_flags_type flags, const struct epm_Insert *r)
1885 : {
1886 0 : uint32_t cntr_entries_0;
1887 4 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
1888 4 : if (flags & NDR_IN) {
1889 4 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_ents));
1890 4 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.num_ents));
1891 8 : for (cntr_entries_0 = 0; cntr_entries_0 < (r->in.num_ents); cntr_entries_0++) {
1892 4 : NDR_CHECK(ndr_push_epm_entry_t(ndr, NDR_SCALARS, &r->in.entries[cntr_entries_0]));
1893 : }
1894 8 : for (cntr_entries_0 = 0; cntr_entries_0 < (r->in.num_ents); cntr_entries_0++) {
1895 4 : NDR_CHECK(ndr_push_epm_entry_t(ndr, NDR_BUFFERS, &r->in.entries[cntr_entries_0]));
1896 : }
1897 4 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.replace));
1898 : }
1899 4 : if (flags & NDR_OUT) {
1900 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
1901 : }
1902 4 : return NDR_ERR_SUCCESS;
1903 : }
1904 :
1905 4 : static enum ndr_err_code ndr_pull_epm_Insert(struct ndr_pull *ndr, ndr_flags_type flags, struct epm_Insert *r)
1906 : {
1907 4 : uint32_t size_entries_0 = 0;
1908 0 : uint32_t cntr_entries_0;
1909 4 : TALLOC_CTX *_mem_save_entries_0 = NULL;
1910 4 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
1911 4 : if (flags & NDR_IN) {
1912 4 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_ents));
1913 4 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.entries));
1914 4 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.entries, &size_entries_0));
1915 4 : NDR_PULL_ALLOC_N(ndr, r->in.entries, size_entries_0);
1916 4 : _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
1917 4 : NDR_PULL_SET_MEM_CTX(ndr, r->in.entries, 0);
1918 8 : for (cntr_entries_0 = 0; cntr_entries_0 < (size_entries_0); cntr_entries_0++) {
1919 4 : NDR_CHECK(ndr_pull_epm_entry_t(ndr, NDR_SCALARS, &r->in.entries[cntr_entries_0]));
1920 : }
1921 8 : for (cntr_entries_0 = 0; cntr_entries_0 < (size_entries_0); cntr_entries_0++) {
1922 4 : NDR_CHECK(ndr_pull_epm_entry_t(ndr, NDR_BUFFERS, &r->in.entries[cntr_entries_0]));
1923 : }
1924 4 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
1925 4 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.replace));
1926 4 : if (r->in.entries) {
1927 4 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.entries, r->in.num_ents));
1928 : }
1929 8 : for (cntr_entries_0 = 0; cntr_entries_0 < (size_entries_0); cntr_entries_0++) {
1930 0 : }
1931 : }
1932 4 : if (flags & NDR_OUT) {
1933 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
1934 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
1935 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
1936 : }
1937 4 : return NDR_ERR_SUCCESS;
1938 : }
1939 :
1940 0 : _PUBLIC_ void ndr_print_epm_Insert(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct epm_Insert *r)
1941 : {
1942 0 : uint32_t cntr_entries_0;
1943 0 : ndr_print_struct(ndr, name, "epm_Insert");
1944 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1945 0 : ndr->depth++;
1946 0 : if (flags & NDR_SET_VALUES) {
1947 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1948 : }
1949 0 : if (flags & NDR_IN) {
1950 0 : ndr_print_struct(ndr, "in", "epm_Insert");
1951 0 : ndr->depth++;
1952 0 : ndr_print_uint32(ndr, "num_ents", r->in.num_ents);
1953 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "entries", (uint32_t)(r->in.num_ents));
1954 0 : ndr->depth++;
1955 0 : for (cntr_entries_0 = 0; cntr_entries_0 < (r->in.num_ents); cntr_entries_0++) {
1956 0 : ndr_print_epm_entry_t(ndr, "entries", &r->in.entries[cntr_entries_0]);
1957 : }
1958 0 : ndr->depth--;
1959 0 : ndr_print_uint32(ndr, "replace", r->in.replace);
1960 0 : ndr->depth--;
1961 : }
1962 0 : if (flags & NDR_OUT) {
1963 0 : ndr_print_struct(ndr, "out", "epm_Insert");
1964 0 : ndr->depth++;
1965 0 : ndr_print_uint32(ndr, "result", r->out.result);
1966 0 : ndr->depth--;
1967 : }
1968 0 : ndr->depth--;
1969 : }
1970 :
1971 0 : static enum ndr_err_code ndr_push_epm_Delete(struct ndr_push *ndr, ndr_flags_type flags, const struct epm_Delete *r)
1972 : {
1973 0 : uint32_t cntr_entries_0;
1974 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
1975 0 : if (flags & NDR_IN) {
1976 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_ents));
1977 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.num_ents));
1978 0 : for (cntr_entries_0 = 0; cntr_entries_0 < (r->in.num_ents); cntr_entries_0++) {
1979 0 : NDR_CHECK(ndr_push_epm_entry_t(ndr, NDR_SCALARS, &r->in.entries[cntr_entries_0]));
1980 : }
1981 0 : for (cntr_entries_0 = 0; cntr_entries_0 < (r->in.num_ents); cntr_entries_0++) {
1982 0 : NDR_CHECK(ndr_push_epm_entry_t(ndr, NDR_BUFFERS, &r->in.entries[cntr_entries_0]));
1983 : }
1984 : }
1985 0 : if (flags & NDR_OUT) {
1986 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
1987 : }
1988 0 : return NDR_ERR_SUCCESS;
1989 : }
1990 :
1991 0 : static enum ndr_err_code ndr_pull_epm_Delete(struct ndr_pull *ndr, ndr_flags_type flags, struct epm_Delete *r)
1992 : {
1993 0 : uint32_t size_entries_0 = 0;
1994 0 : uint32_t cntr_entries_0;
1995 0 : TALLOC_CTX *_mem_save_entries_0 = NULL;
1996 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
1997 0 : if (flags & NDR_IN) {
1998 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_ents));
1999 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.entries));
2000 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.entries, &size_entries_0));
2001 0 : NDR_PULL_ALLOC_N(ndr, r->in.entries, size_entries_0);
2002 0 : _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
2003 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.entries, 0);
2004 0 : for (cntr_entries_0 = 0; cntr_entries_0 < (size_entries_0); cntr_entries_0++) {
2005 0 : NDR_CHECK(ndr_pull_epm_entry_t(ndr, NDR_SCALARS, &r->in.entries[cntr_entries_0]));
2006 : }
2007 0 : for (cntr_entries_0 = 0; cntr_entries_0 < (size_entries_0); cntr_entries_0++) {
2008 0 : NDR_CHECK(ndr_pull_epm_entry_t(ndr, NDR_BUFFERS, &r->in.entries[cntr_entries_0]));
2009 : }
2010 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
2011 0 : if (r->in.entries) {
2012 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.entries, r->in.num_ents));
2013 : }
2014 0 : for (cntr_entries_0 = 0; cntr_entries_0 < (size_entries_0); cntr_entries_0++) {
2015 0 : }
2016 : }
2017 0 : if (flags & NDR_OUT) {
2018 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2019 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2020 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
2021 : }
2022 0 : return NDR_ERR_SUCCESS;
2023 : }
2024 :
2025 0 : _PUBLIC_ void ndr_print_epm_Delete(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct epm_Delete *r)
2026 : {
2027 0 : uint32_t cntr_entries_0;
2028 0 : ndr_print_struct(ndr, name, "epm_Delete");
2029 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2030 0 : ndr->depth++;
2031 0 : if (flags & NDR_SET_VALUES) {
2032 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2033 : }
2034 0 : if (flags & NDR_IN) {
2035 0 : ndr_print_struct(ndr, "in", "epm_Delete");
2036 0 : ndr->depth++;
2037 0 : ndr_print_uint32(ndr, "num_ents", r->in.num_ents);
2038 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "entries", (uint32_t)(r->in.num_ents));
2039 0 : ndr->depth++;
2040 0 : for (cntr_entries_0 = 0; cntr_entries_0 < (r->in.num_ents); cntr_entries_0++) {
2041 0 : ndr_print_epm_entry_t(ndr, "entries", &r->in.entries[cntr_entries_0]);
2042 : }
2043 0 : ndr->depth--;
2044 0 : ndr->depth--;
2045 : }
2046 0 : if (flags & NDR_OUT) {
2047 0 : ndr_print_struct(ndr, "out", "epm_Delete");
2048 0 : ndr->depth++;
2049 0 : ndr_print_uint32(ndr, "result", r->out.result);
2050 0 : ndr->depth--;
2051 : }
2052 0 : ndr->depth--;
2053 : }
2054 :
2055 203 : static enum ndr_err_code ndr_push_epm_Lookup(struct ndr_push *ndr, ndr_flags_type flags, const struct epm_Lookup *r)
2056 : {
2057 0 : uint32_t cntr_entries_0;
2058 203 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2059 203 : if (flags & NDR_IN) {
2060 98 : if (r->in.entry_handle == NULL) {
2061 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2062 : }
2063 98 : NDR_CHECK(ndr_push_epm_InquiryType(ndr, NDR_SCALARS, r->in.inquiry_type));
2064 98 : NDR_CHECK(ndr_push_full_ptr(ndr, r->in.object));
2065 98 : if (r->in.object) {
2066 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.object));
2067 : }
2068 98 : NDR_CHECK(ndr_push_full_ptr(ndr, r->in.interface_id));
2069 98 : if (r->in.interface_id) {
2070 0 : NDR_CHECK(ndr_push_rpc_if_id_t(ndr, NDR_SCALARS, r->in.interface_id));
2071 : }
2072 98 : NDR_CHECK(ndr_push_epm_VersionOption(ndr, NDR_SCALARS, r->in.vers_option));
2073 98 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.entry_handle));
2074 98 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.max_ents));
2075 : }
2076 203 : if (flags & NDR_OUT) {
2077 105 : if (r->out.entry_handle == NULL) {
2078 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2079 : }
2080 105 : if (r->out.num_ents == NULL) {
2081 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2082 : }
2083 105 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.entry_handle));
2084 105 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.num_ents));
2085 105 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.max_ents));
2086 105 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2087 105 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.num_ents));
2088 873 : for (cntr_entries_0 = 0; cntr_entries_0 < (*r->out.num_ents); cntr_entries_0++) {
2089 768 : NDR_CHECK(ndr_push_epm_entry_t(ndr, NDR_SCALARS, &r->out.entries[cntr_entries_0]));
2090 : }
2091 873 : for (cntr_entries_0 = 0; cntr_entries_0 < (*r->out.num_ents); cntr_entries_0++) {
2092 768 : NDR_CHECK(ndr_push_epm_entry_t(ndr, NDR_BUFFERS, &r->out.entries[cntr_entries_0]));
2093 : }
2094 105 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
2095 : }
2096 203 : return NDR_ERR_SUCCESS;
2097 : }
2098 :
2099 188 : static enum ndr_err_code ndr_pull_epm_Lookup(struct ndr_pull *ndr, ndr_flags_type flags, struct epm_Lookup *r)
2100 : {
2101 0 : uint32_t _ptr_object;
2102 0 : uint32_t _ptr_interface_id;
2103 188 : uint32_t size_entries_0 = 0;
2104 188 : uint32_t length_entries_0 = 0;
2105 0 : uint32_t cntr_entries_0;
2106 188 : TALLOC_CTX *_mem_save_object_0 = NULL;
2107 188 : TALLOC_CTX *_mem_save_interface_id_0 = NULL;
2108 188 : TALLOC_CTX *_mem_save_entry_handle_0 = NULL;
2109 188 : TALLOC_CTX *_mem_save_num_ents_0 = NULL;
2110 188 : TALLOC_CTX *_mem_save_entries_0 = NULL;
2111 188 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2112 188 : if (flags & NDR_IN) {
2113 98 : NDR_ZERO_STRUCT(r->out);
2114 :
2115 98 : NDR_CHECK(ndr_pull_epm_InquiryType(ndr, NDR_SCALARS, &r->in.inquiry_type));
2116 98 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_object));
2117 98 : if (_ptr_object) {
2118 0 : NDR_PULL_ALLOC(ndr, r->in.object);
2119 : } else {
2120 98 : r->in.object = NULL;
2121 : }
2122 98 : if (r->in.object) {
2123 0 : _mem_save_object_0 = NDR_PULL_GET_MEM_CTX(ndr);
2124 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.object, 0);
2125 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.object));
2126 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_object_0, 0);
2127 : }
2128 98 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_interface_id));
2129 98 : if (_ptr_interface_id) {
2130 0 : NDR_PULL_ALLOC(ndr, r->in.interface_id);
2131 : } else {
2132 98 : r->in.interface_id = NULL;
2133 : }
2134 98 : if (r->in.interface_id) {
2135 0 : _mem_save_interface_id_0 = NDR_PULL_GET_MEM_CTX(ndr);
2136 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.interface_id, 0);
2137 0 : NDR_CHECK(ndr_pull_rpc_if_id_t(ndr, NDR_SCALARS, r->in.interface_id));
2138 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_interface_id_0, 0);
2139 : }
2140 98 : NDR_CHECK(ndr_pull_epm_VersionOption(ndr, NDR_SCALARS, &r->in.vers_option));
2141 98 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2142 98 : NDR_PULL_ALLOC(ndr, r->in.entry_handle);
2143 : }
2144 98 : _mem_save_entry_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
2145 98 : NDR_PULL_SET_MEM_CTX(ndr, r->in.entry_handle, LIBNDR_FLAG_REF_ALLOC);
2146 98 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.entry_handle));
2147 98 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entry_handle_0, LIBNDR_FLAG_REF_ALLOC);
2148 98 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.max_ents));
2149 98 : NDR_PULL_ALLOC(ndr, r->out.entry_handle);
2150 98 : *r->out.entry_handle = *r->in.entry_handle;
2151 98 : NDR_PULL_ALLOC(ndr, r->out.num_ents);
2152 98 : NDR_ZERO_STRUCTP(r->out.num_ents);
2153 : }
2154 188 : if (flags & NDR_OUT) {
2155 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2156 : if (r->in.entry_handle == NULL) {
2157 : NDR_PULL_ALLOC(ndr, r->in.entry_handle);
2158 : NDR_ZERO_STRUCTP(r->in.entry_handle);
2159 : }
2160 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2161 90 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2162 15 : NDR_PULL_ALLOC(ndr, r->out.entry_handle);
2163 : }
2164 90 : _mem_save_entry_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
2165 90 : NDR_PULL_SET_MEM_CTX(ndr, r->out.entry_handle, LIBNDR_FLAG_REF_ALLOC);
2166 90 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.entry_handle));
2167 90 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entry_handle_0, LIBNDR_FLAG_REF_ALLOC);
2168 90 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2169 15 : NDR_PULL_ALLOC(ndr, r->out.num_ents);
2170 : }
2171 90 : _mem_save_num_ents_0 = NDR_PULL_GET_MEM_CTX(ndr);
2172 90 : NDR_PULL_SET_MEM_CTX(ndr, r->out.num_ents, LIBNDR_FLAG_REF_ALLOC);
2173 90 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.num_ents));
2174 90 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_num_ents_0, LIBNDR_FLAG_REF_ALLOC);
2175 90 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.entries));
2176 90 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.entries));
2177 90 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.entries, &size_entries_0));
2178 90 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.entries, &length_entries_0));
2179 90 : if (length_entries_0 > size_entries_0) {
2180 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_entries_0, length_entries_0);
2181 : }
2182 90 : NDR_PULL_ALLOC_N(ndr, r->out.entries, size_entries_0);
2183 90 : _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
2184 90 : NDR_PULL_SET_MEM_CTX(ndr, r->out.entries, 0);
2185 742 : for (cntr_entries_0 = 0; cntr_entries_0 < (length_entries_0); cntr_entries_0++) {
2186 652 : NDR_CHECK(ndr_pull_epm_entry_t(ndr, NDR_SCALARS, &r->out.entries[cntr_entries_0]));
2187 : }
2188 742 : for (cntr_entries_0 = 0; cntr_entries_0 < (length_entries_0); cntr_entries_0++) {
2189 652 : NDR_CHECK(ndr_pull_epm_entry_t(ndr, NDR_BUFFERS, &r->out.entries[cntr_entries_0]));
2190 : }
2191 90 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
2192 90 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
2193 90 : if (r->out.entries) {
2194 90 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.entries, r->in.max_ents));
2195 : }
2196 90 : if (r->out.entries) {
2197 90 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.entries, *r->out.num_ents));
2198 : }
2199 742 : for (cntr_entries_0 = 0; cntr_entries_0 < (length_entries_0); cntr_entries_0++) {
2200 0 : }
2201 : }
2202 188 : return NDR_ERR_SUCCESS;
2203 : }
2204 :
2205 30 : _PUBLIC_ void ndr_print_epm_Lookup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct epm_Lookup *r)
2206 : {
2207 0 : uint32_t cntr_entries_0;
2208 30 : ndr_print_struct(ndr, name, "epm_Lookup");
2209 30 : if (r == NULL) { ndr_print_null(ndr); return; }
2210 30 : ndr->depth++;
2211 30 : if (flags & NDR_SET_VALUES) {
2212 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2213 : }
2214 30 : if (flags & NDR_IN) {
2215 0 : ndr_print_struct(ndr, "in", "epm_Lookup");
2216 0 : ndr->depth++;
2217 0 : ndr_print_epm_InquiryType(ndr, "inquiry_type", r->in.inquiry_type);
2218 0 : ndr_print_ptr(ndr, "object", r->in.object);
2219 0 : ndr->depth++;
2220 0 : if (r->in.object) {
2221 0 : ndr_print_GUID(ndr, "object", r->in.object);
2222 : }
2223 0 : ndr->depth--;
2224 0 : ndr_print_ptr(ndr, "interface_id", r->in.interface_id);
2225 0 : ndr->depth++;
2226 0 : if (r->in.interface_id) {
2227 0 : ndr_print_rpc_if_id_t(ndr, "interface_id", r->in.interface_id);
2228 : }
2229 0 : ndr->depth--;
2230 0 : ndr_print_epm_VersionOption(ndr, "vers_option", r->in.vers_option);
2231 0 : ndr_print_ptr(ndr, "entry_handle", r->in.entry_handle);
2232 0 : ndr->depth++;
2233 0 : ndr_print_policy_handle(ndr, "entry_handle", r->in.entry_handle);
2234 0 : ndr->depth--;
2235 0 : ndr_print_uint32(ndr, "max_ents", r->in.max_ents);
2236 0 : ndr->depth--;
2237 : }
2238 30 : if (flags & NDR_OUT) {
2239 30 : ndr_print_struct(ndr, "out", "epm_Lookup");
2240 30 : ndr->depth++;
2241 30 : ndr_print_ptr(ndr, "entry_handle", r->out.entry_handle);
2242 30 : ndr->depth++;
2243 30 : ndr_print_policy_handle(ndr, "entry_handle", r->out.entry_handle);
2244 30 : ndr->depth--;
2245 30 : ndr_print_ptr(ndr, "num_ents", r->out.num_ents);
2246 30 : ndr->depth++;
2247 30 : ndr_print_uint32(ndr, "num_ents", *r->out.num_ents);
2248 30 : ndr->depth--;
2249 30 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "entries", (uint32_t)(*r->out.num_ents));
2250 30 : ndr->depth++;
2251 262 : for (cntr_entries_0 = 0; cntr_entries_0 < (*r->out.num_ents); cntr_entries_0++) {
2252 232 : ndr_print_epm_entry_t(ndr, "entries", &r->out.entries[cntr_entries_0]);
2253 : }
2254 30 : ndr->depth--;
2255 30 : ndr_print_uint32(ndr, "result", r->out.result);
2256 30 : ndr->depth--;
2257 : }
2258 30 : ndr->depth--;
2259 : }
2260 :
2261 15662 : _PUBLIC_ enum ndr_err_code ndr_push_epm_Map(struct ndr_push *ndr, ndr_flags_type flags, const struct epm_Map *r)
2262 : {
2263 250 : uint32_t cntr_towers_0;
2264 15662 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2265 15662 : if (flags & NDR_IN) {
2266 7580 : if (r->in.entry_handle == NULL) {
2267 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2268 : }
2269 7580 : NDR_CHECK(ndr_push_full_ptr(ndr, r->in.object));
2270 7580 : if (r->in.object) {
2271 7578 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.object));
2272 : }
2273 7580 : NDR_CHECK(ndr_push_full_ptr(ndr, r->in.map_tower));
2274 7580 : if (r->in.map_tower) {
2275 7580 : NDR_CHECK(ndr_push_epm_twr_t(ndr, NDR_SCALARS, r->in.map_tower));
2276 : }
2277 7580 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.entry_handle));
2278 7580 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.max_towers));
2279 : }
2280 15662 : if (flags & NDR_OUT) {
2281 8082 : if (r->out.entry_handle == NULL) {
2282 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2283 : }
2284 8082 : if (r->out.num_towers == NULL) {
2285 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2286 : }
2287 8082 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.entry_handle));
2288 8082 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.num_towers));
2289 8082 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.max_towers));
2290 8082 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2291 8082 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.num_towers));
2292 15811 : for (cntr_towers_0 = 0; cntr_towers_0 < (*r->out.num_towers); cntr_towers_0++) {
2293 7729 : NDR_CHECK(ndr_push_epm_twr_p_t(ndr, NDR_SCALARS, &r->out.towers[cntr_towers_0]));
2294 : }
2295 15811 : for (cntr_towers_0 = 0; cntr_towers_0 < (*r->out.num_towers); cntr_towers_0++) {
2296 7729 : NDR_CHECK(ndr_push_epm_twr_p_t(ndr, NDR_BUFFERS, &r->out.towers[cntr_towers_0]));
2297 : }
2298 8082 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
2299 : }
2300 15412 : return NDR_ERR_SUCCESS;
2301 : }
2302 :
2303 15443 : _PUBLIC_ enum ndr_err_code ndr_pull_epm_Map(struct ndr_pull *ndr, ndr_flags_type flags, struct epm_Map *r)
2304 : {
2305 252 : uint32_t _ptr_object;
2306 252 : uint32_t _ptr_map_tower;
2307 15443 : uint32_t size_towers_0 = 0;
2308 15443 : uint32_t length_towers_0 = 0;
2309 252 : uint32_t cntr_towers_0;
2310 15443 : TALLOC_CTX *_mem_save_object_0 = NULL;
2311 15443 : TALLOC_CTX *_mem_save_map_tower_0 = NULL;
2312 15443 : TALLOC_CTX *_mem_save_entry_handle_0 = NULL;
2313 15443 : TALLOC_CTX *_mem_save_num_towers_0 = NULL;
2314 15443 : TALLOC_CTX *_mem_save_towers_0 = NULL;
2315 15443 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2316 15443 : if (flags & NDR_IN) {
2317 7863 : NDR_ZERO_STRUCT(r->out);
2318 :
2319 7863 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_object));
2320 7863 : if (_ptr_object) {
2321 7619 : NDR_PULL_ALLOC(ndr, r->in.object);
2322 : } else {
2323 244 : r->in.object = NULL;
2324 : }
2325 7863 : if (r->in.object) {
2326 7619 : _mem_save_object_0 = NDR_PULL_GET_MEM_CTX(ndr);
2327 7619 : NDR_PULL_SET_MEM_CTX(ndr, r->in.object, 0);
2328 7619 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.object));
2329 7619 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_object_0, 0);
2330 : }
2331 7863 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_map_tower));
2332 7863 : if (_ptr_map_tower) {
2333 7863 : NDR_PULL_ALLOC(ndr, r->in.map_tower);
2334 : } else {
2335 0 : r->in.map_tower = NULL;
2336 : }
2337 7863 : if (r->in.map_tower) {
2338 7863 : _mem_save_map_tower_0 = NDR_PULL_GET_MEM_CTX(ndr);
2339 7863 : NDR_PULL_SET_MEM_CTX(ndr, r->in.map_tower, 0);
2340 7863 : NDR_CHECK(ndr_pull_epm_twr_t(ndr, NDR_SCALARS, r->in.map_tower));
2341 7863 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_map_tower_0, 0);
2342 : }
2343 7863 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2344 7863 : NDR_PULL_ALLOC(ndr, r->in.entry_handle);
2345 : }
2346 7863 : _mem_save_entry_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
2347 7863 : NDR_PULL_SET_MEM_CTX(ndr, r->in.entry_handle, LIBNDR_FLAG_REF_ALLOC);
2348 7863 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.entry_handle));
2349 7863 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entry_handle_0, LIBNDR_FLAG_REF_ALLOC);
2350 7863 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.max_towers));
2351 7863 : NDR_PULL_ALLOC(ndr, r->out.entry_handle);
2352 7863 : *r->out.entry_handle = *r->in.entry_handle;
2353 7863 : NDR_PULL_ALLOC(ndr, r->out.num_towers);
2354 7863 : NDR_ZERO_STRUCTP(r->out.num_towers);
2355 : }
2356 15443 : if (flags & NDR_OUT) {
2357 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2358 : if (r->in.entry_handle == NULL) {
2359 : NDR_PULL_ALLOC(ndr, r->in.entry_handle);
2360 : NDR_ZERO_STRUCTP(r->in.entry_handle);
2361 : }
2362 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2363 7580 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2364 503 : NDR_PULL_ALLOC(ndr, r->out.entry_handle);
2365 : }
2366 7580 : _mem_save_entry_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
2367 7580 : NDR_PULL_SET_MEM_CTX(ndr, r->out.entry_handle, LIBNDR_FLAG_REF_ALLOC);
2368 7580 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.entry_handle));
2369 7580 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entry_handle_0, LIBNDR_FLAG_REF_ALLOC);
2370 7580 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2371 503 : NDR_PULL_ALLOC(ndr, r->out.num_towers);
2372 : }
2373 7580 : _mem_save_num_towers_0 = NDR_PULL_GET_MEM_CTX(ndr);
2374 7580 : NDR_PULL_SET_MEM_CTX(ndr, r->out.num_towers, LIBNDR_FLAG_REF_ALLOC);
2375 7580 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.num_towers));
2376 7580 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_num_towers_0, LIBNDR_FLAG_REF_ALLOC);
2377 7580 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.towers));
2378 7580 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.towers));
2379 7580 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.towers, &size_towers_0));
2380 7580 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.towers, &length_towers_0));
2381 7580 : if (length_towers_0 > size_towers_0) {
2382 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_towers_0, length_towers_0);
2383 : }
2384 7580 : NDR_PULL_ALLOC_N(ndr, r->out.towers, size_towers_0);
2385 7580 : _mem_save_towers_0 = NDR_PULL_GET_MEM_CTX(ndr);
2386 7580 : NDR_PULL_SET_MEM_CTX(ndr, r->out.towers, 0);
2387 14880 : for (cntr_towers_0 = 0; cntr_towers_0 < (length_towers_0); cntr_towers_0++) {
2388 7300 : NDR_CHECK(ndr_pull_epm_twr_p_t(ndr, NDR_SCALARS, &r->out.towers[cntr_towers_0]));
2389 : }
2390 14880 : for (cntr_towers_0 = 0; cntr_towers_0 < (length_towers_0); cntr_towers_0++) {
2391 7300 : NDR_CHECK(ndr_pull_epm_twr_p_t(ndr, NDR_BUFFERS, &r->out.towers[cntr_towers_0]));
2392 : }
2393 7580 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_towers_0, 0);
2394 7580 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
2395 7580 : if (r->out.towers) {
2396 7580 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.towers, r->in.max_towers));
2397 : }
2398 7580 : if (r->out.towers) {
2399 7580 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.towers, *r->out.num_towers));
2400 : }
2401 14880 : for (cntr_towers_0 = 0; cntr_towers_0 < (length_towers_0); cntr_towers_0++) {
2402 125 : }
2403 : }
2404 15191 : return NDR_ERR_SUCCESS;
2405 : }
2406 :
2407 444 : _PUBLIC_ void ndr_print_epm_Map(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct epm_Map *r)
2408 : {
2409 2 : uint32_t cntr_towers_0;
2410 444 : ndr_print_struct(ndr, name, "epm_Map");
2411 444 : if (r == NULL) { ndr_print_null(ndr); return; }
2412 444 : ndr->depth++;
2413 444 : if (flags & NDR_SET_VALUES) {
2414 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2415 : }
2416 444 : if (flags & NDR_IN) {
2417 2 : ndr_print_struct(ndr, "in", "epm_Map");
2418 2 : ndr->depth++;
2419 2 : ndr_print_ptr(ndr, "object", r->in.object);
2420 2 : ndr->depth++;
2421 2 : if (r->in.object) {
2422 2 : ndr_print_GUID(ndr, "object", r->in.object);
2423 : }
2424 2 : ndr->depth--;
2425 2 : ndr_print_ptr(ndr, "map_tower", r->in.map_tower);
2426 2 : ndr->depth++;
2427 2 : if (r->in.map_tower) {
2428 2 : ndr_print_epm_twr_t(ndr, "map_tower", r->in.map_tower);
2429 : }
2430 2 : ndr->depth--;
2431 2 : ndr_print_ptr(ndr, "entry_handle", r->in.entry_handle);
2432 2 : ndr->depth++;
2433 2 : ndr_print_policy_handle(ndr, "entry_handle", r->in.entry_handle);
2434 2 : ndr->depth--;
2435 2 : ndr_print_uint32(ndr, "max_towers", r->in.max_towers);
2436 2 : ndr->depth--;
2437 : }
2438 444 : if (flags & NDR_OUT) {
2439 442 : ndr_print_struct(ndr, "out", "epm_Map");
2440 442 : ndr->depth++;
2441 442 : ndr_print_ptr(ndr, "entry_handle", r->out.entry_handle);
2442 442 : ndr->depth++;
2443 442 : ndr_print_policy_handle(ndr, "entry_handle", r->out.entry_handle);
2444 442 : ndr->depth--;
2445 442 : ndr_print_ptr(ndr, "num_towers", r->out.num_towers);
2446 442 : ndr->depth++;
2447 442 : ndr_print_uint32(ndr, "num_towers", *r->out.num_towers);
2448 442 : ndr->depth--;
2449 442 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "towers", (uint32_t)(*r->out.num_towers));
2450 442 : ndr->depth++;
2451 740 : for (cntr_towers_0 = 0; cntr_towers_0 < (*r->out.num_towers); cntr_towers_0++) {
2452 298 : ndr_print_epm_twr_p_t(ndr, "towers", &r->out.towers[cntr_towers_0]);
2453 : }
2454 442 : ndr->depth--;
2455 442 : ndr_print_uint32(ndr, "result", r->out.result);
2456 442 : ndr->depth--;
2457 : }
2458 444 : ndr->depth--;
2459 : }
2460 :
2461 30 : static enum ndr_err_code ndr_push_epm_LookupHandleFree(struct ndr_push *ndr, ndr_flags_type flags, const struct epm_LookupHandleFree *r)
2462 : {
2463 30 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2464 30 : if (flags & NDR_IN) {
2465 14 : if (r->in.entry_handle == NULL) {
2466 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2467 : }
2468 14 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.entry_handle));
2469 : }
2470 30 : if (flags & NDR_OUT) {
2471 16 : if (r->out.entry_handle == NULL) {
2472 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2473 : }
2474 16 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.entry_handle));
2475 16 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
2476 : }
2477 30 : return NDR_ERR_SUCCESS;
2478 : }
2479 :
2480 28 : static enum ndr_err_code ndr_pull_epm_LookupHandleFree(struct ndr_pull *ndr, ndr_flags_type flags, struct epm_LookupHandleFree *r)
2481 : {
2482 28 : TALLOC_CTX *_mem_save_entry_handle_0 = NULL;
2483 28 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2484 28 : if (flags & NDR_IN) {
2485 14 : NDR_ZERO_STRUCT(r->out);
2486 :
2487 14 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2488 14 : NDR_PULL_ALLOC(ndr, r->in.entry_handle);
2489 : }
2490 14 : _mem_save_entry_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
2491 14 : NDR_PULL_SET_MEM_CTX(ndr, r->in.entry_handle, LIBNDR_FLAG_REF_ALLOC);
2492 14 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.entry_handle));
2493 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entry_handle_0, LIBNDR_FLAG_REF_ALLOC);
2494 14 : NDR_PULL_ALLOC(ndr, r->out.entry_handle);
2495 14 : *r->out.entry_handle = *r->in.entry_handle;
2496 : }
2497 28 : if (flags & NDR_OUT) {
2498 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2499 : if (r->in.entry_handle == NULL) {
2500 : NDR_PULL_ALLOC(ndr, r->in.entry_handle);
2501 : NDR_ZERO_STRUCTP(r->in.entry_handle);
2502 : }
2503 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2504 14 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2505 2 : NDR_PULL_ALLOC(ndr, r->out.entry_handle);
2506 : }
2507 14 : _mem_save_entry_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
2508 14 : NDR_PULL_SET_MEM_CTX(ndr, r->out.entry_handle, LIBNDR_FLAG_REF_ALLOC);
2509 14 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.entry_handle));
2510 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entry_handle_0, LIBNDR_FLAG_REF_ALLOC);
2511 14 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
2512 : }
2513 28 : return NDR_ERR_SUCCESS;
2514 : }
2515 :
2516 4 : _PUBLIC_ void ndr_print_epm_LookupHandleFree(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct epm_LookupHandleFree *r)
2517 : {
2518 4 : ndr_print_struct(ndr, name, "epm_LookupHandleFree");
2519 4 : if (r == NULL) { ndr_print_null(ndr); return; }
2520 4 : ndr->depth++;
2521 4 : if (flags & NDR_SET_VALUES) {
2522 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2523 : }
2524 4 : if (flags & NDR_IN) {
2525 0 : ndr_print_struct(ndr, "in", "epm_LookupHandleFree");
2526 0 : ndr->depth++;
2527 0 : ndr_print_ptr(ndr, "entry_handle", r->in.entry_handle);
2528 0 : ndr->depth++;
2529 0 : ndr_print_policy_handle(ndr, "entry_handle", r->in.entry_handle);
2530 0 : ndr->depth--;
2531 0 : ndr->depth--;
2532 : }
2533 4 : if (flags & NDR_OUT) {
2534 4 : ndr_print_struct(ndr, "out", "epm_LookupHandleFree");
2535 4 : ndr->depth++;
2536 4 : ndr_print_ptr(ndr, "entry_handle", r->out.entry_handle);
2537 4 : ndr->depth++;
2538 4 : ndr_print_policy_handle(ndr, "entry_handle", r->out.entry_handle);
2539 4 : ndr->depth--;
2540 4 : ndr_print_uint32(ndr, "result", r->out.result);
2541 4 : ndr->depth--;
2542 : }
2543 4 : ndr->depth--;
2544 : }
2545 :
2546 0 : static enum ndr_err_code ndr_push_epm_InqObject(struct ndr_push *ndr, ndr_flags_type flags, const struct epm_InqObject *r)
2547 : {
2548 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2549 0 : if (flags & NDR_IN) {
2550 0 : if (r->in.epm_object == NULL) {
2551 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2552 : }
2553 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.epm_object));
2554 : }
2555 0 : if (flags & NDR_OUT) {
2556 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
2557 : }
2558 0 : return NDR_ERR_SUCCESS;
2559 : }
2560 :
2561 0 : static enum ndr_err_code ndr_pull_epm_InqObject(struct ndr_pull *ndr, ndr_flags_type flags, struct epm_InqObject *r)
2562 : {
2563 0 : TALLOC_CTX *_mem_save_epm_object_0 = NULL;
2564 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2565 0 : if (flags & NDR_IN) {
2566 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2567 0 : NDR_PULL_ALLOC(ndr, r->in.epm_object);
2568 : }
2569 0 : _mem_save_epm_object_0 = NDR_PULL_GET_MEM_CTX(ndr);
2570 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.epm_object, LIBNDR_FLAG_REF_ALLOC);
2571 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.epm_object));
2572 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_epm_object_0, LIBNDR_FLAG_REF_ALLOC);
2573 : }
2574 0 : if (flags & NDR_OUT) {
2575 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2576 : if (r->in.epm_object == NULL) {
2577 : NDR_PULL_ALLOC(ndr, r->in.epm_object);
2578 : NDR_ZERO_STRUCTP(r->in.epm_object);
2579 : }
2580 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2581 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
2582 : }
2583 0 : return NDR_ERR_SUCCESS;
2584 : }
2585 :
2586 0 : _PUBLIC_ void ndr_print_epm_InqObject(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct epm_InqObject *r)
2587 : {
2588 0 : ndr_print_struct(ndr, name, "epm_InqObject");
2589 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2590 0 : ndr->depth++;
2591 0 : if (flags & NDR_SET_VALUES) {
2592 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2593 : }
2594 0 : if (flags & NDR_IN) {
2595 0 : ndr_print_struct(ndr, "in", "epm_InqObject");
2596 0 : ndr->depth++;
2597 0 : ndr_print_ptr(ndr, "epm_object", r->in.epm_object);
2598 0 : ndr->depth++;
2599 0 : ndr_print_GUID(ndr, "epm_object", r->in.epm_object);
2600 0 : ndr->depth--;
2601 0 : ndr->depth--;
2602 : }
2603 0 : if (flags & NDR_OUT) {
2604 0 : ndr_print_struct(ndr, "out", "epm_InqObject");
2605 0 : ndr->depth++;
2606 0 : ndr_print_uint32(ndr, "result", r->out.result);
2607 0 : ndr->depth--;
2608 : }
2609 0 : ndr->depth--;
2610 : }
2611 :
2612 0 : static enum ndr_err_code ndr_push_epm_MgmtDelete(struct ndr_push *ndr, ndr_flags_type flags, const struct epm_MgmtDelete *r)
2613 : {
2614 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2615 0 : if (flags & NDR_IN) {
2616 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.object_speced));
2617 0 : NDR_CHECK(ndr_push_full_ptr(ndr, r->in.object));
2618 0 : if (r->in.object) {
2619 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.object));
2620 : }
2621 0 : NDR_CHECK(ndr_push_full_ptr(ndr, r->in.tower));
2622 0 : if (r->in.tower) {
2623 0 : NDR_CHECK(ndr_push_epm_twr_t(ndr, NDR_SCALARS, r->in.tower));
2624 : }
2625 : }
2626 0 : if (flags & NDR_OUT) {
2627 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
2628 : }
2629 0 : return NDR_ERR_SUCCESS;
2630 : }
2631 :
2632 0 : static enum ndr_err_code ndr_pull_epm_MgmtDelete(struct ndr_pull *ndr, ndr_flags_type flags, struct epm_MgmtDelete *r)
2633 : {
2634 0 : uint32_t _ptr_object;
2635 0 : uint32_t _ptr_tower;
2636 0 : TALLOC_CTX *_mem_save_object_0 = NULL;
2637 0 : TALLOC_CTX *_mem_save_tower_0 = NULL;
2638 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2639 0 : if (flags & NDR_IN) {
2640 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.object_speced));
2641 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_object));
2642 0 : if (_ptr_object) {
2643 0 : NDR_PULL_ALLOC(ndr, r->in.object);
2644 : } else {
2645 0 : r->in.object = NULL;
2646 : }
2647 0 : if (r->in.object) {
2648 0 : _mem_save_object_0 = NDR_PULL_GET_MEM_CTX(ndr);
2649 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.object, 0);
2650 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.object));
2651 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_object_0, 0);
2652 : }
2653 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_tower));
2654 0 : if (_ptr_tower) {
2655 0 : NDR_PULL_ALLOC(ndr, r->in.tower);
2656 : } else {
2657 0 : r->in.tower = NULL;
2658 : }
2659 0 : if (r->in.tower) {
2660 0 : _mem_save_tower_0 = NDR_PULL_GET_MEM_CTX(ndr);
2661 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.tower, 0);
2662 0 : NDR_CHECK(ndr_pull_epm_twr_t(ndr, NDR_SCALARS, r->in.tower));
2663 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_tower_0, 0);
2664 : }
2665 : }
2666 0 : if (flags & NDR_OUT) {
2667 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2668 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2669 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
2670 : }
2671 0 : return NDR_ERR_SUCCESS;
2672 : }
2673 :
2674 0 : _PUBLIC_ void ndr_print_epm_MgmtDelete(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct epm_MgmtDelete *r)
2675 : {
2676 0 : ndr_print_struct(ndr, name, "epm_MgmtDelete");
2677 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2678 0 : ndr->depth++;
2679 0 : if (flags & NDR_SET_VALUES) {
2680 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2681 : }
2682 0 : if (flags & NDR_IN) {
2683 0 : ndr_print_struct(ndr, "in", "epm_MgmtDelete");
2684 0 : ndr->depth++;
2685 0 : ndr_print_uint32(ndr, "object_speced", r->in.object_speced);
2686 0 : ndr_print_ptr(ndr, "object", r->in.object);
2687 0 : ndr->depth++;
2688 0 : if (r->in.object) {
2689 0 : ndr_print_GUID(ndr, "object", r->in.object);
2690 : }
2691 0 : ndr->depth--;
2692 0 : ndr_print_ptr(ndr, "tower", r->in.tower);
2693 0 : ndr->depth++;
2694 0 : if (r->in.tower) {
2695 0 : ndr_print_epm_twr_t(ndr, "tower", r->in.tower);
2696 : }
2697 0 : ndr->depth--;
2698 0 : ndr->depth--;
2699 : }
2700 0 : if (flags & NDR_OUT) {
2701 0 : ndr_print_struct(ndr, "out", "epm_MgmtDelete");
2702 0 : ndr->depth++;
2703 0 : ndr_print_uint32(ndr, "result", r->out.result);
2704 0 : ndr->depth--;
2705 : }
2706 0 : ndr->depth--;
2707 : }
2708 :
2709 0 : static enum ndr_err_code ndr_push_epm_MapAuth(struct ndr_push *ndr, ndr_flags_type flags, const struct epm_MapAuth *r)
2710 : {
2711 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2712 0 : if (flags & NDR_IN) {
2713 0 : }
2714 0 : if (flags & NDR_OUT) {
2715 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
2716 : }
2717 0 : return NDR_ERR_SUCCESS;
2718 : }
2719 :
2720 0 : static enum ndr_err_code ndr_pull_epm_MapAuth(struct ndr_pull *ndr, ndr_flags_type flags, struct epm_MapAuth *r)
2721 : {
2722 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2723 0 : if (flags & NDR_IN) {
2724 0 : }
2725 0 : if (flags & NDR_OUT) {
2726 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2727 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2728 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
2729 : }
2730 0 : return NDR_ERR_SUCCESS;
2731 : }
2732 :
2733 0 : _PUBLIC_ void ndr_print_epm_MapAuth(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct epm_MapAuth *r)
2734 : {
2735 0 : ndr_print_struct(ndr, name, "epm_MapAuth");
2736 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2737 0 : ndr->depth++;
2738 0 : if (flags & NDR_SET_VALUES) {
2739 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2740 : }
2741 0 : if (flags & NDR_IN) {
2742 0 : ndr_print_struct(ndr, "in", "epm_MapAuth");
2743 0 : ndr->depth++;
2744 0 : ndr->depth--;
2745 : }
2746 0 : if (flags & NDR_OUT) {
2747 0 : ndr_print_struct(ndr, "out", "epm_MapAuth");
2748 0 : ndr->depth++;
2749 0 : ndr_print_uint32(ndr, "result", r->out.result);
2750 0 : ndr->depth--;
2751 : }
2752 0 : ndr->depth--;
2753 : }
2754 :
2755 : #ifndef SKIP_NDR_TABLE_epmapper
2756 : static const struct ndr_interface_public_struct epmapper_public_structs[] = {
2757 : {
2758 : .name = "epm_twr_t",
2759 : .struct_size = sizeof(struct epm_twr_t ),
2760 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_epm_twr_t,
2761 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_epm_twr_t,
2762 : .ndr_print = (ndr_print_function_t) ndr_print_flags_epm_twr_t,
2763 : },
2764 : { .name = NULL }
2765 : };
2766 :
2767 : static const struct ndr_interface_call epmapper_calls[] = {
2768 : {
2769 : "epm_Insert",
2770 : sizeof(struct epm_Insert),
2771 : (ndr_push_flags_fn_t) ndr_push_epm_Insert,
2772 : (ndr_pull_flags_fn_t) ndr_pull_epm_Insert,
2773 : (ndr_print_function_t) ndr_print_epm_Insert,
2774 : { 0, NULL },
2775 : { 0, NULL },
2776 : },
2777 : {
2778 : "epm_Delete",
2779 : sizeof(struct epm_Delete),
2780 : (ndr_push_flags_fn_t) ndr_push_epm_Delete,
2781 : (ndr_pull_flags_fn_t) ndr_pull_epm_Delete,
2782 : (ndr_print_function_t) ndr_print_epm_Delete,
2783 : { 0, NULL },
2784 : { 0, NULL },
2785 : },
2786 : {
2787 : "epm_Lookup",
2788 : sizeof(struct epm_Lookup),
2789 : (ndr_push_flags_fn_t) ndr_push_epm_Lookup,
2790 : (ndr_pull_flags_fn_t) ndr_pull_epm_Lookup,
2791 : (ndr_print_function_t) ndr_print_epm_Lookup,
2792 : { 0, NULL },
2793 : { 0, NULL },
2794 : },
2795 : {
2796 : "epm_Map",
2797 : sizeof(struct epm_Map),
2798 : (ndr_push_flags_fn_t) ndr_push_epm_Map,
2799 : (ndr_pull_flags_fn_t) ndr_pull_epm_Map,
2800 : (ndr_print_function_t) ndr_print_epm_Map,
2801 : { 0, NULL },
2802 : { 0, NULL },
2803 : },
2804 : {
2805 : "epm_LookupHandleFree",
2806 : sizeof(struct epm_LookupHandleFree),
2807 : (ndr_push_flags_fn_t) ndr_push_epm_LookupHandleFree,
2808 : (ndr_pull_flags_fn_t) ndr_pull_epm_LookupHandleFree,
2809 : (ndr_print_function_t) ndr_print_epm_LookupHandleFree,
2810 : { 0, NULL },
2811 : { 0, NULL },
2812 : },
2813 : {
2814 : "epm_InqObject",
2815 : sizeof(struct epm_InqObject),
2816 : (ndr_push_flags_fn_t) ndr_push_epm_InqObject,
2817 : (ndr_pull_flags_fn_t) ndr_pull_epm_InqObject,
2818 : (ndr_print_function_t) ndr_print_epm_InqObject,
2819 : { 0, NULL },
2820 : { 0, NULL },
2821 : },
2822 : {
2823 : "epm_MgmtDelete",
2824 : sizeof(struct epm_MgmtDelete),
2825 : (ndr_push_flags_fn_t) ndr_push_epm_MgmtDelete,
2826 : (ndr_pull_flags_fn_t) ndr_pull_epm_MgmtDelete,
2827 : (ndr_print_function_t) ndr_print_epm_MgmtDelete,
2828 : { 0, NULL },
2829 : { 0, NULL },
2830 : },
2831 : {
2832 : "epm_MapAuth",
2833 : sizeof(struct epm_MapAuth),
2834 : (ndr_push_flags_fn_t) ndr_push_epm_MapAuth,
2835 : (ndr_pull_flags_fn_t) ndr_pull_epm_MapAuth,
2836 : (ndr_print_function_t) ndr_print_epm_MapAuth,
2837 : { 0, NULL },
2838 : { 0, NULL },
2839 : },
2840 : { .name = NULL }
2841 : };
2842 :
2843 : static const char * const epmapper_endpoint_strings[] = {
2844 : "ncacn_np:[\\pipe\\epmapper]",
2845 : "ncacn_ip_tcp:[135]",
2846 : "ncacn_http:[593]",
2847 : "ncalrpc:[EPMAPPER]",
2848 : };
2849 :
2850 : static const struct ndr_interface_string_array epmapper_endpoints = {
2851 : .count = 4,
2852 : .names = epmapper_endpoint_strings
2853 : };
2854 :
2855 : static const char * const epmapper_authservice_strings[] = {
2856 : "host",
2857 : };
2858 :
2859 : static const struct ndr_interface_string_array epmapper_authservices = {
2860 : .count = 1,
2861 : .names = epmapper_authservice_strings
2862 : };
2863 :
2864 :
2865 : const struct ndr_interface_table ndr_table_epmapper = {
2866 : .name = "epmapper",
2867 : .syntax_id = {
2868 : {0xe1af8308,0x5d1f,0x11c9,{0x91,0xa4},{0x08,0x00,0x2b,0x14,0xa0,0xfa}},
2869 : NDR_EPMAPPER_VERSION
2870 : },
2871 : .helpstring = NDR_EPMAPPER_HELPSTRING,
2872 : .num_calls = 8,
2873 : .calls = epmapper_calls,
2874 : .num_public_structs = 1,
2875 : .public_structs = epmapper_public_structs,
2876 : .endpoints = &epmapper_endpoints,
2877 : .authservices = &epmapper_authservices
2878 : };
2879 :
2880 : #endif /* SKIP_NDR_TABLE_epmapper */
|