Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/librpc/gen_ndr/ndr_frsrpc.h"
5 :
6 : #include "librpc/gen_ndr/ndr_misc.h"
7 : #include "librpc/gen_ndr/ndr_fscc.h"
8 : #include "librpc/gen_ndr/ndr_bkupblobs.h"
9 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktChunkGuidName(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_CommPktChunkGuidName *r)
10 : {
11 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
12 0 : if (ndr_flags & NDR_SCALARS) {
13 0 : NDR_CHECK(ndr_push_align(ndr, 1));
14 : {
15 0 : struct ndr_push *_ndr_guid;
16 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_guid, 4, -1));
17 0 : NDR_CHECK(ndr_push_GUID(_ndr_guid, NDR_SCALARS, &r->guid));
18 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_guid, 4, -1));
19 : }
20 : {
21 0 : libndr_flags _flags_save_string = ndr->flags;
22 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
23 : {
24 0 : struct ndr_push *_ndr_name;
25 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_name, 4, -1));
26 0 : NDR_CHECK(ndr_push_string(_ndr_name, NDR_SCALARS, r->name));
27 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_name, 4, -1));
28 : }
29 0 : ndr->flags = _flags_save_string;
30 : }
31 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
32 : }
33 0 : if (ndr_flags & NDR_BUFFERS) {
34 0 : }
35 0 : return NDR_ERR_SUCCESS;
36 : }
37 :
38 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktChunkGuidName(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_CommPktChunkGuidName *r)
39 : {
40 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
41 0 : if (ndr_flags & NDR_SCALARS) {
42 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
43 : {
44 0 : struct ndr_pull *_ndr_guid;
45 0 : ssize_t sub_size = -1;
46 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_guid, 4, sub_size));
47 0 : NDR_CHECK(ndr_pull_GUID(_ndr_guid, NDR_SCALARS, &r->guid));
48 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_guid, 4, sub_size));
49 : }
50 : {
51 0 : libndr_flags _flags_save_string = ndr->flags;
52 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
53 : {
54 0 : struct ndr_pull *_ndr_name;
55 0 : ssize_t sub_size = -1;
56 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_name, 4, sub_size));
57 0 : NDR_CHECK(ndr_pull_string(_ndr_name, NDR_SCALARS, &r->name));
58 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_name, 4, sub_size));
59 : }
60 0 : ndr->flags = _flags_save_string;
61 : }
62 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
63 : }
64 0 : if (ndr_flags & NDR_BUFFERS) {
65 0 : }
66 0 : return NDR_ERR_SUCCESS;
67 : }
68 :
69 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktChunkGuidName(struct ndr_print *ndr, const char *name, const struct frsrpc_CommPktChunkGuidName *r)
70 : {
71 0 : ndr_print_struct(ndr, name, "frsrpc_CommPktChunkGuidName");
72 0 : if (r == NULL) { ndr_print_null(ndr); return; }
73 0 : ndr->depth++;
74 0 : ndr_print_GUID(ndr, "guid", &r->guid);
75 : {
76 0 : libndr_flags _flags_save_string = ndr->flags;
77 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
78 0 : ndr_print_string(ndr, "name", r->name);
79 0 : ndr->flags = _flags_save_string;
80 : }
81 0 : ndr->depth--;
82 : }
83 :
84 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktGSVN(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_CommPktGSVN *r)
85 : {
86 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
87 0 : if (ndr_flags & NDR_SCALARS) {
88 0 : NDR_CHECK(ndr_push_align(ndr, 8));
89 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->vsn));
90 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->guid));
91 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
92 : }
93 0 : if (ndr_flags & NDR_BUFFERS) {
94 0 : }
95 0 : return NDR_ERR_SUCCESS;
96 : }
97 :
98 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktGSVN(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_CommPktGSVN *r)
99 : {
100 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
101 0 : if (ndr_flags & NDR_SCALARS) {
102 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
103 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->vsn));
104 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->guid));
105 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
106 : }
107 0 : if (ndr_flags & NDR_BUFFERS) {
108 0 : }
109 0 : return NDR_ERR_SUCCESS;
110 : }
111 :
112 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktGSVN(struct ndr_print *ndr, const char *name, const struct frsrpc_CommPktGSVN *r)
113 : {
114 0 : ndr_print_struct(ndr, name, "frsrpc_CommPktGSVN");
115 0 : if (r == NULL) { ndr_print_null(ndr); return; }
116 0 : ndr->depth++;
117 0 : ndr_print_hyper(ndr, "vsn", r->vsn);
118 0 : ndr_print_GUID(ndr, "guid", &r->guid);
119 0 : ndr->depth--;
120 : }
121 :
122 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktCoCmdFlags(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
123 : {
124 : {
125 0 : libndr_flags _flags_save_BITMAP = ndr->flags;
126 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
127 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
128 0 : ndr->flags = _flags_save_BITMAP;
129 : }
130 0 : return NDR_ERR_SUCCESS;
131 : }
132 :
133 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktCoCmdFlags(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
134 : {
135 0 : uint32_t v;
136 : {
137 0 : libndr_flags _flags_save_BITMAP = ndr->flags;
138 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
139 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
140 0 : *r = v;
141 0 : ndr->flags = _flags_save_BITMAP;
142 : }
143 0 : return NDR_ERR_SUCCESS;
144 : }
145 :
146 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktCoCmdFlags(struct ndr_print *ndr, const char *name, uint32_t r)
147 : {
148 : {
149 0 : libndr_flags _flags_save_BITMAP = ndr->flags;
150 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
151 0 : ndr_print_uint32(ndr, name, r);
152 0 : ndr->depth++;
153 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_ABORT_CO", FRSRPC_CO_FLAG_ABORT_CO, r);
154 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_VV_ACTIVATED", FRSRPC_CO_FLAG_VV_ACTIVATED, r);
155 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_CONTENT_CMD", FRSRPC_CO_FLAG_CONTENT_CMD, r);
156 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_LOCATION_CMD", FRSRPC_CO_FLAG_LOCATION_CMD, r);
157 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_ONLIST", FRSRPC_CO_FLAG_ONLIST, r);
158 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_LOCALCO", FRSRPC_CO_FLAG_LOCALCO, r);
159 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_RETRY", FRSRPC_CO_FLAG_RETRY, r);
160 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_INST_INCOMPLETE", FRSRPC_CO_FLAG_INST_INCOMPLETE, r);
161 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_OUT_OF_ORDER", FRSRPC_CO_FLAG_OUT_OF_ORDER, r);
162 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_NEW_FILE", FRSRPC_CO_FLAG_NEW_FILE, r);
163 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_CONTROL", FRSRPC_CO_FLAG_CONTROL, r);
164 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_DIRECTED_CO", FRSRPC_CO_FLAG_DIRECTED_CO, r);
165 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_VVJOIN_TO_ORIG", FRSRPC_CO_FLAG_VVJOIN_TO_ORIG, r);
166 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_SKIP_ORIG_REC_C", FRSRPC_CO_FLAG_SKIP_ORIG_REC_C, r);
167 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_MOVEIN_GEN", FRSRPC_CO_FLAG_MOVEIN_GEN, r);
168 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_MORPH_GEN_HEAD", FRSRPC_CO_FLAG_MORPH_GEN_HEAD, r);
169 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_JUST_OID_RESET", FRSRPC_CO_FLAG_JUST_OID_RESET, r);
170 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_COMPRESSED_STAGE", FRSRPC_CO_FLAG_COMPRESSED_STAGE, r);
171 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_FLAG_SKIP_VV_UPDATE", FRSRPC_CO_FLAG_SKIP_VV_UPDATE, r);
172 0 : ndr->depth--;
173 0 : ndr->flags = _flags_save_BITMAP;
174 : }
175 0 : }
176 :
177 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktCoCmdIFlags(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
178 : {
179 : {
180 0 : libndr_flags _flags_save_BITMAP = ndr->flags;
181 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
182 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
183 0 : ndr->flags = _flags_save_BITMAP;
184 : }
185 0 : return NDR_ERR_SUCCESS;
186 : }
187 :
188 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktCoCmdIFlags(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
189 : {
190 0 : uint32_t v;
191 : {
192 0 : libndr_flags _flags_save_BITMAP = ndr->flags;
193 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
194 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
195 0 : *r = v;
196 0 : ndr->flags = _flags_save_BITMAP;
197 : }
198 0 : return NDR_ERR_SUCCESS;
199 : }
200 :
201 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktCoCmdIFlags(struct ndr_print *ndr, const char *name, uint32_t r)
202 : {
203 : {
204 0 : libndr_flags _flags_save_BITMAP = ndr->flags;
205 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
206 0 : ndr_print_uint32(ndr, name, r);
207 0 : ndr->depth++;
208 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_IFLAG_VVRETIRE_EXEC", FRSRPC_CO_IFLAG_VVRETIRE_EXEC, r);
209 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_IFLAG_CO_ABORT", FRSRPC_CO_IFLAG_CO_ABORT, r);
210 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CO_IFLAG_DIR_ENUM_PENDING", FRSRPC_CO_IFLAG_DIR_ENUM_PENDING, r);
211 0 : ndr->depth--;
212 0 : ndr->flags = _flags_save_BITMAP;
213 : }
214 0 : }
215 :
216 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktCoCmdStatus(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktCoCmdStatus r)
217 : {
218 : {
219 0 : libndr_flags _flags_save_ENUM = ndr->flags;
220 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
221 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
222 0 : ndr->flags = _flags_save_ENUM;
223 : }
224 0 : return NDR_ERR_SUCCESS;
225 : }
226 :
227 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktCoCmdStatus(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktCoCmdStatus *r)
228 : {
229 0 : uint32_t v;
230 : {
231 0 : libndr_flags _flags_save_ENUM = ndr->flags;
232 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
233 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
234 0 : *r = v;
235 0 : ndr->flags = _flags_save_ENUM;
236 : }
237 0 : return NDR_ERR_SUCCESS;
238 : }
239 :
240 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktCoCmdStatus(struct ndr_print *ndr, const char *name, enum frsrpc_CommPktCoCmdStatus r)
241 : {
242 0 : const char *val = NULL;
243 :
244 : {
245 0 : libndr_flags _flags_save_ENUM = ndr->flags;
246 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
247 0 : switch (r) {
248 0 : case FRSRPC_CO_STATUS_CO_ENTERED_LOG: val = "FRSRPC_CO_STATUS_CO_ENTERED_LOG"; break;
249 0 : case FRSRPC_CO_STATUS_ALLOC_STAGING_LOCAL_CO: val = "FRSRPC_CO_STATUS_ALLOC_STAGING_LOCAL_CO"; break;
250 0 : case FRSRPC_CO_STATUS_LOCAL_CO_STAGING_STARTED: val = "FRSRPC_CO_STATUS_LOCAL_CO_STAGING_STARTED"; break;
251 0 : case FRSRPC_CO_STATUS_LOCAL_CO_STAGING_COMPLETED: val = "FRSRPC_CO_STATUS_LOCAL_CO_STAGING_COMPLETED"; break;
252 0 : case FRSRPC_CO_STATUS_WAIT_RETRY_LOCAL_CO_STAGING: val = "FRSRPC_CO_STATUS_WAIT_RETRY_LOCAL_CO_STAGING"; break;
253 0 : case FRSRPC_CO_STATUS_ALLOC_STAGING_REMOTE_CO: val = "FRSRPC_CO_STATUS_ALLOC_STAGING_REMOTE_CO"; break;
254 0 : case FRSRPC_CO_STATUS_REMOTE_CO_STAGING_STARTED: val = "FRSRPC_CO_STATUS_REMOTE_CO_STAGING_STARTED"; break;
255 0 : case FRSRPC_CO_STATUS_REMOTE_CO_STAGING_COMPLETED: val = "FRSRPC_CO_STATUS_REMOTE_CO_STAGING_COMPLETED"; break;
256 0 : case FRSRPC_CO_STATUS_WAIT_RETRY_REMOTE_CO_STAGING: val = "FRSRPC_CO_STATUS_WAIT_RETRY_REMOTE_CO_STAGING"; break;
257 0 : case FRSRPC_CO_STATUS_FILE_INSTALL_REQUESTED: val = "FRSRPC_CO_STATUS_FILE_INSTALL_REQUESTED"; break;
258 0 : case FRSRPC_CO_STATUS_FILE_INSTALL_STARTED: val = "FRSRPC_CO_STATUS_FILE_INSTALL_STARTED"; break;
259 0 : case FRSRPC_CO_STATUS_FILE_INSTALL_COMPLETED: val = "FRSRPC_CO_STATUS_FILE_INSTALL_COMPLETED"; break;
260 0 : case FRSRPC_CO_STATUS_FILE_INSTALL_WAIT_RETRY: val = "FRSRPC_CO_STATUS_FILE_INSTALL_WAIT_RETRY"; break;
261 0 : case FRSRPC_CO_STATUS_FILE_INSTALL_RETRYING: val = "FRSRPC_CO_STATUS_FILE_INSTALL_RETRYING"; break;
262 0 : case FRSRPC_CO_STATUS_FILE_INSTALL_RENAME_RETRYING: val = "FRSRPC_CO_STATUS_FILE_INSTALL_RENAME_RETRYING"; break;
263 0 : case FRSRPC_CO_STATUS_FILE_INSTALL_DELETE_RETRYING: val = "FRSRPC_CO_STATUS_FILE_INSTALL_DELETE_RETRYING"; break;
264 0 : case FRSRPC_CO_STATUS_CO_RECYCLED_FOR_ENUM: val = "FRSRPC_CO_STATUS_CO_RECYCLED_FOR_ENUM"; break;
265 0 : case FRSRPC_CO_STATUS_REQUEST_OUTBOUND_PROPAGATION: val = "FRSRPC_CO_STATUS_REQUEST_OUTBOUND_PROPAGATION"; break;
266 0 : case FRSRPC_CO_STATUS_REQUEST_ACCEPTED_OUTBOUND_LOG: val = "FRSRPC_CO_STATUS_REQUEST_ACCEPTED_OUTBOUND_LOG"; break;
267 0 : case FRSRPC_CO_STATUS_DB_STATE_UPDATE_STARTED: val = "FRSRPC_CO_STATUS_DB_STATE_UPDATE_STARTED"; break;
268 0 : case FRSRPC_CO_STATUS_DB_STATE_UPDATE_COMPLETED: val = "FRSRPC_CO_STATUS_DB_STATE_UPDATE_COMPLETED"; break;
269 0 : case FRSRPC_CO_STATUS_CO_ABORTED: val = "FRSRPC_CO_STATUS_CO_ABORTED"; break;
270 : }
271 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
272 0 : ndr->flags = _flags_save_ENUM;
273 : }
274 0 : }
275 :
276 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktCoCmdContentCmd(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
277 : {
278 : {
279 0 : libndr_flags _flags_save_BITMAP = ndr->flags;
280 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
281 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
282 0 : ndr->flags = _flags_save_BITMAP;
283 : }
284 0 : return NDR_ERR_SUCCESS;
285 : }
286 :
287 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktCoCmdContentCmd(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
288 : {
289 0 : uint32_t v;
290 : {
291 0 : libndr_flags _flags_save_BITMAP = ndr->flags;
292 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
293 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
294 0 : *r = v;
295 0 : ndr->flags = _flags_save_BITMAP;
296 : }
297 0 : return NDR_ERR_SUCCESS;
298 : }
299 :
300 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktCoCmdContentCmd(struct ndr_print *ndr, const char *name, uint32_t r)
301 : {
302 : {
303 0 : libndr_flags _flags_save_BITMAP = ndr->flags;
304 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
305 0 : ndr_print_uint32(ndr, name, r);
306 0 : ndr->depth++;
307 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_DATA_OVERWRITE", FRSRPC_CONTENT_REASON_DATA_OVERWRITE, r);
308 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_DATA_EXTEND", FRSRPC_CONTENT_REASON_DATA_EXTEND, r);
309 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_DATA_TRUNCATION", FRSRPC_CONTENT_REASON_DATA_TRUNCATION, r);
310 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_NAMED_DATA_OVERWRITE", FRSRPC_CONTENT_REASON_NAMED_DATA_OVERWRITE, r);
311 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_NAMED_DATA_EXTEND", FRSRPC_CONTENT_REASON_NAMED_DATA_EXTEND, r);
312 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_NAMED_DATA_TRUNCATION", FRSRPC_CONTENT_REASON_NAMED_DATA_TRUNCATION, r);
313 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_FILE_CREATE", FRSRPC_CONTENT_REASON_FILE_CREATE, r);
314 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_FILE_DELETE", FRSRPC_CONTENT_REASON_FILE_DELETE, r);
315 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_EA_CHANGE", FRSRPC_CONTENT_REASON_EA_CHANGE, r);
316 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_SECURITY_CHANGE", FRSRPC_CONTENT_REASON_SECURITY_CHANGE, r);
317 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_OLD_NAME", FRSRPC_CONTENT_REASON_OLD_NAME, r);
318 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_NEW_NAME", FRSRPC_CONTENT_REASON_NEW_NAME, r);
319 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_BASIC_INFO_CHANGE", FRSRPC_CONTENT_REASON_BASIC_INFO_CHANGE, r);
320 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FRSRPC_CONTENT_REASON_COMPRESSION_CHANGE", FRSRPC_CONTENT_REASON_COMPRESSION_CHANGE, r);
321 0 : ndr->depth--;
322 0 : ndr->flags = _flags_save_BITMAP;
323 : }
324 0 : }
325 :
326 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktCoCmdLocationCmd(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktCoCmdLocationCmd r)
327 : {
328 : {
329 0 : libndr_flags _flags_save_ENUM = ndr->flags;
330 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
331 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
332 0 : ndr->flags = _flags_save_ENUM;
333 : }
334 0 : return NDR_ERR_SUCCESS;
335 : }
336 :
337 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktCoCmdLocationCmd(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktCoCmdLocationCmd *r)
338 : {
339 0 : uint32_t v;
340 : {
341 0 : libndr_flags _flags_save_ENUM = ndr->flags;
342 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
343 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
344 0 : *r = v;
345 0 : ndr->flags = _flags_save_ENUM;
346 : }
347 0 : return NDR_ERR_SUCCESS;
348 : }
349 :
350 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktCoCmdLocationCmd(struct ndr_print *ndr, const char *name, enum frsrpc_CommPktCoCmdLocationCmd r)
351 : {
352 0 : const char *val = NULL;
353 :
354 : {
355 0 : libndr_flags _flags_save_ENUM = ndr->flags;
356 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
357 0 : switch (r) {
358 0 : case FRSRPC_CO_LOCATION_FILE_CREATE: val = "FRSRPC_CO_LOCATION_FILE_CREATE"; break;
359 0 : case FRSRPC_CO_LOCATION_DIR_CREATE: val = "FRSRPC_CO_LOCATION_DIR_CREATE"; break;
360 0 : case FRSRPC_CO_LOCATION_FILE_DELETE: val = "FRSRPC_CO_LOCATION_FILE_DELETE"; break;
361 0 : case FRSRPC_CO_LOCATION_DIR_DELETE: val = "FRSRPC_CO_LOCATION_DIR_DELETE"; break;
362 0 : case FRSRPC_CO_LOCATION_FILE_MOVEIN: val = "FRSRPC_CO_LOCATION_FILE_MOVEIN"; break;
363 0 : case FRSRPC_CO_LOCATION_DIR_MOVEIN: val = "FRSRPC_CO_LOCATION_DIR_MOVEIN"; break;
364 0 : case FRSRPC_CO_LOCATION_FILE_MOVEIN2: val = "FRSRPC_CO_LOCATION_FILE_MOVEIN2"; break;
365 0 : case FRSRPC_CO_LOCATION_DIR_MOVEIN2: val = "FRSRPC_CO_LOCATION_DIR_MOVEIN2"; break;
366 0 : case FRSRPC_CO_LOCATION_FILE_MOVEOUT: val = "FRSRPC_CO_LOCATION_FILE_MOVEOUT"; break;
367 0 : case FRSRPC_CO_LOCATION_DIR_MOVEOUT: val = "FRSRPC_CO_LOCATION_DIR_MOVEOUT"; break;
368 0 : case FRSRPC_CO_LOCATION_FILE_MOVERS: val = "FRSRPC_CO_LOCATION_FILE_MOVERS"; break;
369 0 : case FRSRPC_CO_LOCATION_DIR_MOVERS: val = "FRSRPC_CO_LOCATION_DIR_MOVERS"; break;
370 0 : case FRSRPC_CO_LOCATION_FILE_MOVEDIR: val = "FRSRPC_CO_LOCATION_FILE_MOVEDIR"; break;
371 0 : case FRSRPC_CO_LOCATION_DIR_MOVEDIR: val = "FRSRPC_CO_LOCATION_DIR_MOVEDIR"; break;
372 0 : case FRSRPC_CO_LOCATION_FILE_NO_CMD: val = "FRSRPC_CO_LOCATION_FILE_NO_CMD"; break;
373 0 : case FRSRPC_CO_LOCATION_DIR_NO_CMD: val = "FRSRPC_CO_LOCATION_DIR_NO_CMD"; break;
374 : }
375 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
376 0 : ndr->flags = _flags_save_ENUM;
377 : }
378 0 : }
379 :
380 0 : _PUBLIC_ enum ndr_err_code ndr_push_frsrpc_CommPktChangeOrderCommand(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_CommPktChangeOrderCommand *r)
381 : {
382 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
383 0 : if (ndr_flags & NDR_SCALARS) {
384 0 : NDR_CHECK(ndr_push_align(ndr, 8));
385 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sequence_number));
386 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCoCmdFlags(ndr, NDR_SCALARS, r->flags));
387 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCoCmdIFlags(ndr, NDR_SCALARS, r->iflags));
388 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCoCmdStatus(ndr, NDR_SCALARS, r->status));
389 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCoCmdContentCmd(ndr, NDR_SCALARS, r->content_cmd));
390 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCoCmdLocationCmd(ndr, NDR_SCALARS, r->location_cmd));
391 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->file_attributes));
392 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->file_version_number));
393 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->partern_ack_sequence_number));
394 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
395 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_size));
396 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_offset));
397 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->frs_vsn));
398 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_usn));
399 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->jrnl_usn));
400 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->jrnl_first_usn));
401 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->original_replica_num));
402 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->new_replica_num));
403 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->change_order_guid));
404 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->originator_guid));
405 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->file_guid));
406 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->old_parent_guid));
407 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->new_parent_guid));
408 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->connection_guid));
409 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->ack_version));
410 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, 0));
411 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, 0));
412 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, 0));
413 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, 0));
414 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, 0));
415 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
416 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
417 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
418 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
419 0 : NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, r->event_time));
420 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 2 * strlen_m(r->file_name)));
421 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->file_name, 260 + 1, sizeof(uint16_t), CH_UTF16));
422 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, 0));
423 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, 0));
424 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, 0));
425 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, 0));
426 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
427 : }
428 0 : if (ndr_flags & NDR_BUFFERS) {
429 0 : }
430 0 : return NDR_ERR_SUCCESS;
431 : }
432 :
433 0 : _PUBLIC_ enum ndr_err_code ndr_pull_frsrpc_CommPktChangeOrderCommand(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_CommPktChangeOrderCommand *r)
434 : {
435 0 : uint32_t size_file_name_0 = 0;
436 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
437 0 : if (ndr_flags & NDR_SCALARS) {
438 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
439 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sequence_number));
440 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCoCmdFlags(ndr, NDR_SCALARS, &r->flags));
441 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCoCmdIFlags(ndr, NDR_SCALARS, &r->iflags));
442 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCoCmdStatus(ndr, NDR_SCALARS, &r->status));
443 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCoCmdContentCmd(ndr, NDR_SCALARS, &r->content_cmd));
444 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCoCmdLocationCmd(ndr, NDR_SCALARS, &r->location_cmd));
445 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->file_attributes));
446 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->file_version_number));
447 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->partern_ack_sequence_number));
448 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->not_used));
449 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_size));
450 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_offset));
451 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->frs_vsn));
452 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_usn));
453 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->jrnl_usn));
454 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->jrnl_first_usn));
455 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->original_replica_num));
456 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->new_replica_num));
457 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->change_order_guid));
458 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->originator_guid));
459 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->file_guid));
460 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->old_parent_guid));
461 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->new_parent_guid));
462 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->connection_guid));
463 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->ack_version));
464 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->spare2ul1));
465 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->spare1guid_p1));
466 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->spare1guid_p2));
467 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->spare2guid_p1));
468 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->spare3guid_p2));
469 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->spare1wcs));
470 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->spare2wcs));
471 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->extension));
472 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->spare2bin));
473 0 : NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, &r->event_time));
474 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->file_name_length));
475 0 : size_file_name_0 = 260 + 1;
476 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->file_name, size_file_name_0, sizeof(uint16_t), CH_UTF16));
477 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->padding1));
478 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->padding2));
479 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->padding3));
480 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->padding4));
481 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
482 : }
483 0 : if (ndr_flags & NDR_BUFFERS) {
484 0 : }
485 0 : return NDR_ERR_SUCCESS;
486 : }
487 :
488 0 : static void ndr_print_flags_frsrpc_CommPktChangeOrderCommand(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct frsrpc_CommPktChangeOrderCommand *r)
489 : {
490 0 : ndr_print_frsrpc_CommPktChangeOrderCommand(ndr, name, r);
491 0 : }
492 :
493 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktChangeOrderCommand(struct ndr_print *ndr, const char *name, const struct frsrpc_CommPktChangeOrderCommand *r)
494 : {
495 0 : ndr_print_struct(ndr, name, "frsrpc_CommPktChangeOrderCommand");
496 0 : if (r == NULL) { ndr_print_null(ndr); return; }
497 0 : ndr->depth++;
498 0 : ndr_print_uint32(ndr, "sequence_number", r->sequence_number);
499 0 : ndr_print_frsrpc_CommPktCoCmdFlags(ndr, "flags", r->flags);
500 0 : ndr_print_frsrpc_CommPktCoCmdIFlags(ndr, "iflags", r->iflags);
501 0 : ndr_print_frsrpc_CommPktCoCmdStatus(ndr, "status", r->status);
502 0 : ndr_print_frsrpc_CommPktCoCmdContentCmd(ndr, "content_cmd", r->content_cmd);
503 0 : ndr_print_frsrpc_CommPktCoCmdLocationCmd(ndr, "location_cmd", r->location_cmd);
504 0 : ndr_print_uint32(ndr, "file_attributes", r->file_attributes);
505 0 : ndr_print_uint32(ndr, "file_version_number", r->file_version_number);
506 0 : ndr_print_uint32(ndr, "partern_ack_sequence_number", r->partern_ack_sequence_number);
507 0 : ndr_print_uint32(ndr, "not_used", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->not_used);
508 0 : ndr_print_hyper(ndr, "file_size", r->file_size);
509 0 : ndr_print_hyper(ndr, "file_offset", r->file_offset);
510 0 : ndr_print_hyper(ndr, "frs_vsn", r->frs_vsn);
511 0 : ndr_print_hyper(ndr, "file_usn", r->file_usn);
512 0 : ndr_print_hyper(ndr, "jrnl_usn", r->jrnl_usn);
513 0 : ndr_print_hyper(ndr, "jrnl_first_usn", r->jrnl_first_usn);
514 0 : ndr_print_uint32(ndr, "original_replica_num", r->original_replica_num);
515 0 : ndr_print_uint32(ndr, "new_replica_num", r->new_replica_num);
516 0 : ndr_print_GUID(ndr, "change_order_guid", &r->change_order_guid);
517 0 : ndr_print_GUID(ndr, "originator_guid", &r->originator_guid);
518 0 : ndr_print_GUID(ndr, "file_guid", &r->file_guid);
519 0 : ndr_print_GUID(ndr, "old_parent_guid", &r->old_parent_guid);
520 0 : ndr_print_GUID(ndr, "new_parent_guid", &r->new_parent_guid);
521 0 : ndr_print_GUID(ndr, "connection_guid", &r->connection_guid);
522 0 : ndr_print_hyper(ndr, "ack_version", r->ack_version);
523 0 : ndr_print_hyper(ndr, "spare2ul1", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->spare2ul1);
524 0 : ndr_print_hyper(ndr, "spare1guid_p1", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->spare1guid_p1);
525 0 : ndr_print_hyper(ndr, "spare1guid_p2", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->spare1guid_p2);
526 0 : ndr_print_hyper(ndr, "spare2guid_p1", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->spare2guid_p1);
527 0 : ndr_print_hyper(ndr, "spare3guid_p2", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->spare3guid_p2);
528 0 : ndr_print_uint32(ndr, "spare1wcs", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->spare1wcs);
529 0 : ndr_print_uint32(ndr, "spare2wcs", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->spare2wcs);
530 0 : ndr_print_uint32(ndr, "extension", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->extension);
531 0 : ndr_print_uint32(ndr, "spare2bin", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->spare2bin);
532 0 : ndr_print_NTTIME(ndr, "event_time", r->event_time);
533 0 : ndr_print_uint16(ndr, "file_name_length", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * strlen_m(r->file_name):r->file_name_length);
534 0 : ndr_print_string(ndr, "file_name", r->file_name);
535 0 : ndr_print_uint8(ndr, "padding1", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->padding1);
536 0 : ndr_print_uint8(ndr, "padding2", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->padding2);
537 0 : ndr_print_uint8(ndr, "padding3", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->padding3);
538 0 : ndr_print_uint8(ndr, "padding4", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->padding4);
539 0 : ndr->depth--;
540 : }
541 :
542 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktDataExtensionType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktDataExtensionType r)
543 : {
544 : {
545 0 : libndr_flags _flags_save_ENUM = ndr->flags;
546 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
547 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
548 0 : ndr->flags = _flags_save_ENUM;
549 : }
550 0 : return NDR_ERR_SUCCESS;
551 : }
552 :
553 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktDataExtensionType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktDataExtensionType *r)
554 : {
555 0 : uint32_t v;
556 : {
557 0 : libndr_flags _flags_save_ENUM = ndr->flags;
558 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
559 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
560 0 : *r = v;
561 0 : ndr->flags = _flags_save_ENUM;
562 : }
563 0 : return NDR_ERR_SUCCESS;
564 : }
565 :
566 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktDataExtensionType(struct ndr_print *ndr, const char *name, enum frsrpc_CommPktDataExtensionType r)
567 : {
568 0 : const char *val = NULL;
569 :
570 : {
571 0 : libndr_flags _flags_save_ENUM = ndr->flags;
572 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
573 0 : switch (r) {
574 0 : case FRSRPC_DATA_EXTENSION_TERMINATOR: val = "FRSRPC_DATA_EXTENSION_TERMINATOR"; break;
575 0 : case FRSRPC_DATA_EXTENSION_MD5_CHECKSUM: val = "FRSRPC_DATA_EXTENSION_MD5_CHECKSUM"; break;
576 0 : case FRSRPC_DATA_EXTENSION_RETRY_TIMEOUT: val = "FRSRPC_DATA_EXTENSION_RETRY_TIMEOUT"; break;
577 : }
578 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
579 0 : ndr->flags = _flags_save_ENUM;
580 : }
581 0 : }
582 :
583 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktDataExtensionChecksum(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_CommPktDataExtensionChecksum *r)
584 : {
585 : {
586 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
587 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
588 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
589 0 : if (ndr_flags & NDR_SCALARS) {
590 0 : NDR_CHECK(ndr_push_align(ndr, 4));
591 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x00000018));
592 0 : NDR_CHECK(ndr_push_frsrpc_CommPktDataExtensionType(ndr, NDR_SCALARS, FRSRPC_DATA_EXTENSION_MD5_CHECKSUM));
593 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->data, 16));
594 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
595 : }
596 0 : if (ndr_flags & NDR_BUFFERS) {
597 0 : }
598 0 : ndr->flags = _flags_save_STRUCT;
599 : }
600 0 : return NDR_ERR_SUCCESS;
601 : }
602 :
603 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktDataExtensionChecksum(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_CommPktDataExtensionChecksum *r)
604 : {
605 0 : uint32_t size_data_0 = 0;
606 : {
607 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
608 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
609 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
610 0 : if (ndr_flags & NDR_SCALARS) {
611 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
612 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->prefix_size));
613 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktDataExtensionType(ndr, NDR_SCALARS, &r->prefix_type));
614 0 : size_data_0 = 16;
615 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->data, size_data_0));
616 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
617 : }
618 0 : if (ndr_flags & NDR_BUFFERS) {
619 0 : }
620 0 : ndr->flags = _flags_save_STRUCT;
621 : }
622 0 : return NDR_ERR_SUCCESS;
623 : }
624 :
625 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktDataExtensionChecksum(struct ndr_print *ndr, const char *name, const struct frsrpc_CommPktDataExtensionChecksum *r)
626 : {
627 0 : ndr_print_struct(ndr, name, "frsrpc_CommPktDataExtensionChecksum");
628 0 : if (r == NULL) { ndr_print_null(ndr); return; }
629 : {
630 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
631 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
632 0 : ndr->depth++;
633 0 : ndr_print_uint32(ndr, "prefix_size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x00000018:r->prefix_size);
634 0 : ndr_print_frsrpc_CommPktDataExtensionType(ndr, "prefix_type", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?FRSRPC_DATA_EXTENSION_MD5_CHECKSUM:r->prefix_type);
635 0 : ndr_print_array_uint8(ndr, "data", r->data, 16);
636 0 : ndr->depth--;
637 0 : ndr->flags = _flags_save_STRUCT;
638 : }
639 : }
640 :
641 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktDataExtensionRetryTimeout(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_CommPktDataExtensionRetryTimeout *r)
642 : {
643 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
644 0 : if (ndr_flags & NDR_SCALARS) {
645 0 : NDR_CHECK(ndr_push_align(ndr, 4));
646 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x00000018));
647 0 : NDR_CHECK(ndr_push_frsrpc_CommPktDataExtensionType(ndr, NDR_SCALARS, FRSRPC_DATA_EXTENSION_RETRY_TIMEOUT));
648 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
649 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
650 0 : NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, r->first_try_time));
651 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
652 : }
653 0 : if (ndr_flags & NDR_BUFFERS) {
654 0 : }
655 0 : return NDR_ERR_SUCCESS;
656 : }
657 :
658 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktDataExtensionRetryTimeout(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_CommPktDataExtensionRetryTimeout *r)
659 : {
660 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
661 0 : if (ndr_flags & NDR_SCALARS) {
662 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
663 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->prefix_size));
664 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktDataExtensionType(ndr, NDR_SCALARS, &r->prefix_type));
665 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
666 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->not_used));
667 0 : NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, &r->first_try_time));
668 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
669 : }
670 0 : if (ndr_flags & NDR_BUFFERS) {
671 0 : }
672 0 : return NDR_ERR_SUCCESS;
673 : }
674 :
675 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktDataExtensionRetryTimeout(struct ndr_print *ndr, const char *name, const struct frsrpc_CommPktDataExtensionRetryTimeout *r)
676 : {
677 0 : ndr_print_struct(ndr, name, "frsrpc_CommPktDataExtensionRetryTimeout");
678 0 : if (r == NULL) { ndr_print_null(ndr); return; }
679 0 : ndr->depth++;
680 0 : ndr_print_uint32(ndr, "prefix_size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x00000018:r->prefix_size);
681 0 : ndr_print_frsrpc_CommPktDataExtensionType(ndr, "prefix_type", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?FRSRPC_DATA_EXTENSION_RETRY_TIMEOUT:r->prefix_type);
682 0 : ndr_print_uint32(ndr, "count", r->count);
683 0 : ndr_print_uint32(ndr, "not_used", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->not_used);
684 0 : ndr_print_NTTIME(ndr, "first_try_time", r->first_try_time);
685 0 : ndr->depth--;
686 : }
687 :
688 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktCoRecordExtensionMajor(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktCoRecordExtensionMajor r)
689 : {
690 : {
691 0 : libndr_flags _flags_save_ENUM = ndr->flags;
692 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
693 0 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
694 0 : ndr->flags = _flags_save_ENUM;
695 : }
696 0 : return NDR_ERR_SUCCESS;
697 : }
698 :
699 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktCoRecordExtensionMajor(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktCoRecordExtensionMajor *r)
700 : {
701 0 : uint16_t v;
702 : {
703 0 : libndr_flags _flags_save_ENUM = ndr->flags;
704 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
705 0 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
706 0 : *r = v;
707 0 : ndr->flags = _flags_save_ENUM;
708 : }
709 0 : return NDR_ERR_SUCCESS;
710 : }
711 :
712 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktCoRecordExtensionMajor(struct ndr_print *ndr, const char *name, enum frsrpc_CommPktCoRecordExtensionMajor r)
713 : {
714 0 : const char *val = NULL;
715 :
716 : {
717 0 : libndr_flags _flags_save_ENUM = ndr->flags;
718 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
719 0 : switch (r) {
720 0 : case FRSRPC_CO_RECORD_EXTENSION_VERSION_WIN2K: val = "FRSRPC_CO_RECORD_EXTENSION_VERSION_WIN2K"; break;
721 0 : case FRSRPC_CO_RECORD_EXTENSION_VERSION_1: val = "FRSRPC_CO_RECORD_EXTENSION_VERSION_1"; break;
722 : }
723 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
724 0 : ndr->flags = _flags_save_ENUM;
725 : }
726 0 : }
727 :
728 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktCoRecordExtensionWin2k(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_CommPktCoRecordExtensionWin2k *r)
729 : {
730 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
731 0 : if (ndr_flags & NDR_SCALARS) {
732 0 : NDR_CHECK(ndr_push_align(ndr, 4));
733 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x00000028));
734 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCoRecordExtensionMajor(ndr, NDR_SCALARS, FRSRPC_CO_RECORD_EXTENSION_VERSION_WIN2K));
735 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 0x0001));
736 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x00000010));
737 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
738 0 : NDR_CHECK(ndr_push_frsrpc_CommPktDataExtensionChecksum(ndr, NDR_SCALARS, &r->data_checksum));
739 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
740 : }
741 0 : if (ndr_flags & NDR_BUFFERS) {
742 0 : }
743 0 : return NDR_ERR_SUCCESS;
744 : }
745 :
746 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktCoRecordExtensionWin2k(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_CommPktCoRecordExtensionWin2k *r)
747 : {
748 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
749 0 : if (ndr_flags & NDR_SCALARS) {
750 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
751 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->field_size));
752 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCoRecordExtensionMajor(ndr, NDR_SCALARS, &r->major));
753 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->offset_count));
754 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->offset));
755 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->offset_last));
756 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktDataExtensionChecksum(ndr, NDR_SCALARS, &r->data_checksum));
757 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
758 : }
759 0 : if (ndr_flags & NDR_BUFFERS) {
760 0 : }
761 0 : return NDR_ERR_SUCCESS;
762 : }
763 :
764 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktCoRecordExtensionWin2k(struct ndr_print *ndr, const char *name, const struct frsrpc_CommPktCoRecordExtensionWin2k *r)
765 : {
766 0 : ndr_print_struct(ndr, name, "frsrpc_CommPktCoRecordExtensionWin2k");
767 0 : if (r == NULL) { ndr_print_null(ndr); return; }
768 0 : ndr->depth++;
769 0 : ndr_print_uint32(ndr, "field_size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x00000028:r->field_size);
770 0 : ndr_print_frsrpc_CommPktCoRecordExtensionMajor(ndr, "major", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?FRSRPC_CO_RECORD_EXTENSION_VERSION_WIN2K:r->major);
771 0 : ndr_print_uint16(ndr, "offset_count", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x0001:r->offset_count);
772 0 : ndr_print_uint32(ndr, "offset", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x00000010:r->offset);
773 0 : ndr_print_uint32(ndr, "offset_last", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->offset_last);
774 0 : ndr_print_frsrpc_CommPktDataExtensionChecksum(ndr, "data_checksum", &r->data_checksum);
775 0 : ndr->depth--;
776 : }
777 :
778 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktChangeOrderRecordExtension(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_CommPktChangeOrderRecordExtension *r)
779 : {
780 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
781 0 : if (ndr_flags & NDR_SCALARS) {
782 0 : NDR_CHECK(ndr_push_align(ndr, 4));
783 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x00000048));
784 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCoRecordExtensionMajor(ndr, NDR_SCALARS, r->major));
785 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 0x0002));
786 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x00000018));
787 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x00000030));
788 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
789 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
790 0 : NDR_CHECK(ndr_push_frsrpc_CommPktDataExtensionChecksum(ndr, NDR_SCALARS, &r->data_checksum));
791 0 : NDR_CHECK(ndr_push_frsrpc_CommPktDataExtensionRetryTimeout(ndr, NDR_SCALARS, &r->data_retry_timeout));
792 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
793 : }
794 0 : if (ndr_flags & NDR_BUFFERS) {
795 0 : }
796 0 : return NDR_ERR_SUCCESS;
797 : }
798 :
799 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktChangeOrderRecordExtension(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_CommPktChangeOrderRecordExtension *r)
800 : {
801 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
802 0 : if (ndr_flags & NDR_SCALARS) {
803 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
804 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->field_size));
805 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCoRecordExtensionMajor(ndr, NDR_SCALARS, &r->major));
806 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->offset_count));
807 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->offset0));
808 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->offset1));
809 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->offset_last));
810 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->not_used));
811 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktDataExtensionChecksum(ndr, NDR_SCALARS, &r->data_checksum));
812 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktDataExtensionRetryTimeout(ndr, NDR_SCALARS, &r->data_retry_timeout));
813 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
814 : }
815 0 : if (ndr_flags & NDR_BUFFERS) {
816 0 : }
817 0 : return NDR_ERR_SUCCESS;
818 : }
819 :
820 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktChangeOrderRecordExtension(struct ndr_print *ndr, const char *name, const struct frsrpc_CommPktChangeOrderRecordExtension *r)
821 : {
822 0 : ndr_print_struct(ndr, name, "frsrpc_CommPktChangeOrderRecordExtension");
823 0 : if (r == NULL) { ndr_print_null(ndr); return; }
824 0 : ndr->depth++;
825 0 : ndr_print_uint32(ndr, "field_size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x00000048:r->field_size);
826 0 : ndr_print_frsrpc_CommPktCoRecordExtensionMajor(ndr, "major", r->major);
827 0 : ndr_print_uint16(ndr, "offset_count", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x0002:r->offset_count);
828 0 : ndr_print_uint32(ndr, "offset0", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x00000018:r->offset0);
829 0 : ndr_print_uint32(ndr, "offset1", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x00000030:r->offset1);
830 0 : ndr_print_uint32(ndr, "offset_last", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->offset_last);
831 0 : ndr_print_uint32(ndr, "not_used", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->not_used);
832 0 : ndr_print_frsrpc_CommPktDataExtensionChecksum(ndr, "data_checksum", &r->data_checksum);
833 0 : ndr_print_frsrpc_CommPktDataExtensionRetryTimeout(ndr, "data_retry_timeout", &r->data_retry_timeout);
834 0 : ndr->depth--;
835 : }
836 :
837 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktCommand(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktCommand r)
838 : {
839 : {
840 0 : libndr_flags _flags_save_ENUM = ndr->flags;
841 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
842 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
843 0 : ndr->flags = _flags_save_ENUM;
844 : }
845 0 : return NDR_ERR_SUCCESS;
846 : }
847 :
848 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktCommand(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktCommand *r)
849 : {
850 0 : uint32_t v;
851 : {
852 0 : libndr_flags _flags_save_ENUM = ndr->flags;
853 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
854 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
855 0 : *r = v;
856 0 : ndr->flags = _flags_save_ENUM;
857 : }
858 0 : return NDR_ERR_SUCCESS;
859 : }
860 :
861 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktCommand(struct ndr_print *ndr, const char *name, enum frsrpc_CommPktCommand r)
862 : {
863 0 : const char *val = NULL;
864 :
865 : {
866 0 : libndr_flags _flags_save_ENUM = ndr->flags;
867 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
868 0 : switch (r) {
869 0 : case FRSRPC_COMMAND_REMOTE_CO: val = "FRSRPC_COMMAND_REMOTE_CO"; break;
870 0 : case FRSRPC_COMMAND_RECEIVING_STATE: val = "FRSRPC_COMMAND_RECEIVING_STATE"; break;
871 0 : case FRSRPC_COMMAND_REMOTE_CO_DONE: val = "FRSRPC_COMMAND_REMOTE_CO_DONE"; break;
872 0 : case FRSRPC_COMMAND_ABORT_FETCH: val = "FRSRPC_COMMAND_ABORT_FETCH"; break;
873 0 : case FRSRPC_COMMAND_RETRY_FETCH: val = "FRSRPC_COMMAND_RETRY_FETCH"; break;
874 0 : case FRSRPC_COMMAND_NEED_JOIN: val = "FRSRPC_COMMAND_NEED_JOIN"; break;
875 0 : case FRSRPC_COMMAND_START_JOIN: val = "FRSRPC_COMMAND_START_JOIN"; break;
876 0 : case FRSRPC_COMMAND_JOINING: val = "FRSRPC_COMMAND_JOINING"; break;
877 0 : case FRSRPC_COMMAND_JOINED: val = "FRSRPC_COMMAND_JOINED"; break;
878 0 : case FRSRPC_COMMAND_UNJOIN_REMOTE: val = "FRSRPC_COMMAND_UNJOIN_REMOTE"; break;
879 0 : case FRSRPC_COMMAND_VVJOIN_DONE: val = "FRSRPC_COMMAND_VVJOIN_DONE"; break;
880 0 : case FRSRPC_COMMAND_SEND_STAGE: val = "FRSRPC_COMMAND_SEND_STAGE"; break;
881 : }
882 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
883 0 : ndr->flags = _flags_save_ENUM;
884 : }
885 0 : }
886 :
887 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktChunkType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktChunkType r)
888 : {
889 : {
890 0 : libndr_flags _flags_save_ENUM = ndr->flags;
891 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
892 0 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
893 0 : ndr->flags = _flags_save_ENUM;
894 : }
895 0 : return NDR_ERR_SUCCESS;
896 : }
897 :
898 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktChunkType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktChunkType *r)
899 : {
900 0 : uint16_t v;
901 : {
902 0 : libndr_flags _flags_save_ENUM = ndr->flags;
903 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
904 0 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
905 0 : *r = v;
906 0 : ndr->flags = _flags_save_ENUM;
907 : }
908 0 : return NDR_ERR_SUCCESS;
909 : }
910 :
911 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktChunkType(struct ndr_print *ndr, const char *name, enum frsrpc_CommPktChunkType r)
912 : {
913 0 : const char *val = NULL;
914 :
915 : {
916 0 : libndr_flags _flags_save_ENUM = ndr->flags;
917 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
918 0 : switch (r) {
919 0 : case FRSRPC_COMM_PKT_CHUNK_BOP: val = "FRSRPC_COMM_PKT_CHUNK_BOP"; break;
920 0 : case FRSRPC_COMM_PKT_CHUNK_COMMAND: val = "FRSRPC_COMM_PKT_CHUNK_COMMAND"; break;
921 0 : case FRSRPC_COMM_PKT_CHUNK_TO: val = "FRSRPC_COMM_PKT_CHUNK_TO"; break;
922 0 : case FRSRPC_COMM_PKT_CHUNK_FROM: val = "FRSRPC_COMM_PKT_CHUNK_FROM"; break;
923 0 : case FRSRPC_COMM_PKT_CHUNK_REPLICA: val = "FRSRPC_COMM_PKT_CHUNK_REPLICA"; break;
924 0 : case FRSRPC_COMM_PKT_CHUNK_CONNECTION: val = "FRSRPC_COMM_PKT_CHUNK_CONNECTION"; break;
925 0 : case FRSRPC_COMM_PKT_CHUNK_JOIN_GUID: val = "FRSRPC_COMM_PKT_CHUNK_JOIN_GUID"; break;
926 0 : case FRSRPC_COMM_PKT_CHUNK_LAST_JOIN_TIME: val = "FRSRPC_COMM_PKT_CHUNK_LAST_JOIN_TIME"; break;
927 0 : case FRSRPC_COMM_PKT_CHUNK_VVECTOR: val = "FRSRPC_COMM_PKT_CHUNK_VVECTOR"; break;
928 0 : case FRSRPC_COMM_PKT_CHUNK_JOIN_TIME: val = "FRSRPC_COMM_PKT_CHUNK_JOIN_TIME"; break;
929 0 : case FRSRPC_COMM_PKT_CHUNK_REPLICA_VERSION_GUID: val = "FRSRPC_COMM_PKT_CHUNK_REPLICA_VERSION_GUID"; break;
930 0 : case FRSRPC_COMM_PKT_CHUNK_COMPRESSION_GUID: val = "FRSRPC_COMM_PKT_CHUNK_COMPRESSION_GUID"; break;
931 0 : case FRSRPC_COMM_PKT_CHUNK_BLOCK: val = "FRSRPC_COMM_PKT_CHUNK_BLOCK"; break;
932 0 : case FRSRPC_COMM_PKT_CHUNK_BLOCK_SIZE: val = "FRSRPC_COMM_PKT_CHUNK_BLOCK_SIZE"; break;
933 0 : case FRSRPC_COMM_PKT_CHUNK_FILE_SIZE: val = "FRSRPC_COMM_PKT_CHUNK_FILE_SIZE"; break;
934 0 : case FRSRPC_COMM_PKT_CHUNK_FILE_OFFSET: val = "FRSRPC_COMM_PKT_CHUNK_FILE_OFFSET"; break;
935 0 : case FRSRPC_COMM_PKT_CHUNK_GVSN: val = "FRSRPC_COMM_PKT_CHUNK_GVSN"; break;
936 0 : case FRSRPC_COMM_PKT_CHUNK_CO_GUID: val = "FRSRPC_COMM_PKT_CHUNK_CO_GUID"; break;
937 0 : case FRSRPC_COMM_PKT_CHUNK_CO_SEQUENCE_NUMBER: val = "FRSRPC_COMM_PKT_CHUNK_CO_SEQUENCE_NUMBER"; break;
938 0 : case FRSRPC_COMM_PKT_CHUNK_REMOTE_CO: val = "FRSRPC_COMM_PKT_CHUNK_REMOTE_CO"; break;
939 0 : case FRSRPC_COMM_PKT_CHUNK_CO_EXT_WIN2K: val = "FRSRPC_COMM_PKT_CHUNK_CO_EXT_WIN2K"; break;
940 0 : case FRSRPC_COMM_PKT_CHUNK_CO_EXTENTION_2: val = "FRSRPC_COMM_PKT_CHUNK_CO_EXTENTION_2"; break;
941 0 : case FRSRPC_COMM_PKT_CHUNK_EOP: val = "FRSRPC_COMM_PKT_CHUNK_EOP"; break;
942 : }
943 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
944 0 : ndr->flags = _flags_save_ENUM;
945 : }
946 0 : }
947 :
948 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktChunkData(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union frsrpc_CommPktChunkData *r)
949 : {
950 0 : uint32_t level;
951 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
952 0 : if (ndr_flags & NDR_SCALARS) {
953 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
954 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
955 0 : NDR_CHECK(ndr_push_union_align(ndr, 8));
956 0 : switch (level) {
957 0 : default: {
958 : {
959 0 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
960 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
961 0 : NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->blob));
962 0 : ndr->flags = _flags_save_DATA_BLOB;
963 : }
964 0 : break; }
965 :
966 0 : case FRSRPC_COMM_PKT_CHUNK_BOP: {
967 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
968 0 : break; }
969 :
970 0 : case FRSRPC_COMM_PKT_CHUNK_COMMAND: {
971 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCommand(ndr, NDR_SCALARS, r->command));
972 0 : break; }
973 :
974 0 : case FRSRPC_COMM_PKT_CHUNK_TO: {
975 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChunkGuidName(ndr, NDR_SCALARS, &r->to));
976 0 : break; }
977 :
978 0 : case FRSRPC_COMM_PKT_CHUNK_FROM: {
979 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChunkGuidName(ndr, NDR_SCALARS, &r->from));
980 0 : break; }
981 :
982 0 : case FRSRPC_COMM_PKT_CHUNK_REPLICA: {
983 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChunkGuidName(ndr, NDR_SCALARS, &r->replica));
984 0 : break; }
985 :
986 0 : case FRSRPC_COMM_PKT_CHUNK_CONNECTION: {
987 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChunkGuidName(ndr, NDR_SCALARS, &r->connection));
988 0 : break; }
989 :
990 0 : case FRSRPC_COMM_PKT_CHUNK_JOIN_GUID: {
991 : {
992 0 : struct ndr_push *_ndr_join_guid;
993 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_join_guid, 4, -1));
994 0 : NDR_CHECK(ndr_push_GUID(_ndr_join_guid, NDR_SCALARS, &r->join_guid));
995 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_join_guid, 4, -1));
996 : }
997 0 : break; }
998 :
999 0 : case FRSRPC_COMM_PKT_CHUNK_LAST_JOIN_TIME: {
1000 0 : NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, r->last_join_time));
1001 0 : break; }
1002 :
1003 0 : case FRSRPC_COMM_PKT_CHUNK_VVECTOR: {
1004 : {
1005 0 : struct ndr_push *_ndr_vvector;
1006 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_vvector, 4, -1));
1007 0 : NDR_CHECK(ndr_push_frsrpc_CommPktGSVN(_ndr_vvector, NDR_SCALARS, &r->vvector));
1008 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_vvector, 4, -1));
1009 : }
1010 0 : break; }
1011 :
1012 0 : case FRSRPC_COMM_PKT_CHUNK_JOIN_TIME: {
1013 : {
1014 0 : struct ndr_push *_ndr_join_time;
1015 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_join_time, 4, -1));
1016 0 : NDR_CHECK(ndr_push_NTTIME(_ndr_join_time, NDR_SCALARS, r->join_time));
1017 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_join_time, 4, -1));
1018 : }
1019 0 : break; }
1020 :
1021 0 : case FRSRPC_COMM_PKT_CHUNK_REPLICA_VERSION_GUID: {
1022 : {
1023 0 : struct ndr_push *_ndr_replica_version_guid;
1024 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_replica_version_guid, 4, -1));
1025 0 : NDR_CHECK(ndr_push_GUID(_ndr_replica_version_guid, NDR_SCALARS, &r->replica_version_guid));
1026 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_replica_version_guid, 4, -1));
1027 : }
1028 0 : break; }
1029 :
1030 0 : case FRSRPC_COMM_PKT_CHUNK_COMPRESSION_GUID: {
1031 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->compression_guid));
1032 0 : break; }
1033 :
1034 0 : case FRSRPC_COMM_PKT_CHUNK_BLOCK: {
1035 0 : NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->block));
1036 0 : break; }
1037 :
1038 0 : case FRSRPC_COMM_PKT_CHUNK_BLOCK_SIZE: {
1039 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->block_size));
1040 0 : break; }
1041 :
1042 0 : case FRSRPC_COMM_PKT_CHUNK_FILE_SIZE: {
1043 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_size));
1044 0 : break; }
1045 :
1046 0 : case FRSRPC_COMM_PKT_CHUNK_FILE_OFFSET: {
1047 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_offset));
1048 0 : break; }
1049 :
1050 0 : case FRSRPC_COMM_PKT_CHUNK_GVSN: {
1051 : {
1052 0 : struct ndr_push *_ndr_gvsn;
1053 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_gvsn, 4, -1));
1054 0 : NDR_CHECK(ndr_push_frsrpc_CommPktGSVN(_ndr_gvsn, NDR_SCALARS, &r->gvsn));
1055 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_gvsn, 4, -1));
1056 : }
1057 0 : break; }
1058 :
1059 0 : case FRSRPC_COMM_PKT_CHUNK_CO_GUID: {
1060 : {
1061 0 : struct ndr_push *_ndr_co_guid;
1062 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_co_guid, 4, -1));
1063 0 : NDR_CHECK(ndr_push_GUID(_ndr_co_guid, NDR_SCALARS, &r->co_guid));
1064 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_co_guid, 4, -1));
1065 : }
1066 0 : break; }
1067 :
1068 0 : case FRSRPC_COMM_PKT_CHUNK_CO_SEQUENCE_NUMBER: {
1069 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->co_sequence_number));
1070 0 : break; }
1071 :
1072 0 : case FRSRPC_COMM_PKT_CHUNK_REMOTE_CO: {
1073 : {
1074 0 : struct ndr_push *_ndr_remote_co;
1075 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_remote_co, 4, -1));
1076 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChangeOrderCommand(_ndr_remote_co, NDR_SCALARS, &r->remote_co));
1077 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_remote_co, 4, -1));
1078 : }
1079 0 : break; }
1080 :
1081 0 : case FRSRPC_COMM_PKT_CHUNK_CO_EXT_WIN2K: {
1082 : {
1083 0 : struct ndr_push *_ndr_co_ext_win2k;
1084 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_co_ext_win2k, 4, -1));
1085 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCoRecordExtensionWin2k(_ndr_co_ext_win2k, NDR_SCALARS, &r->co_ext_win2k));
1086 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_co_ext_win2k, 4, -1));
1087 : }
1088 0 : break; }
1089 :
1090 0 : case FRSRPC_COMM_PKT_CHUNK_CO_EXTENTION_2: {
1091 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChangeOrderRecordExtension(ndr, NDR_SCALARS, &r->co_extension2));
1092 0 : break; }
1093 :
1094 0 : case FRSRPC_COMM_PKT_CHUNK_EOP: {
1095 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0xFFFFFFFF));
1096 0 : break; }
1097 :
1098 : }
1099 : }
1100 0 : return NDR_ERR_SUCCESS;
1101 : }
1102 :
1103 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktChunkData(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union frsrpc_CommPktChunkData *r)
1104 : {
1105 0 : uint32_t level;
1106 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1107 0 : if (ndr_flags & NDR_SCALARS) {
1108 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
1109 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
1110 0 : NDR_CHECK(ndr_pull_union_align(ndr, 8));
1111 0 : switch (level) {
1112 0 : default: {
1113 : {
1114 0 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
1115 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1116 0 : NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->blob));
1117 0 : ndr->flags = _flags_save_DATA_BLOB;
1118 : }
1119 0 : break; }
1120 :
1121 0 : case FRSRPC_COMM_PKT_CHUNK_BOP: {
1122 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->bop));
1123 0 : break; }
1124 :
1125 0 : case FRSRPC_COMM_PKT_CHUNK_COMMAND: {
1126 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCommand(ndr, NDR_SCALARS, &r->command));
1127 0 : break; }
1128 :
1129 0 : case FRSRPC_COMM_PKT_CHUNK_TO: {
1130 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChunkGuidName(ndr, NDR_SCALARS, &r->to));
1131 0 : break; }
1132 :
1133 0 : case FRSRPC_COMM_PKT_CHUNK_FROM: {
1134 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChunkGuidName(ndr, NDR_SCALARS, &r->from));
1135 0 : break; }
1136 :
1137 0 : case FRSRPC_COMM_PKT_CHUNK_REPLICA: {
1138 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChunkGuidName(ndr, NDR_SCALARS, &r->replica));
1139 0 : break; }
1140 :
1141 0 : case FRSRPC_COMM_PKT_CHUNK_CONNECTION: {
1142 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChunkGuidName(ndr, NDR_SCALARS, &r->connection));
1143 0 : break; }
1144 :
1145 0 : case FRSRPC_COMM_PKT_CHUNK_JOIN_GUID: {
1146 : {
1147 0 : struct ndr_pull *_ndr_join_guid;
1148 0 : ssize_t sub_size = -1;
1149 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_join_guid, 4, sub_size));
1150 0 : NDR_CHECK(ndr_pull_GUID(_ndr_join_guid, NDR_SCALARS, &r->join_guid));
1151 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_join_guid, 4, sub_size));
1152 : }
1153 0 : break; }
1154 :
1155 0 : case FRSRPC_COMM_PKT_CHUNK_LAST_JOIN_TIME: {
1156 0 : NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, &r->last_join_time));
1157 0 : break; }
1158 :
1159 0 : case FRSRPC_COMM_PKT_CHUNK_VVECTOR: {
1160 : {
1161 0 : struct ndr_pull *_ndr_vvector;
1162 0 : ssize_t sub_size = -1;
1163 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_vvector, 4, sub_size));
1164 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktGSVN(_ndr_vvector, NDR_SCALARS, &r->vvector));
1165 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_vvector, 4, sub_size));
1166 : }
1167 0 : break; }
1168 :
1169 0 : case FRSRPC_COMM_PKT_CHUNK_JOIN_TIME: {
1170 : {
1171 0 : struct ndr_pull *_ndr_join_time;
1172 0 : ssize_t sub_size = -1;
1173 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_join_time, 4, sub_size));
1174 0 : NDR_CHECK(ndr_pull_NTTIME(_ndr_join_time, NDR_SCALARS, &r->join_time));
1175 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_join_time, 4, sub_size));
1176 : }
1177 0 : break; }
1178 :
1179 0 : case FRSRPC_COMM_PKT_CHUNK_REPLICA_VERSION_GUID: {
1180 : {
1181 0 : struct ndr_pull *_ndr_replica_version_guid;
1182 0 : ssize_t sub_size = -1;
1183 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_replica_version_guid, 4, sub_size));
1184 0 : NDR_CHECK(ndr_pull_GUID(_ndr_replica_version_guid, NDR_SCALARS, &r->replica_version_guid));
1185 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_replica_version_guid, 4, sub_size));
1186 : }
1187 0 : break; }
1188 :
1189 0 : case FRSRPC_COMM_PKT_CHUNK_COMPRESSION_GUID: {
1190 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->compression_guid));
1191 0 : break; }
1192 :
1193 0 : case FRSRPC_COMM_PKT_CHUNK_BLOCK: {
1194 0 : NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->block));
1195 0 : break; }
1196 :
1197 0 : case FRSRPC_COMM_PKT_CHUNK_BLOCK_SIZE: {
1198 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->block_size));
1199 0 : break; }
1200 :
1201 0 : case FRSRPC_COMM_PKT_CHUNK_FILE_SIZE: {
1202 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_size));
1203 0 : break; }
1204 :
1205 0 : case FRSRPC_COMM_PKT_CHUNK_FILE_OFFSET: {
1206 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_offset));
1207 0 : break; }
1208 :
1209 0 : case FRSRPC_COMM_PKT_CHUNK_GVSN: {
1210 : {
1211 0 : struct ndr_pull *_ndr_gvsn;
1212 0 : ssize_t sub_size = -1;
1213 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_gvsn, 4, sub_size));
1214 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktGSVN(_ndr_gvsn, NDR_SCALARS, &r->gvsn));
1215 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_gvsn, 4, sub_size));
1216 : }
1217 0 : break; }
1218 :
1219 0 : case FRSRPC_COMM_PKT_CHUNK_CO_GUID: {
1220 : {
1221 0 : struct ndr_pull *_ndr_co_guid;
1222 0 : ssize_t sub_size = -1;
1223 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_co_guid, 4, sub_size));
1224 0 : NDR_CHECK(ndr_pull_GUID(_ndr_co_guid, NDR_SCALARS, &r->co_guid));
1225 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_co_guid, 4, sub_size));
1226 : }
1227 0 : break; }
1228 :
1229 0 : case FRSRPC_COMM_PKT_CHUNK_CO_SEQUENCE_NUMBER: {
1230 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->co_sequence_number));
1231 0 : break; }
1232 :
1233 0 : case FRSRPC_COMM_PKT_CHUNK_REMOTE_CO: {
1234 : {
1235 0 : struct ndr_pull *_ndr_remote_co;
1236 0 : ssize_t sub_size = -1;
1237 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_remote_co, 4, sub_size));
1238 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChangeOrderCommand(_ndr_remote_co, NDR_SCALARS, &r->remote_co));
1239 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_remote_co, 4, sub_size));
1240 : }
1241 0 : break; }
1242 :
1243 0 : case FRSRPC_COMM_PKT_CHUNK_CO_EXT_WIN2K: {
1244 : {
1245 0 : struct ndr_pull *_ndr_co_ext_win2k;
1246 0 : ssize_t sub_size = -1;
1247 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_co_ext_win2k, 4, sub_size));
1248 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCoRecordExtensionWin2k(_ndr_co_ext_win2k, NDR_SCALARS, &r->co_ext_win2k));
1249 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_co_ext_win2k, 4, sub_size));
1250 : }
1251 0 : break; }
1252 :
1253 0 : case FRSRPC_COMM_PKT_CHUNK_CO_EXTENTION_2: {
1254 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChangeOrderRecordExtension(ndr, NDR_SCALARS, &r->co_extension2));
1255 0 : break; }
1256 :
1257 0 : case FRSRPC_COMM_PKT_CHUNK_EOP: {
1258 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->bopend));
1259 0 : break; }
1260 :
1261 : }
1262 : }
1263 0 : return NDR_ERR_SUCCESS;
1264 : }
1265 :
1266 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktChunkData(struct ndr_print *ndr, const char *name, const union frsrpc_CommPktChunkData *r)
1267 : {
1268 0 : uint32_t level;
1269 0 : level = ndr_print_steal_switch_value(ndr, r);
1270 0 : ndr_print_union(ndr, name, level, "frsrpc_CommPktChunkData");
1271 0 : switch (level) {
1272 0 : default:
1273 : {
1274 0 : libndr_flags _flags_save_DATA_BLOB = ndr->flags;
1275 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1276 0 : ndr_print_DATA_BLOB(ndr, "blob", r->blob);
1277 0 : ndr->flags = _flags_save_DATA_BLOB;
1278 : }
1279 0 : break;
1280 :
1281 0 : case FRSRPC_COMM_PKT_CHUNK_BOP:
1282 0 : ndr_print_uint32(ndr, "bop", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->bop);
1283 0 : break;
1284 :
1285 0 : case FRSRPC_COMM_PKT_CHUNK_COMMAND:
1286 0 : ndr_print_frsrpc_CommPktCommand(ndr, "command", r->command);
1287 0 : break;
1288 :
1289 0 : case FRSRPC_COMM_PKT_CHUNK_TO:
1290 0 : ndr_print_frsrpc_CommPktChunkGuidName(ndr, "to", &r->to);
1291 0 : break;
1292 :
1293 0 : case FRSRPC_COMM_PKT_CHUNK_FROM:
1294 0 : ndr_print_frsrpc_CommPktChunkGuidName(ndr, "from", &r->from);
1295 0 : break;
1296 :
1297 0 : case FRSRPC_COMM_PKT_CHUNK_REPLICA:
1298 0 : ndr_print_frsrpc_CommPktChunkGuidName(ndr, "replica", &r->replica);
1299 0 : break;
1300 :
1301 0 : case FRSRPC_COMM_PKT_CHUNK_CONNECTION:
1302 0 : ndr_print_frsrpc_CommPktChunkGuidName(ndr, "connection", &r->connection);
1303 0 : break;
1304 :
1305 0 : case FRSRPC_COMM_PKT_CHUNK_JOIN_GUID:
1306 0 : ndr_print_GUID(ndr, "join_guid", &r->join_guid);
1307 0 : break;
1308 :
1309 0 : case FRSRPC_COMM_PKT_CHUNK_LAST_JOIN_TIME:
1310 0 : ndr_print_NTTIME(ndr, "last_join_time", r->last_join_time);
1311 0 : break;
1312 :
1313 0 : case FRSRPC_COMM_PKT_CHUNK_VVECTOR:
1314 0 : ndr_print_frsrpc_CommPktGSVN(ndr, "vvector", &r->vvector);
1315 0 : break;
1316 :
1317 0 : case FRSRPC_COMM_PKT_CHUNK_JOIN_TIME:
1318 0 : ndr_print_NTTIME(ndr, "join_time", r->join_time);
1319 0 : break;
1320 :
1321 0 : case FRSRPC_COMM_PKT_CHUNK_REPLICA_VERSION_GUID:
1322 0 : ndr_print_GUID(ndr, "replica_version_guid", &r->replica_version_guid);
1323 0 : break;
1324 :
1325 0 : case FRSRPC_COMM_PKT_CHUNK_COMPRESSION_GUID:
1326 0 : ndr_print_GUID(ndr, "compression_guid", &r->compression_guid);
1327 0 : break;
1328 :
1329 0 : case FRSRPC_COMM_PKT_CHUNK_BLOCK:
1330 0 : ndr_print_DATA_BLOB(ndr, "block", r->block);
1331 0 : break;
1332 :
1333 0 : case FRSRPC_COMM_PKT_CHUNK_BLOCK_SIZE:
1334 0 : ndr_print_hyper(ndr, "block_size", r->block_size);
1335 0 : break;
1336 :
1337 0 : case FRSRPC_COMM_PKT_CHUNK_FILE_SIZE:
1338 0 : ndr_print_hyper(ndr, "file_size", r->file_size);
1339 0 : break;
1340 :
1341 0 : case FRSRPC_COMM_PKT_CHUNK_FILE_OFFSET:
1342 0 : ndr_print_hyper(ndr, "file_offset", r->file_offset);
1343 0 : break;
1344 :
1345 0 : case FRSRPC_COMM_PKT_CHUNK_GVSN:
1346 0 : ndr_print_frsrpc_CommPktGSVN(ndr, "gvsn", &r->gvsn);
1347 0 : break;
1348 :
1349 0 : case FRSRPC_COMM_PKT_CHUNK_CO_GUID:
1350 0 : ndr_print_GUID(ndr, "co_guid", &r->co_guid);
1351 0 : break;
1352 :
1353 0 : case FRSRPC_COMM_PKT_CHUNK_CO_SEQUENCE_NUMBER:
1354 0 : ndr_print_uint32(ndr, "co_sequence_number", r->co_sequence_number);
1355 0 : break;
1356 :
1357 0 : case FRSRPC_COMM_PKT_CHUNK_REMOTE_CO:
1358 0 : ndr_print_frsrpc_CommPktChangeOrderCommand(ndr, "remote_co", &r->remote_co);
1359 0 : break;
1360 :
1361 0 : case FRSRPC_COMM_PKT_CHUNK_CO_EXT_WIN2K:
1362 0 : ndr_print_frsrpc_CommPktCoRecordExtensionWin2k(ndr, "co_ext_win2k", &r->co_ext_win2k);
1363 0 : break;
1364 :
1365 0 : case FRSRPC_COMM_PKT_CHUNK_CO_EXTENTION_2:
1366 0 : ndr_print_frsrpc_CommPktChangeOrderRecordExtension(ndr, "co_extension2", &r->co_extension2);
1367 0 : break;
1368 :
1369 0 : case FRSRPC_COMM_PKT_CHUNK_EOP:
1370 0 : ndr_print_uint32(ndr, "bopend", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0xFFFFFFFF:r->bopend);
1371 0 : break;
1372 :
1373 : }
1374 0 : }
1375 :
1376 0 : _PUBLIC_ enum ndr_err_code ndr_push_frsrpc_CommPktChunk(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_CommPktChunk *r)
1377 : {
1378 : {
1379 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
1380 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1381 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1382 0 : if (ndr_flags & NDR_SCALARS) {
1383 0 : NDR_CHECK(ndr_push_align(ndr, 3));
1384 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChunkType(ndr, NDR_SCALARS, r->type));
1385 : {
1386 0 : struct ndr_push *_ndr_data;
1387 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_data, 4, -1));
1388 0 : NDR_CHECK(ndr_push_set_switch_value(_ndr_data, &r->data, r->type));
1389 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChunkData(_ndr_data, NDR_SCALARS, &r->data));
1390 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_data, 4, -1));
1391 : }
1392 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 3));
1393 : }
1394 0 : if (ndr_flags & NDR_BUFFERS) {
1395 0 : }
1396 0 : ndr->flags = _flags_save_STRUCT;
1397 : }
1398 0 : return NDR_ERR_SUCCESS;
1399 : }
1400 :
1401 0 : _PUBLIC_ enum ndr_err_code ndr_pull_frsrpc_CommPktChunk(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_CommPktChunk *r)
1402 : {
1403 : {
1404 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
1405 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1406 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1407 0 : if (ndr_flags & NDR_SCALARS) {
1408 0 : NDR_CHECK(ndr_pull_align(ndr, 3));
1409 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChunkType(ndr, NDR_SCALARS, &r->type));
1410 : {
1411 0 : struct ndr_pull *_ndr_data;
1412 0 : ssize_t sub_size = -1;
1413 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_data, 4, sub_size));
1414 0 : NDR_CHECK(ndr_pull_set_switch_value(_ndr_data, &r->data, r->type));
1415 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChunkData(_ndr_data, NDR_SCALARS, &r->data));
1416 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_data, 4, sub_size));
1417 : }
1418 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 3));
1419 : }
1420 0 : if (ndr_flags & NDR_BUFFERS) {
1421 0 : }
1422 0 : ndr->flags = _flags_save_STRUCT;
1423 : }
1424 0 : return NDR_ERR_SUCCESS;
1425 : }
1426 :
1427 0 : static void ndr_print_flags_frsrpc_CommPktChunk(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct frsrpc_CommPktChunk *r)
1428 : {
1429 0 : ndr_print_frsrpc_CommPktChunk(ndr, name, r);
1430 0 : }
1431 :
1432 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktChunk(struct ndr_print *ndr, const char *name, const struct frsrpc_CommPktChunk *r)
1433 : {
1434 0 : ndr_print_struct(ndr, name, "frsrpc_CommPktChunk");
1435 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1436 : {
1437 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
1438 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1439 0 : ndr->depth++;
1440 0 : ndr_print_frsrpc_CommPktChunkType(ndr, "type", r->type);
1441 0 : ndr_print_set_switch_value(ndr, &r->data, r->type);
1442 0 : ndr_print_frsrpc_CommPktChunkData(ndr, "data", &r->data);
1443 0 : ndr->depth--;
1444 0 : ndr->flags = _flags_save_STRUCT;
1445 : }
1446 : }
1447 :
1448 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktChunkCtr(struct ndr_print *ndr, const char *name, const struct frsrpc_CommPktChunkCtr *r)
1449 : {
1450 0 : uint32_t cntr_chunks_0;
1451 0 : ndr_print_struct(ndr, name, "frsrpc_CommPktChunkCtr");
1452 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1453 : {
1454 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
1455 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1456 0 : ndr->depth++;
1457 0 : ndr_print_uint32(ndr, "num_chunks", r->num_chunks);
1458 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "chunks", (uint32_t)(r->num_chunks));
1459 0 : ndr->depth++;
1460 0 : for (cntr_chunks_0 = 0; cntr_chunks_0 < (r->num_chunks); cntr_chunks_0++) {
1461 0 : ndr_print_frsrpc_CommPktChunk(ndr, "chunks", &r->chunks[cntr_chunks_0]);
1462 : }
1463 0 : ndr->depth--;
1464 0 : ndr->depth--;
1465 0 : ndr->flags = _flags_save_STRUCT;
1466 : }
1467 : }
1468 :
1469 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktMajor(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktMajor r)
1470 : {
1471 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1472 0 : return NDR_ERR_SUCCESS;
1473 : }
1474 :
1475 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktMajor(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktMajor *r)
1476 : {
1477 0 : uint32_t v;
1478 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1479 0 : *r = v;
1480 0 : return NDR_ERR_SUCCESS;
1481 : }
1482 :
1483 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktMajor(struct ndr_print *ndr, const char *name, enum frsrpc_CommPktMajor r)
1484 : {
1485 0 : const char *val = NULL;
1486 :
1487 0 : switch (r) {
1488 0 : case FRSRPC_COMM_PKT_MAJOR_0: val = "FRSRPC_COMM_PKT_MAJOR_0"; break;
1489 : }
1490 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1491 0 : }
1492 :
1493 0 : static enum ndr_err_code ndr_push_frsrpc_CommPktMinor(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktMinor r)
1494 : {
1495 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1496 0 : return NDR_ERR_SUCCESS;
1497 : }
1498 :
1499 0 : static enum ndr_err_code ndr_pull_frsrpc_CommPktMinor(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum frsrpc_CommPktMinor *r)
1500 : {
1501 0 : uint32_t v;
1502 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1503 0 : *r = v;
1504 0 : return NDR_ERR_SUCCESS;
1505 : }
1506 :
1507 0 : _PUBLIC_ void ndr_print_frsrpc_CommPktMinor(struct ndr_print *ndr, const char *name, enum frsrpc_CommPktMinor r)
1508 : {
1509 0 : const char *val = NULL;
1510 :
1511 0 : switch (r) {
1512 0 : case FRSRPC_COMM_PKT_MINOR_0: val = "FRSRPC_COMM_PKT_MINOR_0"; break;
1513 0 : case FRSRPC_COMM_PKT_MINOR_1: val = "FRSRPC_COMM_PKT_MINOR_1"; break;
1514 0 : case FRSRPC_COMM_PKT_MINOR_2: val = "FRSRPC_COMM_PKT_MINOR_2"; break;
1515 0 : case FRSRPC_COMM_PKT_MINOR_3: val = "FRSRPC_COMM_PKT_MINOR_3"; break;
1516 0 : case FRSRPC_COMM_PKT_MINOR_4: val = "FRSRPC_COMM_PKT_MINOR_4"; break;
1517 0 : case FRSRPC_COMM_PKT_MINOR_5: val = "FRSRPC_COMM_PKT_MINOR_5"; break;
1518 0 : case FRSRPC_COMM_PKT_MINOR_6: val = "FRSRPC_COMM_PKT_MINOR_6"; break;
1519 0 : case FRSRPC_COMM_PKT_MINOR_7: val = "FRSRPC_COMM_PKT_MINOR_7"; break;
1520 0 : case FRSRPC_COMM_PKT_MINOR_8: val = "FRSRPC_COMM_PKT_MINOR_8"; break;
1521 0 : case FRSRPC_COMM_PKT_MINOR_9: val = "FRSRPC_COMM_PKT_MINOR_9"; break;
1522 : }
1523 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1524 0 : }
1525 :
1526 0 : _PUBLIC_ enum ndr_err_code ndr_push_frsrpc_FrsSendCommPktReq(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_FrsSendCommPktReq *r)
1527 : {
1528 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1529 0 : if (ndr_flags & NDR_SCALARS) {
1530 0 : NDR_CHECK(ndr_push_align(ndr, 5));
1531 0 : NDR_CHECK(ndr_push_frsrpc_CommPktMajor(ndr, NDR_SCALARS, r->major));
1532 0 : NDR_CHECK(ndr_push_frsrpc_CommPktMinor(ndr, NDR_SCALARS, r->minor));
1533 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 1));
1534 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_size_frsrpc_CommPktChunkCtr(r->ctr, ndr->flags) + 12));
1535 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_size_frsrpc_CommPktChunkCtr(r->ctr, ndr->flags)));
1536 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
1537 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->ctr));
1538 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1539 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1540 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1541 : }
1542 0 : if (ndr_flags & NDR_BUFFERS) {
1543 0 : if (r->ctr) {
1544 : {
1545 0 : struct ndr_push *_ndr_ctr;
1546 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_ctr, 4, ndr_size_frsrpc_CommPktChunkCtr(r->ctr, ndr->flags)));
1547 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChunkCtr(_ndr_ctr, NDR_SCALARS, r->ctr));
1548 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_ctr, 4, ndr_size_frsrpc_CommPktChunkCtr(r->ctr, ndr->flags)));
1549 : }
1550 : }
1551 : }
1552 0 : return NDR_ERR_SUCCESS;
1553 : }
1554 :
1555 0 : _PUBLIC_ enum ndr_err_code ndr_pull_frsrpc_FrsSendCommPktReq(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_FrsSendCommPktReq *r)
1556 : {
1557 0 : uint32_t _ptr_ctr;
1558 0 : TALLOC_CTX *_mem_save_ctr_0 = NULL;
1559 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1560 0 : if (ndr_flags & NDR_SCALARS) {
1561 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
1562 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktMajor(ndr, NDR_SCALARS, &r->major));
1563 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktMinor(ndr, NDR_SCALARS, &r->minor));
1564 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cs_id));
1565 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->memory_len));
1566 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pkt_len));
1567 0 : if (r->pkt_len > 262144) {
1568 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->pkt_len), (uint32_t)(0), (uint32_t)(262144));
1569 : }
1570 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->upk_len));
1571 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ctr));
1572 0 : if (_ptr_ctr) {
1573 0 : NDR_PULL_ALLOC(ndr, r->ctr);
1574 : } else {
1575 0 : r->ctr = NULL;
1576 : }
1577 0 : NDR_CHECK(ndr_pull_uint3264(ndr, NDR_SCALARS, &r->data_name));
1578 0 : NDR_CHECK(ndr_pull_uint3264(ndr, NDR_SCALARS, &r->data_handle));
1579 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1580 : }
1581 0 : if (ndr_flags & NDR_BUFFERS) {
1582 0 : if (r->ctr) {
1583 0 : _mem_save_ctr_0 = NDR_PULL_GET_MEM_CTX(ndr);
1584 0 : NDR_PULL_SET_MEM_CTX(ndr, r->ctr, 0);
1585 : {
1586 0 : struct ndr_pull *_ndr_ctr;
1587 0 : ssize_t sub_size = r->pkt_len;
1588 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_ctr, 4, sub_size));
1589 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChunkCtr(_ndr_ctr, NDR_SCALARS, r->ctr));
1590 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_ctr, 4, sub_size));
1591 : }
1592 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ctr_0, 0);
1593 : }
1594 : }
1595 0 : return NDR_ERR_SUCCESS;
1596 : }
1597 :
1598 0 : static void ndr_print_flags_frsrpc_FrsSendCommPktReq(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct frsrpc_FrsSendCommPktReq *r)
1599 : {
1600 0 : ndr_print_frsrpc_FrsSendCommPktReq(ndr, name, r);
1601 0 : }
1602 :
1603 0 : _PUBLIC_ void ndr_print_frsrpc_FrsSendCommPktReq(struct ndr_print *ndr, const char *name, const struct frsrpc_FrsSendCommPktReq *r)
1604 : {
1605 0 : ndr_print_struct(ndr, name, "frsrpc_FrsSendCommPktReq");
1606 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1607 0 : ndr->depth++;
1608 0 : ndr_print_frsrpc_CommPktMajor(ndr, "major", r->major);
1609 0 : ndr_print_frsrpc_CommPktMinor(ndr, "minor", r->minor);
1610 0 : ndr_print_uint32(ndr, "cs_id", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?1:r->cs_id);
1611 0 : ndr_print_uint32(ndr, "memory_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?r->pkt_len + 12:r->memory_len);
1612 0 : ndr_print_uint32(ndr, "pkt_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?ndr_size_frsrpc_CommPktChunkCtr(r->ctr, ndr->flags):r->pkt_len);
1613 0 : ndr_print_uint32(ndr, "upk_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->upk_len);
1614 0 : ndr_print_ptr(ndr, "ctr", r->ctr);
1615 0 : ndr->depth++;
1616 0 : if (r->ctr) {
1617 0 : ndr_print_frsrpc_CommPktChunkCtr(ndr, "ctr", r->ctr);
1618 : }
1619 0 : ndr->depth--;
1620 0 : ndr_print_uint3264(ndr, "data_name", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->data_name);
1621 0 : ndr_print_uint3264(ndr, "data_handle", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->data_handle);
1622 0 : ndr->depth--;
1623 : }
1624 :
1625 0 : static enum ndr_err_code ndr_push_frsrpc_PartnerAuthLevel(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum frsrpc_PartnerAuthLevel r)
1626 : {
1627 : {
1628 0 : libndr_flags _flags_save_ENUM = ndr->flags;
1629 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
1630 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1631 0 : ndr->flags = _flags_save_ENUM;
1632 : }
1633 0 : return NDR_ERR_SUCCESS;
1634 : }
1635 :
1636 0 : static enum ndr_err_code ndr_pull_frsrpc_PartnerAuthLevel(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum frsrpc_PartnerAuthLevel *r)
1637 : {
1638 0 : uint32_t v;
1639 : {
1640 0 : libndr_flags _flags_save_ENUM = ndr->flags;
1641 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
1642 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1643 0 : *r = v;
1644 0 : ndr->flags = _flags_save_ENUM;
1645 : }
1646 0 : return NDR_ERR_SUCCESS;
1647 : }
1648 :
1649 0 : _PUBLIC_ void ndr_print_frsrpc_PartnerAuthLevel(struct ndr_print *ndr, const char *name, enum frsrpc_PartnerAuthLevel r)
1650 : {
1651 0 : const char *val = NULL;
1652 :
1653 : {
1654 0 : libndr_flags _flags_save_ENUM = ndr->flags;
1655 0 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
1656 0 : switch (r) {
1657 0 : case FRSRPC_PARENT_AUTH_LEVEL_ENCRYPTED_KERBEROS: val = "FRSRPC_PARENT_AUTH_LEVEL_ENCRYPTED_KERBEROS"; break;
1658 0 : case FRSRPC_PARENT_AUTH_LEVEL_NO_AUTHENTICATION: val = "FRSRPC_PARENT_AUTH_LEVEL_NO_AUTHENTICATION"; break;
1659 : }
1660 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1661 0 : ndr->flags = _flags_save_ENUM;
1662 : }
1663 0 : }
1664 :
1665 0 : _PUBLIC_ enum ndr_err_code ndr_push_frsrpc_StageHeader(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct frsrpc_StageHeader *r)
1666 : {
1667 : {
1668 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
1669 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1670 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1671 0 : if (ndr_flags & NDR_SCALARS) {
1672 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1673 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->major));
1674 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->minor));
1675 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dataHigh));
1676 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dataLow));
1677 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->compression));
1678 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->unused, 6));
1679 0 : NDR_CHECK(ndr_push_fscc_FileNetworkOpenInformation(ndr, NDR_SCALARS, &r->attributes));
1680 0 : NDR_CHECK(ndr_push_frsrpc_CommPktChangeOrderCommand(ndr, NDR_SCALARS, &r->command));
1681 0 : NDR_CHECK(ndr_push_fscc_FileObjectIdBuffer_2(ndr, NDR_SCALARS, &r->fileObjId));
1682 0 : NDR_CHECK(ndr_push_frsrpc_CommPktCoRecordExtensionWin2k(ndr, NDR_SCALARS, &r->cocExt));
1683 0 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->compressionGuid));
1684 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->encDataHigh));
1685 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->encDataLow));
1686 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->dataSize));
1687 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reparseDataPresent));
1688 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reparseDataHigh));
1689 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reparseDataLow));
1690 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->padding2));
1691 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1692 : }
1693 0 : if (ndr_flags & NDR_BUFFERS) {
1694 0 : }
1695 0 : ndr->flags = _flags_save_STRUCT;
1696 : }
1697 0 : return NDR_ERR_SUCCESS;
1698 : }
1699 :
1700 0 : _PUBLIC_ enum ndr_err_code ndr_pull_frsrpc_StageHeader(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct frsrpc_StageHeader *r)
1701 : {
1702 0 : uint32_t size_unused_0 = 0;
1703 : {
1704 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
1705 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1706 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1707 0 : if (ndr_flags & NDR_SCALARS) {
1708 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1709 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->major));
1710 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->minor));
1711 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dataHigh));
1712 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dataLow));
1713 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->compression));
1714 0 : size_unused_0 = 6;
1715 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->unused, size_unused_0));
1716 0 : NDR_CHECK(ndr_pull_fscc_FileNetworkOpenInformation(ndr, NDR_SCALARS, &r->attributes));
1717 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktChangeOrderCommand(ndr, NDR_SCALARS, &r->command));
1718 0 : NDR_CHECK(ndr_pull_fscc_FileObjectIdBuffer_2(ndr, NDR_SCALARS, &r->fileObjId));
1719 0 : NDR_CHECK(ndr_pull_frsrpc_CommPktCoRecordExtensionWin2k(ndr, NDR_SCALARS, &r->cocExt));
1720 0 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->compressionGuid));
1721 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->encDataHigh));
1722 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->encDataLow));
1723 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->dataSize));
1724 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reparseDataPresent));
1725 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reparseDataHigh));
1726 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reparseDataLow));
1727 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->padding2));
1728 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1729 : }
1730 0 : if (ndr_flags & NDR_BUFFERS) {
1731 0 : }
1732 0 : ndr->flags = _flags_save_STRUCT;
1733 : }
1734 0 : return NDR_ERR_SUCCESS;
1735 : }
1736 :
1737 0 : static void ndr_print_flags_frsrpc_StageHeader(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct frsrpc_StageHeader *r)
1738 : {
1739 0 : ndr_print_frsrpc_StageHeader(ndr, name, r);
1740 0 : }
1741 :
1742 0 : _PUBLIC_ void ndr_print_frsrpc_StageHeader(struct ndr_print *ndr, const char *name, const struct frsrpc_StageHeader *r)
1743 : {
1744 0 : ndr_print_struct(ndr, name, "frsrpc_StageHeader");
1745 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1746 : {
1747 0 : libndr_flags _flags_save_STRUCT = ndr->flags;
1748 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1749 0 : ndr->depth++;
1750 0 : ndr_print_uint32(ndr, "major", r->major);
1751 0 : ndr_print_uint32(ndr, "minor", r->minor);
1752 0 : ndr_print_uint32(ndr, "dataHigh", r->dataHigh);
1753 0 : ndr_print_uint32(ndr, "dataLow", r->dataLow);
1754 0 : ndr_print_uint16(ndr, "compression", r->compression);
1755 0 : ndr_print_array_uint8(ndr, "unused", r->unused, 6);
1756 0 : ndr_print_fscc_FileNetworkOpenInformation(ndr, "attributes", &r->attributes);
1757 0 : ndr_print_frsrpc_CommPktChangeOrderCommand(ndr, "command", &r->command);
1758 0 : ndr_print_fscc_FileObjectIdBuffer_2(ndr, "fileObjId", &r->fileObjId);
1759 0 : ndr_print_frsrpc_CommPktCoRecordExtensionWin2k(ndr, "cocExt", &r->cocExt);
1760 0 : ndr_print_GUID(ndr, "compressionGuid", &r->compressionGuid);
1761 0 : ndr_print_uint32(ndr, "encDataHigh", r->encDataHigh);
1762 0 : ndr_print_uint32(ndr, "encDataLow", r->encDataLow);
1763 0 : ndr_print_hyper(ndr, "dataSize", r->dataSize);
1764 0 : ndr_print_uint32(ndr, "reparseDataPresent", r->reparseDataPresent);
1765 0 : ndr_print_uint32(ndr, "reparseDataHigh", r->reparseDataHigh);
1766 0 : ndr_print_uint32(ndr, "reparseDataLow", r->reparseDataLow);
1767 0 : ndr_print_uint32(ndr, "padding2", r->padding2);
1768 0 : ndr->depth--;
1769 0 : ndr->flags = _flags_save_STRUCT;
1770 : }
1771 : }
1772 :
1773 0 : static enum ndr_err_code ndr_push_frsrpc_FrsSendCommPkt(struct ndr_push *ndr, ndr_flags_type flags, const struct frsrpc_FrsSendCommPkt *r)
1774 : {
1775 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
1776 0 : if (flags & NDR_IN) {
1777 0 : NDR_CHECK(ndr_push_frsrpc_FrsSendCommPktReq(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.req));
1778 : }
1779 0 : if (flags & NDR_OUT) {
1780 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1781 : }
1782 0 : return NDR_ERR_SUCCESS;
1783 : }
1784 :
1785 0 : static enum ndr_err_code ndr_pull_frsrpc_FrsSendCommPkt(struct ndr_pull *ndr, ndr_flags_type flags, struct frsrpc_FrsSendCommPkt *r)
1786 : {
1787 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
1788 0 : if (flags & NDR_IN) {
1789 0 : NDR_CHECK(ndr_pull_frsrpc_FrsSendCommPktReq(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.req));
1790 : }
1791 0 : if (flags & NDR_OUT) {
1792 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
1793 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
1794 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1795 : }
1796 0 : return NDR_ERR_SUCCESS;
1797 : }
1798 :
1799 0 : _PUBLIC_ void ndr_print_frsrpc_FrsSendCommPkt(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct frsrpc_FrsSendCommPkt *r)
1800 : {
1801 0 : ndr_print_struct(ndr, name, "frsrpc_FrsSendCommPkt");
1802 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1803 0 : ndr->depth++;
1804 0 : if (flags & NDR_SET_VALUES) {
1805 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1806 : }
1807 0 : if (flags & NDR_IN) {
1808 0 : ndr_print_struct(ndr, "in", "frsrpc_FrsSendCommPkt");
1809 0 : ndr->depth++;
1810 0 : ndr_print_frsrpc_FrsSendCommPktReq(ndr, "req", &r->in.req);
1811 0 : ndr->depth--;
1812 : }
1813 0 : if (flags & NDR_OUT) {
1814 0 : ndr_print_struct(ndr, "out", "frsrpc_FrsSendCommPkt");
1815 0 : ndr->depth++;
1816 0 : ndr_print_WERROR(ndr, "result", r->out.result);
1817 0 : ndr->depth--;
1818 : }
1819 0 : ndr->depth--;
1820 : }
1821 :
1822 0 : static enum ndr_err_code ndr_push_frsrpc_FrsVerifyPromotionParent(struct ndr_push *ndr, ndr_flags_type flags, const struct frsrpc_FrsVerifyPromotionParent *r)
1823 : {
1824 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
1825 0 : if (flags & NDR_IN) {
1826 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.parent_account));
1827 0 : if (r->in.parent_account) {
1828 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.parent_account, CH_UTF16)));
1829 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1830 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.parent_account, CH_UTF16)));
1831 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.parent_account, ndr_charset_length(r->in.parent_account, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1832 : }
1833 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.parent_password));
1834 0 : if (r->in.parent_password) {
1835 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.parent_password, CH_UTF16)));
1836 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1837 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.parent_password, CH_UTF16)));
1838 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.parent_password, ndr_charset_length(r->in.parent_password, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1839 : }
1840 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.replica_set_name));
1841 0 : if (r->in.replica_set_name) {
1842 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_name, CH_UTF16)));
1843 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1844 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_name, CH_UTF16)));
1845 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.replica_set_name, ndr_charset_length(r->in.replica_set_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1846 : }
1847 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.replica_set_type));
1848 0 : if (r->in.replica_set_type) {
1849 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_type, CH_UTF16)));
1850 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1851 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_type, CH_UTF16)));
1852 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.replica_set_type, ndr_charset_length(r->in.replica_set_type, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1853 : }
1854 0 : NDR_CHECK(ndr_push_frsrpc_PartnerAuthLevel(ndr, NDR_SCALARS, r->in.partner_auth_level));
1855 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.__ndr_guid_size));
1856 : }
1857 0 : if (flags & NDR_OUT) {
1858 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1859 : }
1860 0 : return NDR_ERR_SUCCESS;
1861 : }
1862 :
1863 0 : static enum ndr_err_code ndr_pull_frsrpc_FrsVerifyPromotionParent(struct ndr_pull *ndr, ndr_flags_type flags, struct frsrpc_FrsVerifyPromotionParent *r)
1864 : {
1865 0 : uint32_t _ptr_parent_account;
1866 0 : uint32_t size_parent_account_1 = 0;
1867 0 : uint32_t length_parent_account_1 = 0;
1868 0 : uint32_t _ptr_parent_password;
1869 0 : uint32_t size_parent_password_1 = 0;
1870 0 : uint32_t length_parent_password_1 = 0;
1871 0 : uint32_t _ptr_replica_set_name;
1872 0 : uint32_t size_replica_set_name_1 = 0;
1873 0 : uint32_t length_replica_set_name_1 = 0;
1874 0 : uint32_t _ptr_replica_set_type;
1875 0 : uint32_t size_replica_set_type_1 = 0;
1876 0 : uint32_t length_replica_set_type_1 = 0;
1877 0 : TALLOC_CTX *_mem_save_parent_account_0 = NULL;
1878 0 : TALLOC_CTX *_mem_save_parent_password_0 = NULL;
1879 0 : TALLOC_CTX *_mem_save_replica_set_name_0 = NULL;
1880 0 : TALLOC_CTX *_mem_save_replica_set_type_0 = NULL;
1881 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
1882 0 : if (flags & NDR_IN) {
1883 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_parent_account));
1884 0 : if (_ptr_parent_account) {
1885 0 : NDR_PULL_ALLOC(ndr, r->in.parent_account);
1886 : } else {
1887 0 : r->in.parent_account = NULL;
1888 : }
1889 0 : if (r->in.parent_account) {
1890 0 : _mem_save_parent_account_0 = NDR_PULL_GET_MEM_CTX(ndr);
1891 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.parent_account, 0);
1892 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.parent_account));
1893 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.parent_account));
1894 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.parent_account, &size_parent_account_1));
1895 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.parent_account, &length_parent_account_1));
1896 0 : if (length_parent_account_1 > size_parent_account_1) {
1897 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_parent_account_1, length_parent_account_1);
1898 : }
1899 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_parent_account_1, sizeof(uint16_t)));
1900 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.parent_account, length_parent_account_1, sizeof(uint16_t), CH_UTF16));
1901 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_parent_account_0, 0);
1902 : }
1903 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_parent_password));
1904 0 : if (_ptr_parent_password) {
1905 0 : NDR_PULL_ALLOC(ndr, r->in.parent_password);
1906 : } else {
1907 0 : r->in.parent_password = NULL;
1908 : }
1909 0 : if (r->in.parent_password) {
1910 0 : _mem_save_parent_password_0 = NDR_PULL_GET_MEM_CTX(ndr);
1911 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.parent_password, 0);
1912 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.parent_password));
1913 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.parent_password));
1914 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.parent_password, &size_parent_password_1));
1915 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.parent_password, &length_parent_password_1));
1916 0 : if (length_parent_password_1 > size_parent_password_1) {
1917 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_parent_password_1, length_parent_password_1);
1918 : }
1919 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_parent_password_1, sizeof(uint16_t)));
1920 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.parent_password, length_parent_password_1, sizeof(uint16_t), CH_UTF16));
1921 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_parent_password_0, 0);
1922 : }
1923 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_replica_set_name));
1924 0 : if (_ptr_replica_set_name) {
1925 0 : NDR_PULL_ALLOC(ndr, r->in.replica_set_name);
1926 : } else {
1927 0 : r->in.replica_set_name = NULL;
1928 : }
1929 0 : if (r->in.replica_set_name) {
1930 0 : _mem_save_replica_set_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
1931 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.replica_set_name, 0);
1932 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.replica_set_name));
1933 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.replica_set_name));
1934 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.replica_set_name, &size_replica_set_name_1));
1935 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.replica_set_name, &length_replica_set_name_1));
1936 0 : if (length_replica_set_name_1 > size_replica_set_name_1) {
1937 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_replica_set_name_1, length_replica_set_name_1);
1938 : }
1939 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_replica_set_name_1, sizeof(uint16_t)));
1940 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.replica_set_name, length_replica_set_name_1, sizeof(uint16_t), CH_UTF16));
1941 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_replica_set_name_0, 0);
1942 : }
1943 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_replica_set_type));
1944 0 : if (_ptr_replica_set_type) {
1945 0 : NDR_PULL_ALLOC(ndr, r->in.replica_set_type);
1946 : } else {
1947 0 : r->in.replica_set_type = NULL;
1948 : }
1949 0 : if (r->in.replica_set_type) {
1950 0 : _mem_save_replica_set_type_0 = NDR_PULL_GET_MEM_CTX(ndr);
1951 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.replica_set_type, 0);
1952 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.replica_set_type));
1953 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.replica_set_type));
1954 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.replica_set_type, &size_replica_set_type_1));
1955 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.replica_set_type, &length_replica_set_type_1));
1956 0 : if (length_replica_set_type_1 > size_replica_set_type_1) {
1957 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_replica_set_type_1, length_replica_set_type_1);
1958 : }
1959 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_replica_set_type_1, sizeof(uint16_t)));
1960 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.replica_set_type, length_replica_set_type_1, sizeof(uint16_t), CH_UTF16));
1961 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_replica_set_type_0, 0);
1962 : }
1963 0 : NDR_CHECK(ndr_pull_frsrpc_PartnerAuthLevel(ndr, NDR_SCALARS, &r->in.partner_auth_level));
1964 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.__ndr_guid_size));
1965 : }
1966 0 : if (flags & NDR_OUT) {
1967 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
1968 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
1969 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1970 : }
1971 0 : return NDR_ERR_SUCCESS;
1972 : }
1973 :
1974 0 : _PUBLIC_ void ndr_print_frsrpc_FrsVerifyPromotionParent(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct frsrpc_FrsVerifyPromotionParent *r)
1975 : {
1976 0 : ndr_print_struct(ndr, name, "frsrpc_FrsVerifyPromotionParent");
1977 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1978 0 : ndr->depth++;
1979 0 : if (flags & NDR_SET_VALUES) {
1980 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1981 : }
1982 0 : if (flags & NDR_IN) {
1983 0 : ndr_print_struct(ndr, "in", "frsrpc_FrsVerifyPromotionParent");
1984 0 : ndr->depth++;
1985 0 : ndr_print_ptr(ndr, "parent_account", r->in.parent_account);
1986 0 : ndr->depth++;
1987 0 : if (r->in.parent_account) {
1988 0 : ndr_print_string(ndr, "parent_account", r->in.parent_account);
1989 : }
1990 0 : ndr->depth--;
1991 0 : ndr_print_ptr(ndr, "parent_password", r->in.parent_password);
1992 0 : ndr->depth++;
1993 0 : if (r->in.parent_password) {
1994 0 : ndr_print_string(ndr, "parent_password", r->in.parent_password);
1995 : }
1996 0 : ndr->depth--;
1997 0 : ndr_print_ptr(ndr, "replica_set_name", r->in.replica_set_name);
1998 0 : ndr->depth++;
1999 0 : if (r->in.replica_set_name) {
2000 0 : ndr_print_string(ndr, "replica_set_name", r->in.replica_set_name);
2001 : }
2002 0 : ndr->depth--;
2003 0 : ndr_print_ptr(ndr, "replica_set_type", r->in.replica_set_type);
2004 0 : ndr->depth++;
2005 0 : if (r->in.replica_set_type) {
2006 0 : ndr_print_string(ndr, "replica_set_type", r->in.replica_set_type);
2007 : }
2008 0 : ndr->depth--;
2009 0 : ndr_print_frsrpc_PartnerAuthLevel(ndr, "partner_auth_level", r->in.partner_auth_level);
2010 0 : ndr_print_uint32(ndr, "__ndr_guid_size", r->in.__ndr_guid_size);
2011 0 : ndr->depth--;
2012 : }
2013 0 : if (flags & NDR_OUT) {
2014 0 : ndr_print_struct(ndr, "out", "frsrpc_FrsVerifyPromotionParent");
2015 0 : ndr->depth++;
2016 0 : ndr_print_WERROR(ndr, "result", r->out.result);
2017 0 : ndr->depth--;
2018 : }
2019 0 : ndr->depth--;
2020 : }
2021 :
2022 0 : static enum ndr_err_code ndr_push_frsrpc_FrsStartPromotionParent(struct ndr_push *ndr, ndr_flags_type flags, const struct frsrpc_FrsStartPromotionParent *r)
2023 : {
2024 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2025 0 : if (flags & NDR_IN) {
2026 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.parent_account));
2027 0 : if (r->in.parent_account) {
2028 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.parent_account, CH_UTF16)));
2029 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2030 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.parent_account, CH_UTF16)));
2031 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.parent_account, ndr_charset_length(r->in.parent_account, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2032 : }
2033 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.parent_password));
2034 0 : if (r->in.parent_password) {
2035 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.parent_password, CH_UTF16)));
2036 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2037 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.parent_password, CH_UTF16)));
2038 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.parent_password, ndr_charset_length(r->in.parent_password, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2039 : }
2040 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.replica_set_name));
2041 0 : if (r->in.replica_set_name) {
2042 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_name, CH_UTF16)));
2043 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2044 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_name, CH_UTF16)));
2045 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.replica_set_name, ndr_charset_length(r->in.replica_set_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2046 : }
2047 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.replica_set_type));
2048 0 : if (r->in.replica_set_type) {
2049 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_type, CH_UTF16)));
2050 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2051 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_type, CH_UTF16)));
2052 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.replica_set_type, ndr_charset_length(r->in.replica_set_type, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2053 : }
2054 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.connection_name));
2055 0 : if (r->in.connection_name) {
2056 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.connection_name, CH_UTF16)));
2057 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2058 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.connection_name, CH_UTF16)));
2059 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.connection_name, ndr_charset_length(r->in.connection_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2060 : }
2061 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.partner_name));
2062 0 : if (r->in.partner_name) {
2063 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.partner_name, CH_UTF16)));
2064 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2065 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.partner_name, CH_UTF16)));
2066 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.partner_name, ndr_charset_length(r->in.partner_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2067 : }
2068 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.partner_princ_name));
2069 0 : if (r->in.partner_princ_name) {
2070 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.partner_princ_name, CH_UTF16)));
2071 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2072 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.partner_princ_name, CH_UTF16)));
2073 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.partner_princ_name, ndr_charset_length(r->in.partner_princ_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2074 : }
2075 0 : NDR_CHECK(ndr_push_frsrpc_PartnerAuthLevel(ndr, NDR_SCALARS, r->in.partner_auth_level));
2076 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 16));
2077 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.connection_guid));
2078 0 : if (r->in.connection_guid) {
2079 : {
2080 0 : struct ndr_push *_ndr_connection_guid;
2081 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_connection_guid, 4, 16));
2082 0 : NDR_CHECK(ndr_push_GUID(_ndr_connection_guid, NDR_SCALARS, r->in.connection_guid));
2083 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_connection_guid, 4, 16));
2084 : }
2085 : }
2086 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.partner_guid));
2087 0 : if (r->in.partner_guid) {
2088 : {
2089 0 : struct ndr_push *_ndr_partner_guid;
2090 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_partner_guid, 4, 16));
2091 0 : NDR_CHECK(ndr_push_GUID(_ndr_partner_guid, NDR_SCALARS, r->in.partner_guid));
2092 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_partner_guid, 4, 16));
2093 : }
2094 : }
2095 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.parent_guid));
2096 0 : if (r->in.parent_guid) {
2097 : {
2098 0 : struct ndr_push *_ndr_parent_guid;
2099 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_parent_guid, 4, 16));
2100 0 : NDR_CHECK(ndr_push_GUID(_ndr_parent_guid, NDR_SCALARS, r->in.parent_guid));
2101 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_parent_guid, 4, 16));
2102 : }
2103 : }
2104 : }
2105 0 : if (flags & NDR_OUT) {
2106 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.parent_guid));
2107 0 : if (r->out.parent_guid) {
2108 : {
2109 0 : struct ndr_push *_ndr_parent_guid;
2110 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_parent_guid, 4, 16));
2111 0 : NDR_CHECK(ndr_push_GUID(_ndr_parent_guid, NDR_SCALARS, r->out.parent_guid));
2112 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_parent_guid, 4, 16));
2113 : }
2114 : }
2115 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2116 : }
2117 0 : return NDR_ERR_SUCCESS;
2118 : }
2119 :
2120 0 : static enum ndr_err_code ndr_pull_frsrpc_FrsStartPromotionParent(struct ndr_pull *ndr, ndr_flags_type flags, struct frsrpc_FrsStartPromotionParent *r)
2121 : {
2122 0 : uint32_t _ptr_parent_account;
2123 0 : uint32_t size_parent_account_1 = 0;
2124 0 : uint32_t length_parent_account_1 = 0;
2125 0 : uint32_t _ptr_parent_password;
2126 0 : uint32_t size_parent_password_1 = 0;
2127 0 : uint32_t length_parent_password_1 = 0;
2128 0 : uint32_t _ptr_replica_set_name;
2129 0 : uint32_t size_replica_set_name_1 = 0;
2130 0 : uint32_t length_replica_set_name_1 = 0;
2131 0 : uint32_t _ptr_replica_set_type;
2132 0 : uint32_t size_replica_set_type_1 = 0;
2133 0 : uint32_t length_replica_set_type_1 = 0;
2134 0 : uint32_t _ptr_connection_name;
2135 0 : uint32_t size_connection_name_1 = 0;
2136 0 : uint32_t length_connection_name_1 = 0;
2137 0 : uint32_t _ptr_partner_name;
2138 0 : uint32_t size_partner_name_1 = 0;
2139 0 : uint32_t length_partner_name_1 = 0;
2140 0 : uint32_t _ptr_partner_princ_name;
2141 0 : uint32_t size_partner_princ_name_1 = 0;
2142 0 : uint32_t length_partner_princ_name_1 = 0;
2143 0 : uint32_t _ptr_connection_guid;
2144 0 : uint32_t _ptr_partner_guid;
2145 0 : uint32_t _ptr_parent_guid;
2146 0 : TALLOC_CTX *_mem_save_parent_account_0 = NULL;
2147 0 : TALLOC_CTX *_mem_save_parent_password_0 = NULL;
2148 0 : TALLOC_CTX *_mem_save_replica_set_name_0 = NULL;
2149 0 : TALLOC_CTX *_mem_save_replica_set_type_0 = NULL;
2150 0 : TALLOC_CTX *_mem_save_connection_name_0 = NULL;
2151 0 : TALLOC_CTX *_mem_save_partner_name_0 = NULL;
2152 0 : TALLOC_CTX *_mem_save_partner_princ_name_0 = NULL;
2153 0 : TALLOC_CTX *_mem_save_connection_guid_0 = NULL;
2154 0 : TALLOC_CTX *_mem_save_partner_guid_0 = NULL;
2155 0 : TALLOC_CTX *_mem_save_parent_guid_0 = NULL;
2156 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2157 0 : if (flags & NDR_IN) {
2158 0 : NDR_ZERO_STRUCT(r->out);
2159 :
2160 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_parent_account));
2161 0 : if (_ptr_parent_account) {
2162 0 : NDR_PULL_ALLOC(ndr, r->in.parent_account);
2163 : } else {
2164 0 : r->in.parent_account = NULL;
2165 : }
2166 0 : if (r->in.parent_account) {
2167 0 : _mem_save_parent_account_0 = NDR_PULL_GET_MEM_CTX(ndr);
2168 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.parent_account, 0);
2169 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.parent_account));
2170 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.parent_account));
2171 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.parent_account, &size_parent_account_1));
2172 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.parent_account, &length_parent_account_1));
2173 0 : if (length_parent_account_1 > size_parent_account_1) {
2174 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_parent_account_1, length_parent_account_1);
2175 : }
2176 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_parent_account_1, sizeof(uint16_t)));
2177 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.parent_account, length_parent_account_1, sizeof(uint16_t), CH_UTF16));
2178 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_parent_account_0, 0);
2179 : }
2180 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_parent_password));
2181 0 : if (_ptr_parent_password) {
2182 0 : NDR_PULL_ALLOC(ndr, r->in.parent_password);
2183 : } else {
2184 0 : r->in.parent_password = NULL;
2185 : }
2186 0 : if (r->in.parent_password) {
2187 0 : _mem_save_parent_password_0 = NDR_PULL_GET_MEM_CTX(ndr);
2188 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.parent_password, 0);
2189 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.parent_password));
2190 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.parent_password));
2191 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.parent_password, &size_parent_password_1));
2192 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.parent_password, &length_parent_password_1));
2193 0 : if (length_parent_password_1 > size_parent_password_1) {
2194 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_parent_password_1, length_parent_password_1);
2195 : }
2196 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_parent_password_1, sizeof(uint16_t)));
2197 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.parent_password, length_parent_password_1, sizeof(uint16_t), CH_UTF16));
2198 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_parent_password_0, 0);
2199 : }
2200 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_replica_set_name));
2201 0 : if (_ptr_replica_set_name) {
2202 0 : NDR_PULL_ALLOC(ndr, r->in.replica_set_name);
2203 : } else {
2204 0 : r->in.replica_set_name = NULL;
2205 : }
2206 0 : if (r->in.replica_set_name) {
2207 0 : _mem_save_replica_set_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
2208 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.replica_set_name, 0);
2209 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.replica_set_name));
2210 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.replica_set_name));
2211 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.replica_set_name, &size_replica_set_name_1));
2212 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.replica_set_name, &length_replica_set_name_1));
2213 0 : if (length_replica_set_name_1 > size_replica_set_name_1) {
2214 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_replica_set_name_1, length_replica_set_name_1);
2215 : }
2216 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_replica_set_name_1, sizeof(uint16_t)));
2217 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.replica_set_name, length_replica_set_name_1, sizeof(uint16_t), CH_UTF16));
2218 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_replica_set_name_0, 0);
2219 : }
2220 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_replica_set_type));
2221 0 : if (_ptr_replica_set_type) {
2222 0 : NDR_PULL_ALLOC(ndr, r->in.replica_set_type);
2223 : } else {
2224 0 : r->in.replica_set_type = NULL;
2225 : }
2226 0 : if (r->in.replica_set_type) {
2227 0 : _mem_save_replica_set_type_0 = NDR_PULL_GET_MEM_CTX(ndr);
2228 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.replica_set_type, 0);
2229 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.replica_set_type));
2230 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.replica_set_type));
2231 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.replica_set_type, &size_replica_set_type_1));
2232 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.replica_set_type, &length_replica_set_type_1));
2233 0 : if (length_replica_set_type_1 > size_replica_set_type_1) {
2234 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_replica_set_type_1, length_replica_set_type_1);
2235 : }
2236 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_replica_set_type_1, sizeof(uint16_t)));
2237 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.replica_set_type, length_replica_set_type_1, sizeof(uint16_t), CH_UTF16));
2238 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_replica_set_type_0, 0);
2239 : }
2240 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_connection_name));
2241 0 : if (_ptr_connection_name) {
2242 0 : NDR_PULL_ALLOC(ndr, r->in.connection_name);
2243 : } else {
2244 0 : r->in.connection_name = NULL;
2245 : }
2246 0 : if (r->in.connection_name) {
2247 0 : _mem_save_connection_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
2248 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.connection_name, 0);
2249 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.connection_name));
2250 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.connection_name));
2251 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.connection_name, &size_connection_name_1));
2252 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.connection_name, &length_connection_name_1));
2253 0 : if (length_connection_name_1 > size_connection_name_1) {
2254 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_connection_name_1, length_connection_name_1);
2255 : }
2256 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_connection_name_1, sizeof(uint16_t)));
2257 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.connection_name, length_connection_name_1, sizeof(uint16_t), CH_UTF16));
2258 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_connection_name_0, 0);
2259 : }
2260 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_partner_name));
2261 0 : if (_ptr_partner_name) {
2262 0 : NDR_PULL_ALLOC(ndr, r->in.partner_name);
2263 : } else {
2264 0 : r->in.partner_name = NULL;
2265 : }
2266 0 : if (r->in.partner_name) {
2267 0 : _mem_save_partner_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
2268 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.partner_name, 0);
2269 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.partner_name));
2270 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.partner_name));
2271 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.partner_name, &size_partner_name_1));
2272 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.partner_name, &length_partner_name_1));
2273 0 : if (length_partner_name_1 > size_partner_name_1) {
2274 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_partner_name_1, length_partner_name_1);
2275 : }
2276 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_partner_name_1, sizeof(uint16_t)));
2277 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.partner_name, length_partner_name_1, sizeof(uint16_t), CH_UTF16));
2278 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_partner_name_0, 0);
2279 : }
2280 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_partner_princ_name));
2281 0 : if (_ptr_partner_princ_name) {
2282 0 : NDR_PULL_ALLOC(ndr, r->in.partner_princ_name);
2283 : } else {
2284 0 : r->in.partner_princ_name = NULL;
2285 : }
2286 0 : if (r->in.partner_princ_name) {
2287 0 : _mem_save_partner_princ_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
2288 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.partner_princ_name, 0);
2289 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.partner_princ_name));
2290 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.partner_princ_name));
2291 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.partner_princ_name, &size_partner_princ_name_1));
2292 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.partner_princ_name, &length_partner_princ_name_1));
2293 0 : if (length_partner_princ_name_1 > size_partner_princ_name_1) {
2294 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_partner_princ_name_1, length_partner_princ_name_1);
2295 : }
2296 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_partner_princ_name_1, sizeof(uint16_t)));
2297 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.partner_princ_name, length_partner_princ_name_1, sizeof(uint16_t), CH_UTF16));
2298 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_partner_princ_name_0, 0);
2299 : }
2300 0 : NDR_CHECK(ndr_pull_frsrpc_PartnerAuthLevel(ndr, NDR_SCALARS, &r->in.partner_auth_level));
2301 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.__ndr_guid_size));
2302 0 : if (r->in.__ndr_guid_size < 16 || r->in.__ndr_guid_size > 16) {
2303 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.__ndr_guid_size), (uint32_t)(16), (uint32_t)(16));
2304 : }
2305 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_connection_guid));
2306 0 : if (_ptr_connection_guid) {
2307 0 : NDR_PULL_ALLOC(ndr, r->in.connection_guid);
2308 : } else {
2309 0 : r->in.connection_guid = NULL;
2310 : }
2311 0 : if (r->in.connection_guid) {
2312 0 : _mem_save_connection_guid_0 = NDR_PULL_GET_MEM_CTX(ndr);
2313 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.connection_guid, 0);
2314 : {
2315 0 : struct ndr_pull *_ndr_connection_guid;
2316 0 : ssize_t sub_size = 16;
2317 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_connection_guid, 4, sub_size));
2318 0 : NDR_CHECK(ndr_pull_GUID(_ndr_connection_guid, NDR_SCALARS, r->in.connection_guid));
2319 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_connection_guid, 4, sub_size));
2320 : }
2321 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_connection_guid_0, 0);
2322 : }
2323 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_partner_guid));
2324 0 : if (_ptr_partner_guid) {
2325 0 : NDR_PULL_ALLOC(ndr, r->in.partner_guid);
2326 : } else {
2327 0 : r->in.partner_guid = NULL;
2328 : }
2329 0 : if (r->in.partner_guid) {
2330 0 : _mem_save_partner_guid_0 = NDR_PULL_GET_MEM_CTX(ndr);
2331 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.partner_guid, 0);
2332 : {
2333 0 : struct ndr_pull *_ndr_partner_guid;
2334 0 : ssize_t sub_size = 16;
2335 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_partner_guid, 4, sub_size));
2336 0 : NDR_CHECK(ndr_pull_GUID(_ndr_partner_guid, NDR_SCALARS, r->in.partner_guid));
2337 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_partner_guid, 4, sub_size));
2338 : }
2339 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_partner_guid_0, 0);
2340 : }
2341 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_parent_guid));
2342 0 : if (_ptr_parent_guid) {
2343 0 : NDR_PULL_ALLOC(ndr, r->in.parent_guid);
2344 : } else {
2345 0 : r->in.parent_guid = NULL;
2346 : }
2347 0 : if (r->in.parent_guid) {
2348 0 : _mem_save_parent_guid_0 = NDR_PULL_GET_MEM_CTX(ndr);
2349 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.parent_guid, 0);
2350 : {
2351 0 : struct ndr_pull *_ndr_parent_guid;
2352 0 : ssize_t sub_size = 16;
2353 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_parent_guid, 4, sub_size));
2354 0 : NDR_CHECK(ndr_pull_GUID(_ndr_parent_guid, NDR_SCALARS, r->in.parent_guid));
2355 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_parent_guid, 4, sub_size));
2356 : }
2357 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_parent_guid_0, 0);
2358 : }
2359 : }
2360 0 : if (flags & NDR_OUT) {
2361 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2362 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2363 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_parent_guid));
2364 0 : if (_ptr_parent_guid) {
2365 0 : NDR_PULL_ALLOC(ndr, r->out.parent_guid);
2366 : } else {
2367 0 : r->out.parent_guid = NULL;
2368 : }
2369 0 : if (r->out.parent_guid) {
2370 0 : _mem_save_parent_guid_0 = NDR_PULL_GET_MEM_CTX(ndr);
2371 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.parent_guid, 0);
2372 : {
2373 0 : struct ndr_pull *_ndr_parent_guid;
2374 0 : ssize_t sub_size = 16;
2375 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_parent_guid, 4, sub_size));
2376 0 : NDR_CHECK(ndr_pull_GUID(_ndr_parent_guid, NDR_SCALARS, r->out.parent_guid));
2377 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_parent_guid, 4, sub_size));
2378 : }
2379 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_parent_guid_0, 0);
2380 : }
2381 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2382 : }
2383 0 : return NDR_ERR_SUCCESS;
2384 : }
2385 :
2386 0 : _PUBLIC_ void ndr_print_frsrpc_FrsStartPromotionParent(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct frsrpc_FrsStartPromotionParent *r)
2387 : {
2388 0 : ndr_print_struct(ndr, name, "frsrpc_FrsStartPromotionParent");
2389 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2390 0 : ndr->depth++;
2391 0 : if (flags & NDR_SET_VALUES) {
2392 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2393 : }
2394 0 : if (flags & NDR_IN) {
2395 0 : ndr_print_struct(ndr, "in", "frsrpc_FrsStartPromotionParent");
2396 0 : ndr->depth++;
2397 0 : ndr_print_ptr(ndr, "parent_account", r->in.parent_account);
2398 0 : ndr->depth++;
2399 0 : if (r->in.parent_account) {
2400 0 : ndr_print_string(ndr, "parent_account", r->in.parent_account);
2401 : }
2402 0 : ndr->depth--;
2403 0 : ndr_print_ptr(ndr, "parent_password", r->in.parent_password);
2404 0 : ndr->depth++;
2405 0 : if (r->in.parent_password) {
2406 0 : ndr_print_string(ndr, "parent_password", r->in.parent_password);
2407 : }
2408 0 : ndr->depth--;
2409 0 : ndr_print_ptr(ndr, "replica_set_name", r->in.replica_set_name);
2410 0 : ndr->depth++;
2411 0 : if (r->in.replica_set_name) {
2412 0 : ndr_print_string(ndr, "replica_set_name", r->in.replica_set_name);
2413 : }
2414 0 : ndr->depth--;
2415 0 : ndr_print_ptr(ndr, "replica_set_type", r->in.replica_set_type);
2416 0 : ndr->depth++;
2417 0 : if (r->in.replica_set_type) {
2418 0 : ndr_print_string(ndr, "replica_set_type", r->in.replica_set_type);
2419 : }
2420 0 : ndr->depth--;
2421 0 : ndr_print_ptr(ndr, "connection_name", r->in.connection_name);
2422 0 : ndr->depth++;
2423 0 : if (r->in.connection_name) {
2424 0 : ndr_print_string(ndr, "connection_name", r->in.connection_name);
2425 : }
2426 0 : ndr->depth--;
2427 0 : ndr_print_ptr(ndr, "partner_name", r->in.partner_name);
2428 0 : ndr->depth++;
2429 0 : if (r->in.partner_name) {
2430 0 : ndr_print_string(ndr, "partner_name", r->in.partner_name);
2431 : }
2432 0 : ndr->depth--;
2433 0 : ndr_print_ptr(ndr, "partner_princ_name", r->in.partner_princ_name);
2434 0 : ndr->depth++;
2435 0 : if (r->in.partner_princ_name) {
2436 0 : ndr_print_string(ndr, "partner_princ_name", r->in.partner_princ_name);
2437 : }
2438 0 : ndr->depth--;
2439 0 : ndr_print_frsrpc_PartnerAuthLevel(ndr, "partner_auth_level", r->in.partner_auth_level);
2440 0 : ndr_print_uint32(ndr, "__ndr_guid_size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?16:r->in.__ndr_guid_size);
2441 0 : ndr_print_ptr(ndr, "connection_guid", r->in.connection_guid);
2442 0 : ndr->depth++;
2443 0 : if (r->in.connection_guid) {
2444 0 : ndr_print_GUID(ndr, "connection_guid", r->in.connection_guid);
2445 : }
2446 0 : ndr->depth--;
2447 0 : ndr_print_ptr(ndr, "partner_guid", r->in.partner_guid);
2448 0 : ndr->depth++;
2449 0 : if (r->in.partner_guid) {
2450 0 : ndr_print_GUID(ndr, "partner_guid", r->in.partner_guid);
2451 : }
2452 0 : ndr->depth--;
2453 0 : ndr_print_ptr(ndr, "parent_guid", r->in.parent_guid);
2454 0 : ndr->depth++;
2455 0 : if (r->in.parent_guid) {
2456 0 : ndr_print_GUID(ndr, "parent_guid", r->in.parent_guid);
2457 : }
2458 0 : ndr->depth--;
2459 0 : ndr->depth--;
2460 : }
2461 0 : if (flags & NDR_OUT) {
2462 0 : ndr_print_struct(ndr, "out", "frsrpc_FrsStartPromotionParent");
2463 0 : ndr->depth++;
2464 0 : ndr_print_ptr(ndr, "parent_guid", r->out.parent_guid);
2465 0 : ndr->depth++;
2466 0 : if (r->out.parent_guid) {
2467 0 : ndr_print_GUID(ndr, "parent_guid", r->out.parent_guid);
2468 : }
2469 0 : ndr->depth--;
2470 0 : ndr_print_WERROR(ndr, "result", r->out.result);
2471 0 : ndr->depth--;
2472 : }
2473 0 : ndr->depth--;
2474 : }
2475 :
2476 0 : static enum ndr_err_code ndr_push_frsrpc_FrsNOP(struct ndr_push *ndr, ndr_flags_type flags, const struct frsrpc_FrsNOP *r)
2477 : {
2478 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2479 0 : if (flags & NDR_IN) {
2480 0 : }
2481 0 : if (flags & NDR_OUT) {
2482 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2483 : }
2484 0 : return NDR_ERR_SUCCESS;
2485 : }
2486 :
2487 0 : static enum ndr_err_code ndr_pull_frsrpc_FrsNOP(struct ndr_pull *ndr, ndr_flags_type flags, struct frsrpc_FrsNOP *r)
2488 : {
2489 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2490 0 : if (flags & NDR_IN) {
2491 0 : }
2492 0 : if (flags & NDR_OUT) {
2493 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2494 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2495 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2496 : }
2497 0 : return NDR_ERR_SUCCESS;
2498 : }
2499 :
2500 0 : _PUBLIC_ void ndr_print_frsrpc_FrsNOP(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct frsrpc_FrsNOP *r)
2501 : {
2502 0 : ndr_print_struct(ndr, name, "frsrpc_FrsNOP");
2503 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2504 0 : ndr->depth++;
2505 0 : if (flags & NDR_SET_VALUES) {
2506 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2507 : }
2508 0 : if (flags & NDR_IN) {
2509 0 : ndr_print_struct(ndr, "in", "frsrpc_FrsNOP");
2510 0 : ndr->depth++;
2511 0 : ndr->depth--;
2512 : }
2513 0 : if (flags & NDR_OUT) {
2514 0 : ndr_print_struct(ndr, "out", "frsrpc_FrsNOP");
2515 0 : ndr->depth++;
2516 0 : ndr_print_WERROR(ndr, "result", r->out.result);
2517 0 : ndr->depth--;
2518 : }
2519 0 : ndr->depth--;
2520 : }
2521 :
2522 : #ifndef SKIP_NDR_TABLE_frsrpc
2523 : static const struct ndr_interface_public_struct frsrpc_public_structs[] = {
2524 : {
2525 : .name = "frsrpc_CommPktChangeOrderCommand",
2526 : .struct_size = sizeof(struct frsrpc_CommPktChangeOrderCommand ),
2527 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_frsrpc_CommPktChangeOrderCommand,
2528 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_frsrpc_CommPktChangeOrderCommand,
2529 : .ndr_print = (ndr_print_function_t) ndr_print_flags_frsrpc_CommPktChangeOrderCommand,
2530 : },
2531 : {
2532 : .name = "frsrpc_CommPktChunk",
2533 : .struct_size = sizeof(struct frsrpc_CommPktChunk ),
2534 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_frsrpc_CommPktChunk,
2535 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_frsrpc_CommPktChunk,
2536 : .ndr_print = (ndr_print_function_t) ndr_print_flags_frsrpc_CommPktChunk,
2537 : },
2538 : {
2539 : .name = "frsrpc_FrsSendCommPktReq",
2540 : .struct_size = sizeof(struct frsrpc_FrsSendCommPktReq ),
2541 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_frsrpc_FrsSendCommPktReq,
2542 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_frsrpc_FrsSendCommPktReq,
2543 : .ndr_print = (ndr_print_function_t) ndr_print_flags_frsrpc_FrsSendCommPktReq,
2544 : },
2545 : {
2546 : .name = "frsrpc_StageHeader",
2547 : .struct_size = sizeof(struct frsrpc_StageHeader ),
2548 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_frsrpc_StageHeader,
2549 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_frsrpc_StageHeader,
2550 : .ndr_print = (ndr_print_function_t) ndr_print_flags_frsrpc_StageHeader,
2551 : },
2552 : { .name = NULL }
2553 : };
2554 :
2555 : static const struct ndr_interface_call frsrpc_calls[] = {
2556 : {
2557 : "frsrpc_FrsSendCommPkt",
2558 : sizeof(struct frsrpc_FrsSendCommPkt),
2559 : (ndr_push_flags_fn_t) ndr_push_frsrpc_FrsSendCommPkt,
2560 : (ndr_pull_flags_fn_t) ndr_pull_frsrpc_FrsSendCommPkt,
2561 : (ndr_print_function_t) ndr_print_frsrpc_FrsSendCommPkt,
2562 : { 0, NULL },
2563 : { 0, NULL },
2564 : },
2565 : {
2566 : "frsrpc_FrsVerifyPromotionParent",
2567 : sizeof(struct frsrpc_FrsVerifyPromotionParent),
2568 : (ndr_push_flags_fn_t) ndr_push_frsrpc_FrsVerifyPromotionParent,
2569 : (ndr_pull_flags_fn_t) ndr_pull_frsrpc_FrsVerifyPromotionParent,
2570 : (ndr_print_function_t) ndr_print_frsrpc_FrsVerifyPromotionParent,
2571 : { 0, NULL },
2572 : { 0, NULL },
2573 : },
2574 : {
2575 : "frsrpc_FrsStartPromotionParent",
2576 : sizeof(struct frsrpc_FrsStartPromotionParent),
2577 : (ndr_push_flags_fn_t) ndr_push_frsrpc_FrsStartPromotionParent,
2578 : (ndr_pull_flags_fn_t) ndr_pull_frsrpc_FrsStartPromotionParent,
2579 : (ndr_print_function_t) ndr_print_frsrpc_FrsStartPromotionParent,
2580 : { 0, NULL },
2581 : { 0, NULL },
2582 : },
2583 : {
2584 : "frsrpc_FrsNOP",
2585 : sizeof(struct frsrpc_FrsNOP),
2586 : (ndr_push_flags_fn_t) ndr_push_frsrpc_FrsNOP,
2587 : (ndr_pull_flags_fn_t) ndr_pull_frsrpc_FrsNOP,
2588 : (ndr_print_function_t) ndr_print_frsrpc_FrsNOP,
2589 : { 0, NULL },
2590 : { 0, NULL },
2591 : },
2592 : { .name = NULL }
2593 : };
2594 :
2595 : static const char * const frsrpc_endpoint_strings[] = {
2596 : "ncacn_ip_tcp:",
2597 : "ncalrpc:",
2598 : };
2599 :
2600 : static const struct ndr_interface_string_array frsrpc_endpoints = {
2601 : .count = 2,
2602 : .names = frsrpc_endpoint_strings
2603 : };
2604 :
2605 : static const char * const frsrpc_authservice_strings[] = {
2606 : "host",
2607 : };
2608 :
2609 : static const struct ndr_interface_string_array frsrpc_authservices = {
2610 : .count = 1,
2611 : .names = frsrpc_authservice_strings
2612 : };
2613 :
2614 :
2615 : const struct ndr_interface_table ndr_table_frsrpc = {
2616 : .name = "frsrpc",
2617 : .syntax_id = {
2618 : {0xf5cc59b4,0x4264,0x101a,{0x8c,0x59},{0x08,0x00,0x2b,0x2f,0x84,0x26}},
2619 : NDR_FRSRPC_VERSION
2620 : },
2621 : .helpstring = NDR_FRSRPC_HELPSTRING,
2622 : .num_calls = 4,
2623 : .calls = frsrpc_calls,
2624 : .num_public_structs = 4,
2625 : .public_structs = frsrpc_public_structs,
2626 : .endpoints = &frsrpc_endpoints,
2627 : .authservices = &frsrpc_authservices
2628 : };
2629 :
2630 : #endif /* SKIP_NDR_TABLE_frsrpc */
|