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