Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/librpc/gen_ndr/ndr_ioctl.h"
5 :
6 0 : _PUBLIC_ enum ndr_err_code ndr_push_req_resume_key_rsp(struct ndr_push *ndr, int ndr_flags, const struct req_resume_key_rsp *r)
7 : {
8 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
9 0 : if (ndr_flags & NDR_SCALARS) {
10 0 : NDR_CHECK(ndr_push_align(ndr, 4));
11 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->resume_key, 24));
12 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->context_len));
13 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->context, 4));
14 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
15 : }
16 0 : if (ndr_flags & NDR_BUFFERS) {
17 : }
18 0 : return NDR_ERR_SUCCESS;
19 : }
20 :
21 0 : _PUBLIC_ enum ndr_err_code ndr_pull_req_resume_key_rsp(struct ndr_pull *ndr, int ndr_flags, struct req_resume_key_rsp *r)
22 : {
23 0 : uint32_t size_resume_key_0 = 0;
24 0 : uint32_t size_context_0 = 0;
25 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
26 0 : if (ndr_flags & NDR_SCALARS) {
27 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
28 0 : size_resume_key_0 = 24;
29 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->resume_key, size_resume_key_0));
30 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->context_len));
31 0 : size_context_0 = 4;
32 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->context, size_context_0));
33 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
34 : }
35 0 : if (ndr_flags & NDR_BUFFERS) {
36 : }
37 0 : return NDR_ERR_SUCCESS;
38 : }
39 :
40 0 : static void ndr_print_flags_req_resume_key_rsp(struct ndr_print *ndr, const char *name, int unused, const struct req_resume_key_rsp *r)
41 : {
42 0 : ndr_print_req_resume_key_rsp(ndr, name, r);
43 0 : }
44 :
45 0 : _PUBLIC_ void ndr_print_req_resume_key_rsp(struct ndr_print *ndr, const char *name, const struct req_resume_key_rsp *r)
46 : {
47 0 : ndr_print_struct(ndr, name, "req_resume_key_rsp");
48 0 : if (r == NULL) { ndr_print_null(ndr); return; }
49 0 : ndr->depth++;
50 0 : ndr_print_array_uint8(ndr, "resume_key", r->resume_key, 24);
51 0 : ndr_print_uint32(ndr, "context_len", r->context_len);
52 0 : ndr_print_array_uint8(ndr, "context", r->context, 4);
53 0 : ndr->depth--;
54 : }
55 :
56 0 : static enum ndr_err_code ndr_push_srv_copychunk(struct ndr_push *ndr, int ndr_flags, const struct srv_copychunk *r)
57 : {
58 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
59 0 : if (ndr_flags & NDR_SCALARS) {
60 0 : NDR_CHECK(ndr_push_align(ndr, 8));
61 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->source_off));
62 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->target_off));
63 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->length));
64 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved));
65 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
66 : }
67 0 : if (ndr_flags & NDR_BUFFERS) {
68 : }
69 0 : return NDR_ERR_SUCCESS;
70 : }
71 :
72 0 : static enum ndr_err_code ndr_pull_srv_copychunk(struct ndr_pull *ndr, int ndr_flags, struct srv_copychunk *r)
73 : {
74 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
75 0 : if (ndr_flags & NDR_SCALARS) {
76 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
77 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->source_off));
78 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->target_off));
79 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->length));
80 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
81 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
82 : }
83 0 : if (ndr_flags & NDR_BUFFERS) {
84 : }
85 0 : return NDR_ERR_SUCCESS;
86 : }
87 :
88 0 : _PUBLIC_ void ndr_print_srv_copychunk(struct ndr_print *ndr, const char *name, const struct srv_copychunk *r)
89 : {
90 0 : ndr_print_struct(ndr, name, "srv_copychunk");
91 0 : if (r == NULL) { ndr_print_null(ndr); return; }
92 0 : ndr->depth++;
93 0 : ndr_print_hyper(ndr, "source_off", r->source_off);
94 0 : ndr_print_hyper(ndr, "target_off", r->target_off);
95 0 : ndr_print_uint32(ndr, "length", r->length);
96 0 : ndr_print_uint32(ndr, "reserved", r->reserved);
97 0 : ndr->depth--;
98 : }
99 :
100 0 : _PUBLIC_ enum ndr_err_code ndr_push_srv_copychunk_copy(struct ndr_push *ndr, int ndr_flags, const struct srv_copychunk_copy *r)
101 : {
102 : uint32_t cntr_chunks_0;
103 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
104 0 : if (ndr_flags & NDR_SCALARS) {
105 0 : NDR_CHECK(ndr_push_align(ndr, 8));
106 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->source_key, 24));
107 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->chunk_count));
108 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved));
109 0 : for (cntr_chunks_0 = 0; cntr_chunks_0 < (r->chunk_count); cntr_chunks_0++) {
110 0 : NDR_CHECK(ndr_push_srv_copychunk(ndr, NDR_SCALARS, &r->chunks[cntr_chunks_0]));
111 : }
112 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
113 : }
114 0 : if (ndr_flags & NDR_BUFFERS) {
115 : }
116 0 : return NDR_ERR_SUCCESS;
117 : }
118 :
119 0 : _PUBLIC_ enum ndr_err_code ndr_pull_srv_copychunk_copy(struct ndr_pull *ndr, int ndr_flags, struct srv_copychunk_copy *r)
120 : {
121 0 : uint32_t size_source_key_0 = 0;
122 0 : uint32_t size_chunks_0 = 0;
123 : uint32_t cntr_chunks_0;
124 0 : TALLOC_CTX *_mem_save_chunks_0 = NULL;
125 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
126 0 : if (ndr_flags & NDR_SCALARS) {
127 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
128 0 : size_source_key_0 = 24;
129 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->source_key, size_source_key_0));
130 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->chunk_count));
131 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
132 0 : size_chunks_0 = r->chunk_count;
133 0 : NDR_PULL_ALLOC_N(ndr, r->chunks, size_chunks_0);
134 0 : _mem_save_chunks_0 = NDR_PULL_GET_MEM_CTX(ndr);
135 0 : NDR_PULL_SET_MEM_CTX(ndr, r->chunks, 0);
136 0 : for (cntr_chunks_0 = 0; cntr_chunks_0 < (size_chunks_0); cntr_chunks_0++) {
137 0 : NDR_CHECK(ndr_pull_srv_copychunk(ndr, NDR_SCALARS, &r->chunks[cntr_chunks_0]));
138 : }
139 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_chunks_0, 0);
140 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
141 : }
142 0 : if (ndr_flags & NDR_BUFFERS) {
143 : }
144 0 : return NDR_ERR_SUCCESS;
145 : }
146 :
147 0 : static void ndr_print_flags_srv_copychunk_copy(struct ndr_print *ndr, const char *name, int unused, const struct srv_copychunk_copy *r)
148 : {
149 0 : ndr_print_srv_copychunk_copy(ndr, name, r);
150 0 : }
151 :
152 0 : _PUBLIC_ void ndr_print_srv_copychunk_copy(struct ndr_print *ndr, const char *name, const struct srv_copychunk_copy *r)
153 : {
154 : uint32_t cntr_chunks_0;
155 0 : ndr_print_struct(ndr, name, "srv_copychunk_copy");
156 0 : if (r == NULL) { ndr_print_null(ndr); return; }
157 0 : ndr->depth++;
158 0 : ndr_print_array_uint8(ndr, "source_key", r->source_key, 24);
159 0 : ndr_print_uint32(ndr, "chunk_count", r->chunk_count);
160 0 : ndr_print_uint32(ndr, "reserved", r->reserved);
161 0 : ndr->print(ndr, "%s: ARRAY(%d)", "chunks", (int)r->chunk_count);
162 0 : ndr->depth++;
163 0 : for (cntr_chunks_0 = 0; cntr_chunks_0 < (r->chunk_count); cntr_chunks_0++) {
164 0 : ndr_print_srv_copychunk(ndr, "chunks", &r->chunks[cntr_chunks_0]);
165 : }
166 0 : ndr->depth--;
167 0 : ndr->depth--;
168 : }
169 :
170 0 : _PUBLIC_ enum ndr_err_code ndr_push_srv_copychunk_rsp(struct ndr_push *ndr, int ndr_flags, const struct srv_copychunk_rsp *r)
171 : {
172 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
173 0 : if (ndr_flags & NDR_SCALARS) {
174 0 : NDR_CHECK(ndr_push_align(ndr, 4));
175 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->chunks_written));
176 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->chunk_bytes_written));
177 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->total_bytes_written));
178 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
179 : }
180 0 : if (ndr_flags & NDR_BUFFERS) {
181 : }
182 0 : return NDR_ERR_SUCCESS;
183 : }
184 :
185 0 : _PUBLIC_ enum ndr_err_code ndr_pull_srv_copychunk_rsp(struct ndr_pull *ndr, int ndr_flags, struct srv_copychunk_rsp *r)
186 : {
187 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
188 0 : if (ndr_flags & NDR_SCALARS) {
189 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
190 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->chunks_written));
191 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->chunk_bytes_written));
192 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->total_bytes_written));
193 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
194 : }
195 0 : if (ndr_flags & NDR_BUFFERS) {
196 : }
197 0 : return NDR_ERR_SUCCESS;
198 : }
199 :
200 0 : static void ndr_print_flags_srv_copychunk_rsp(struct ndr_print *ndr, const char *name, int unused, const struct srv_copychunk_rsp *r)
201 : {
202 0 : ndr_print_srv_copychunk_rsp(ndr, name, r);
203 0 : }
204 :
205 0 : _PUBLIC_ void ndr_print_srv_copychunk_rsp(struct ndr_print *ndr, const char *name, const struct srv_copychunk_rsp *r)
206 : {
207 0 : ndr_print_struct(ndr, name, "srv_copychunk_rsp");
208 0 : if (r == NULL) { ndr_print_null(ndr); return; }
209 0 : ndr->depth++;
210 0 : ndr_print_uint32(ndr, "chunks_written", r->chunks_written);
211 0 : ndr_print_uint32(ndr, "chunk_bytes_written", r->chunk_bytes_written);
212 0 : ndr_print_uint32(ndr, "total_bytes_written", r->total_bytes_written);
213 0 : ndr->depth--;
214 : }
215 :
216 0 : _PUBLIC_ enum ndr_err_code ndr_push_device_copy_offload_descriptor(struct ndr_push *ndr, int ndr_flags, const struct device_copy_offload_descriptor *r)
217 : {
218 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
219 0 : if (ndr_flags & NDR_SCALARS) {
220 0 : NDR_CHECK(ndr_push_align(ndr, 8));
221 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->version));
222 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->size));
223 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->maximum_token_lifetime));
224 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->default_token_lifetime));
225 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->maximum_xfer_size));
226 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->optimal_xfer_count));
227 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->maximum_data_descriptors));
228 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->maximum_xfer_length_per_descriptor));
229 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->optimal_xfer_length_per_descriptor));
230 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->optimal_xfer_length_granularity));
231 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->reserved, 2));
232 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
233 : }
234 0 : if (ndr_flags & NDR_BUFFERS) {
235 : }
236 0 : return NDR_ERR_SUCCESS;
237 : }
238 :
239 0 : _PUBLIC_ enum ndr_err_code ndr_pull_device_copy_offload_descriptor(struct ndr_pull *ndr, int ndr_flags, struct device_copy_offload_descriptor *r)
240 : {
241 0 : uint32_t size_reserved_0 = 0;
242 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
243 0 : if (ndr_flags & NDR_SCALARS) {
244 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
245 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->version));
246 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->size));
247 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->maximum_token_lifetime));
248 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->default_token_lifetime));
249 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->maximum_xfer_size));
250 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->optimal_xfer_count));
251 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->maximum_data_descriptors));
252 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->maximum_xfer_length_per_descriptor));
253 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->optimal_xfer_length_per_descriptor));
254 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->optimal_xfer_length_granularity));
255 0 : size_reserved_0 = 2;
256 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->reserved, size_reserved_0));
257 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
258 : }
259 0 : if (ndr_flags & NDR_BUFFERS) {
260 : }
261 0 : return NDR_ERR_SUCCESS;
262 : }
263 :
264 0 : static void ndr_print_flags_device_copy_offload_descriptor(struct ndr_print *ndr, const char *name, int unused, const struct device_copy_offload_descriptor *r)
265 : {
266 0 : ndr_print_device_copy_offload_descriptor(ndr, name, r);
267 0 : }
268 :
269 0 : _PUBLIC_ void ndr_print_device_copy_offload_descriptor(struct ndr_print *ndr, const char *name, const struct device_copy_offload_descriptor *r)
270 : {
271 0 : ndr_print_struct(ndr, name, "device_copy_offload_descriptor");
272 0 : if (r == NULL) { ndr_print_null(ndr); return; }
273 0 : ndr->depth++;
274 0 : ndr_print_uint32(ndr, "version", r->version);
275 0 : ndr_print_uint32(ndr, "size", r->size);
276 0 : ndr_print_uint32(ndr, "maximum_token_lifetime", r->maximum_token_lifetime);
277 0 : ndr_print_uint32(ndr, "default_token_lifetime", r->default_token_lifetime);
278 0 : ndr_print_hyper(ndr, "maximum_xfer_size", r->maximum_xfer_size);
279 0 : ndr_print_hyper(ndr, "optimal_xfer_count", r->optimal_xfer_count);
280 0 : ndr_print_uint32(ndr, "maximum_data_descriptors", r->maximum_data_descriptors);
281 0 : ndr_print_uint32(ndr, "maximum_xfer_length_per_descriptor", r->maximum_xfer_length_per_descriptor);
282 0 : ndr_print_uint32(ndr, "optimal_xfer_length_per_descriptor", r->optimal_xfer_length_per_descriptor);
283 0 : ndr_print_uint16(ndr, "optimal_xfer_length_granularity", r->optimal_xfer_length_granularity);
284 0 : ndr_print_array_uint8(ndr, "reserved", r->reserved, 2);
285 0 : ndr->depth--;
286 : }
287 :
288 0 : _PUBLIC_ enum ndr_err_code ndr_push_storage_offload_token(struct ndr_push *ndr, int ndr_flags, const struct storage_offload_token *r)
289 : {
290 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
291 0 : if (ndr_flags & NDR_SCALARS) {
292 0 : NDR_CHECK(ndr_push_align(ndr, 4));
293 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->token_type));
294 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->reserved, 2));
295 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->token_id_len));
296 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->token, r->token_id_len));
297 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
298 : }
299 0 : if (ndr_flags & NDR_BUFFERS) {
300 : }
301 0 : return NDR_ERR_SUCCESS;
302 : }
303 :
304 0 : _PUBLIC_ enum ndr_err_code ndr_pull_storage_offload_token(struct ndr_pull *ndr, int ndr_flags, struct storage_offload_token *r)
305 : {
306 0 : uint32_t size_reserved_0 = 0;
307 0 : uint32_t size_token_0 = 0;
308 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
309 0 : if (ndr_flags & NDR_SCALARS) {
310 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
311 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->token_type));
312 0 : size_reserved_0 = 2;
313 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->reserved, size_reserved_0));
314 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->token_id_len));
315 0 : size_token_0 = r->token_id_len;
316 0 : NDR_PULL_ALLOC_N(ndr, r->token, size_token_0);
317 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->token, size_token_0));
318 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
319 : }
320 0 : if (ndr_flags & NDR_BUFFERS) {
321 : }
322 0 : return NDR_ERR_SUCCESS;
323 : }
324 :
325 0 : static void ndr_print_flags_storage_offload_token(struct ndr_print *ndr, const char *name, int unused, const struct storage_offload_token *r)
326 : {
327 0 : ndr_print_storage_offload_token(ndr, name, r);
328 0 : }
329 :
330 0 : _PUBLIC_ void ndr_print_storage_offload_token(struct ndr_print *ndr, const char *name, const struct storage_offload_token *r)
331 : {
332 0 : ndr_print_struct(ndr, name, "storage_offload_token");
333 0 : if (r == NULL) { ndr_print_null(ndr); return; }
334 0 : ndr->depth++;
335 0 : ndr_print_uint32(ndr, "token_type", r->token_type);
336 0 : ndr_print_array_uint8(ndr, "reserved", r->reserved, 2);
337 0 : ndr_print_uint16(ndr, "token_id_len", r->token_id_len);
338 0 : ndr_print_array_uint8(ndr, "token", r->token, r->token_id_len);
339 0 : ndr->depth--;
340 : }
341 :
342 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_offload_read_input(struct ndr_push *ndr, int ndr_flags, const struct fsctl_offload_read_input *r)
343 : {
344 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
345 0 : if (ndr_flags & NDR_SCALARS) {
346 0 : NDR_CHECK(ndr_push_align(ndr, 8));
347 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->size));
348 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
349 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->token_time_to_live));
350 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved));
351 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_offset));
352 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->length));
353 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
354 : }
355 0 : if (ndr_flags & NDR_BUFFERS) {
356 : }
357 0 : return NDR_ERR_SUCCESS;
358 : }
359 :
360 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_offload_read_input(struct ndr_pull *ndr, int ndr_flags, struct fsctl_offload_read_input *r)
361 : {
362 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
363 0 : if (ndr_flags & NDR_SCALARS) {
364 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
365 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->size));
366 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
367 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->token_time_to_live));
368 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
369 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_offset));
370 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->length));
371 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
372 : }
373 0 : if (ndr_flags & NDR_BUFFERS) {
374 : }
375 0 : return NDR_ERR_SUCCESS;
376 : }
377 :
378 0 : static void ndr_print_flags_fsctl_offload_read_input(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_offload_read_input *r)
379 : {
380 0 : ndr_print_fsctl_offload_read_input(ndr, name, r);
381 0 : }
382 :
383 0 : _PUBLIC_ void ndr_print_fsctl_offload_read_input(struct ndr_print *ndr, const char *name, const struct fsctl_offload_read_input *r)
384 : {
385 0 : ndr_print_struct(ndr, name, "fsctl_offload_read_input");
386 0 : if (r == NULL) { ndr_print_null(ndr); return; }
387 0 : ndr->depth++;
388 0 : ndr_print_uint32(ndr, "size", r->size);
389 0 : ndr_print_uint32(ndr, "flags", r->flags);
390 0 : ndr_print_uint32(ndr, "token_time_to_live", r->token_time_to_live);
391 0 : ndr_print_uint32(ndr, "reserved", r->reserved);
392 0 : ndr_print_hyper(ndr, "file_offset", r->file_offset);
393 0 : ndr_print_hyper(ndr, "length", r->length);
394 0 : ndr->depth--;
395 : }
396 :
397 0 : _PUBLIC_ enum ndr_err_code ndr_push_offload_flags(struct ndr_push *ndr, int ndr_flags, uint32_t r)
398 : {
399 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
400 0 : return NDR_ERR_SUCCESS;
401 : }
402 :
403 0 : _PUBLIC_ enum ndr_err_code ndr_pull_offload_flags(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
404 : {
405 : uint32_t v;
406 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
407 0 : *r = v;
408 0 : return NDR_ERR_SUCCESS;
409 : }
410 :
411 0 : _PUBLIC_ void ndr_print_offload_flags(struct ndr_print *ndr, const char *name, uint32_t r)
412 : {
413 0 : ndr_print_uint32(ndr, name, r);
414 0 : ndr->depth++;
415 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "OFFLOAD_READ_FLAG_FILE_TOO_SMALL", OFFLOAD_READ_FLAG_FILE_TOO_SMALL, r);
416 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_RANGE", OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_RANGE, r);
417 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "OFFLOAD_READ_FLAG_CANNOT_OFFLOAD_BEYOND_RANGE", OFFLOAD_READ_FLAG_CANNOT_OFFLOAD_BEYOND_RANGE, r);
418 0 : ndr->depth--;
419 0 : }
420 :
421 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_offload_read_output(struct ndr_push *ndr, int ndr_flags, const struct fsctl_offload_read_output *r)
422 : {
423 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
424 0 : if (ndr_flags & NDR_SCALARS) {
425 0 : NDR_CHECK(ndr_push_align(ndr, 8));
426 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->size));
427 0 : NDR_CHECK(ndr_push_offload_flags(ndr, NDR_SCALARS, r->flags));
428 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->xfer_length));
429 0 : NDR_CHECK(ndr_push_storage_offload_token(ndr, NDR_SCALARS, &r->token));
430 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
431 : }
432 0 : if (ndr_flags & NDR_BUFFERS) {
433 : }
434 0 : return NDR_ERR_SUCCESS;
435 : }
436 :
437 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_offload_read_output(struct ndr_pull *ndr, int ndr_flags, struct fsctl_offload_read_output *r)
438 : {
439 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
440 0 : if (ndr_flags & NDR_SCALARS) {
441 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
442 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->size));
443 0 : NDR_CHECK(ndr_pull_offload_flags(ndr, NDR_SCALARS, &r->flags));
444 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->xfer_length));
445 0 : NDR_CHECK(ndr_pull_storage_offload_token(ndr, NDR_SCALARS, &r->token));
446 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
447 : }
448 0 : if (ndr_flags & NDR_BUFFERS) {
449 : }
450 0 : return NDR_ERR_SUCCESS;
451 : }
452 :
453 0 : static void ndr_print_flags_fsctl_offload_read_output(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_offload_read_output *r)
454 : {
455 0 : ndr_print_fsctl_offload_read_output(ndr, name, r);
456 0 : }
457 :
458 0 : _PUBLIC_ void ndr_print_fsctl_offload_read_output(struct ndr_print *ndr, const char *name, const struct fsctl_offload_read_output *r)
459 : {
460 0 : ndr_print_struct(ndr, name, "fsctl_offload_read_output");
461 0 : if (r == NULL) { ndr_print_null(ndr); return; }
462 0 : ndr->depth++;
463 0 : ndr_print_uint32(ndr, "size", r->size);
464 0 : ndr_print_offload_flags(ndr, "flags", r->flags);
465 0 : ndr_print_hyper(ndr, "xfer_length", r->xfer_length);
466 0 : ndr_print_storage_offload_token(ndr, "token", &r->token);
467 0 : ndr->depth--;
468 : }
469 :
470 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_offload_write_input(struct ndr_push *ndr, int ndr_flags, const struct fsctl_offload_write_input *r)
471 : {
472 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
473 0 : if (ndr_flags & NDR_SCALARS) {
474 0 : NDR_CHECK(ndr_push_align(ndr, 8));
475 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->size));
476 0 : NDR_CHECK(ndr_push_offload_flags(ndr, NDR_SCALARS, r->flags));
477 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_offset));
478 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->copy_length));
479 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->xfer_offset));
480 0 : NDR_CHECK(ndr_push_storage_offload_token(ndr, NDR_SCALARS, &r->token));
481 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
482 : }
483 0 : if (ndr_flags & NDR_BUFFERS) {
484 : }
485 0 : return NDR_ERR_SUCCESS;
486 : }
487 :
488 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_offload_write_input(struct ndr_pull *ndr, int ndr_flags, struct fsctl_offload_write_input *r)
489 : {
490 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
491 0 : if (ndr_flags & NDR_SCALARS) {
492 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
493 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->size));
494 0 : NDR_CHECK(ndr_pull_offload_flags(ndr, NDR_SCALARS, &r->flags));
495 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_offset));
496 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->copy_length));
497 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->xfer_offset));
498 0 : NDR_CHECK(ndr_pull_storage_offload_token(ndr, NDR_SCALARS, &r->token));
499 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
500 : }
501 0 : if (ndr_flags & NDR_BUFFERS) {
502 : }
503 0 : return NDR_ERR_SUCCESS;
504 : }
505 :
506 0 : static void ndr_print_flags_fsctl_offload_write_input(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_offload_write_input *r)
507 : {
508 0 : ndr_print_fsctl_offload_write_input(ndr, name, r);
509 0 : }
510 :
511 0 : _PUBLIC_ void ndr_print_fsctl_offload_write_input(struct ndr_print *ndr, const char *name, const struct fsctl_offload_write_input *r)
512 : {
513 0 : ndr_print_struct(ndr, name, "fsctl_offload_write_input");
514 0 : if (r == NULL) { ndr_print_null(ndr); return; }
515 0 : ndr->depth++;
516 0 : ndr_print_uint32(ndr, "size", r->size);
517 0 : ndr_print_offload_flags(ndr, "flags", r->flags);
518 0 : ndr_print_hyper(ndr, "file_offset", r->file_offset);
519 0 : ndr_print_hyper(ndr, "copy_length", r->copy_length);
520 0 : ndr_print_hyper(ndr, "xfer_offset", r->xfer_offset);
521 0 : ndr_print_storage_offload_token(ndr, "token", &r->token);
522 0 : ndr->depth--;
523 : }
524 :
525 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_offload_write_output(struct ndr_push *ndr, int ndr_flags, const struct fsctl_offload_write_output *r)
526 : {
527 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
528 0 : if (ndr_flags & NDR_SCALARS) {
529 0 : NDR_CHECK(ndr_push_align(ndr, 8));
530 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->size));
531 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
532 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->length_written));
533 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
534 : }
535 0 : if (ndr_flags & NDR_BUFFERS) {
536 : }
537 0 : return NDR_ERR_SUCCESS;
538 : }
539 :
540 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_offload_write_output(struct ndr_pull *ndr, int ndr_flags, struct fsctl_offload_write_output *r)
541 : {
542 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
543 0 : if (ndr_flags & NDR_SCALARS) {
544 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
545 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->size));
546 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
547 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->length_written));
548 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
549 : }
550 0 : if (ndr_flags & NDR_BUFFERS) {
551 : }
552 0 : return NDR_ERR_SUCCESS;
553 : }
554 :
555 0 : static void ndr_print_flags_fsctl_offload_write_output(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_offload_write_output *r)
556 : {
557 0 : ndr_print_fsctl_offload_write_output(ndr, name, r);
558 0 : }
559 :
560 0 : _PUBLIC_ void ndr_print_fsctl_offload_write_output(struct ndr_print *ndr, const char *name, const struct fsctl_offload_write_output *r)
561 : {
562 0 : ndr_print_struct(ndr, name, "fsctl_offload_write_output");
563 0 : if (r == NULL) { ndr_print_null(ndr); return; }
564 0 : ndr->depth++;
565 0 : ndr_print_uint32(ndr, "size", r->size);
566 0 : ndr_print_uint32(ndr, "flags", r->flags);
567 0 : ndr_print_hyper(ndr, "length_written", r->length_written);
568 0 : ndr->depth--;
569 : }
570 :
571 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_dup_extents_to_file(struct ndr_push *ndr, int ndr_flags, const struct fsctl_dup_extents_to_file *r)
572 : {
573 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
574 0 : if (ndr_flags & NDR_SCALARS) {
575 0 : NDR_CHECK(ndr_push_align(ndr, 8));
576 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->source_fid, 16));
577 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->source_off));
578 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->target_off));
579 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->byte_count));
580 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
581 : }
582 0 : if (ndr_flags & NDR_BUFFERS) {
583 : }
584 0 : return NDR_ERR_SUCCESS;
585 : }
586 :
587 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_dup_extents_to_file(struct ndr_pull *ndr, int ndr_flags, struct fsctl_dup_extents_to_file *r)
588 : {
589 0 : uint32_t size_source_fid_0 = 0;
590 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
591 0 : if (ndr_flags & NDR_SCALARS) {
592 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
593 0 : size_source_fid_0 = 16;
594 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->source_fid, size_source_fid_0));
595 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->source_off));
596 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->target_off));
597 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->byte_count));
598 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
599 : }
600 0 : if (ndr_flags & NDR_BUFFERS) {
601 : }
602 0 : return NDR_ERR_SUCCESS;
603 : }
604 :
605 0 : static void ndr_print_flags_fsctl_dup_extents_to_file(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_dup_extents_to_file *r)
606 : {
607 0 : ndr_print_fsctl_dup_extents_to_file(ndr, name, r);
608 0 : }
609 :
610 0 : _PUBLIC_ void ndr_print_fsctl_dup_extents_to_file(struct ndr_print *ndr, const char *name, const struct fsctl_dup_extents_to_file *r)
611 : {
612 0 : ndr_print_struct(ndr, name, "fsctl_dup_extents_to_file");
613 0 : if (r == NULL) { ndr_print_null(ndr); return; }
614 0 : ndr->depth++;
615 0 : ndr_print_array_uint8(ndr, "source_fid", r->source_fid, 16);
616 0 : ndr_print_hyper(ndr, "source_off", r->source_off);
617 0 : ndr_print_hyper(ndr, "target_off", r->target_off);
618 0 : ndr_print_hyper(ndr, "byte_count", r->byte_count);
619 0 : ndr->depth--;
620 : }
621 :
622 : #ifndef SKIP_NDR_TABLE_copychunk
623 : static const struct ndr_interface_public_struct copychunk_public_structs[] = {
624 : {
625 : .name = "req_resume_key_rsp",
626 : .struct_size = sizeof(struct req_resume_key_rsp ),
627 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_req_resume_key_rsp,
628 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_req_resume_key_rsp,
629 : .ndr_print = (ndr_print_function_t) ndr_print_flags_req_resume_key_rsp,
630 : },
631 : {
632 : .name = "srv_copychunk_copy",
633 : .struct_size = sizeof(struct srv_copychunk_copy ),
634 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_srv_copychunk_copy,
635 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_srv_copychunk_copy,
636 : .ndr_print = (ndr_print_function_t) ndr_print_flags_srv_copychunk_copy,
637 : },
638 : {
639 : .name = "srv_copychunk_rsp",
640 : .struct_size = sizeof(struct srv_copychunk_rsp ),
641 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_srv_copychunk_rsp,
642 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_srv_copychunk_rsp,
643 : .ndr_print = (ndr_print_function_t) ndr_print_flags_srv_copychunk_rsp,
644 : },
645 : {
646 : .name = "device_copy_offload_descriptor",
647 : .struct_size = sizeof(struct device_copy_offload_descriptor ),
648 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_device_copy_offload_descriptor,
649 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_device_copy_offload_descriptor,
650 : .ndr_print = (ndr_print_function_t) ndr_print_flags_device_copy_offload_descriptor,
651 : },
652 : {
653 : .name = "storage_offload_token",
654 : .struct_size = sizeof(struct storage_offload_token ),
655 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_storage_offload_token,
656 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_storage_offload_token,
657 : .ndr_print = (ndr_print_function_t) ndr_print_flags_storage_offload_token,
658 : },
659 : {
660 : .name = "fsctl_offload_read_input",
661 : .struct_size = sizeof(struct fsctl_offload_read_input ),
662 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_offload_read_input,
663 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_offload_read_input,
664 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_offload_read_input,
665 : },
666 : {
667 : .name = "fsctl_offload_read_output",
668 : .struct_size = sizeof(struct fsctl_offload_read_output ),
669 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_offload_read_output,
670 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_offload_read_output,
671 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_offload_read_output,
672 : },
673 : {
674 : .name = "fsctl_offload_write_input",
675 : .struct_size = sizeof(struct fsctl_offload_write_input ),
676 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_offload_write_input,
677 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_offload_write_input,
678 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_offload_write_input,
679 : },
680 : {
681 : .name = "fsctl_offload_write_output",
682 : .struct_size = sizeof(struct fsctl_offload_write_output ),
683 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_offload_write_output,
684 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_offload_write_output,
685 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_offload_write_output,
686 : },
687 : {
688 : .name = "fsctl_dup_extents_to_file",
689 : .struct_size = sizeof(struct fsctl_dup_extents_to_file ),
690 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_dup_extents_to_file,
691 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_dup_extents_to_file,
692 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_dup_extents_to_file,
693 : },
694 : { .name = NULL }
695 : };
696 :
697 : static const struct ndr_interface_call copychunk_calls[] = {
698 : { .name = NULL }
699 : };
700 :
701 : static const char * const copychunk_endpoint_strings[] = {
702 : "ncacn_np:[\\pipe\\copychunk]",
703 : };
704 :
705 : static const struct ndr_interface_string_array copychunk_endpoints = {
706 : .count = 1,
707 : .names = copychunk_endpoint_strings
708 : };
709 :
710 : static const char * const copychunk_authservice_strings[] = {
711 : "host",
712 : };
713 :
714 : static const struct ndr_interface_string_array copychunk_authservices = {
715 : .count = 1,
716 : .names = copychunk_authservice_strings
717 : };
718 :
719 :
720 : const struct ndr_interface_table ndr_table_copychunk = {
721 : .name = "copychunk",
722 : .num_calls = 0,
723 : .calls = copychunk_calls,
724 : .num_public_structs = 10,
725 : .public_structs = copychunk_public_structs,
726 : .endpoints = ©chunk_endpoints,
727 : .authservices = ©chunk_authservices
728 : };
729 :
730 : #endif /* SKIP_NDR_TABLE_copychunk */
731 1 : _PUBLIC_ enum ndr_err_code ndr_push_compression_state(struct ndr_push *ndr, int ndr_flags, const struct compression_state *r)
732 : {
733 1 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
734 1 : if (ndr_flags & NDR_SCALARS) {
735 1 : NDR_CHECK(ndr_push_align(ndr, 2));
736 1 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->format));
737 1 : NDR_CHECK(ndr_push_trailer_align(ndr, 2));
738 : }
739 1 : if (ndr_flags & NDR_BUFFERS) {
740 : }
741 1 : return NDR_ERR_SUCCESS;
742 : }
743 :
744 0 : _PUBLIC_ enum ndr_err_code ndr_pull_compression_state(struct ndr_pull *ndr, int ndr_flags, struct compression_state *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, 2));
749 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->format));
750 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
751 : }
752 0 : if (ndr_flags & NDR_BUFFERS) {
753 : }
754 0 : return NDR_ERR_SUCCESS;
755 : }
756 :
757 0 : static void ndr_print_flags_compression_state(struct ndr_print *ndr, const char *name, int unused, const struct compression_state *r)
758 : {
759 0 : ndr_print_compression_state(ndr, name, r);
760 0 : }
761 :
762 0 : _PUBLIC_ void ndr_print_compression_state(struct ndr_print *ndr, const char *name, const struct compression_state *r)
763 : {
764 0 : ndr_print_struct(ndr, name, "compression_state");
765 0 : if (r == NULL) { ndr_print_null(ndr); return; }
766 0 : ndr->depth++;
767 0 : ndr_print_uint16(ndr, "format", r->format);
768 0 : ndr->depth--;
769 : }
770 :
771 : #ifndef SKIP_NDR_TABLE_compression
772 : static const struct ndr_interface_public_struct compression_public_structs[] = {
773 : {
774 : .name = "compression_state",
775 : .struct_size = sizeof(struct compression_state ),
776 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_compression_state,
777 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_compression_state,
778 : .ndr_print = (ndr_print_function_t) ndr_print_flags_compression_state,
779 : },
780 : { .name = NULL }
781 : };
782 :
783 : static const struct ndr_interface_call compression_calls[] = {
784 : { .name = NULL }
785 : };
786 :
787 : static const char * const compression_endpoint_strings[] = {
788 : "ncacn_np:[\\pipe\\compression]",
789 : };
790 :
791 : static const struct ndr_interface_string_array compression_endpoints = {
792 : .count = 1,
793 : .names = compression_endpoint_strings
794 : };
795 :
796 : static const char * const compression_authservice_strings[] = {
797 : "host",
798 : };
799 :
800 : static const struct ndr_interface_string_array compression_authservices = {
801 : .count = 1,
802 : .names = compression_authservice_strings
803 : };
804 :
805 :
806 : const struct ndr_interface_table ndr_table_compression = {
807 : .name = "compression",
808 : .num_calls = 0,
809 : .calls = compression_calls,
810 : .num_public_structs = 1,
811 : .public_structs = compression_public_structs,
812 : .endpoints = &compression_endpoints,
813 : .authservices = &compression_authservices
814 : };
815 :
816 : #endif /* SKIP_NDR_TABLE_compression */
817 0 : static enum ndr_err_code ndr_push_fsctl_net_iface_capability(struct ndr_push *ndr, int ndr_flags, uint32_t r)
818 : {
819 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
820 0 : return NDR_ERR_SUCCESS;
821 : }
822 :
823 0 : static enum ndr_err_code ndr_pull_fsctl_net_iface_capability(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
824 : {
825 : uint32_t v;
826 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
827 0 : *r = v;
828 0 : return NDR_ERR_SUCCESS;
829 : }
830 :
831 0 : _PUBLIC_ void ndr_print_fsctl_net_iface_capability(struct ndr_print *ndr, const char *name, uint32_t r)
832 : {
833 0 : ndr_print_uint32(ndr, name, r);
834 0 : ndr->depth++;
835 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCTL_NET_IFACE_NONE_CAPABLE", FSCTL_NET_IFACE_NONE_CAPABLE, r);
836 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCTL_NET_IFACE_RSS_CAPABLE", FSCTL_NET_IFACE_RSS_CAPABLE, r);
837 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCTL_NET_IFACE_RDMA_CAPABLE", FSCTL_NET_IFACE_RDMA_CAPABLE, r);
838 0 : ndr->depth--;
839 0 : }
840 :
841 0 : static enum ndr_err_code ndr_push_fsctl_sockaddr_af(struct ndr_push *ndr, int ndr_flags, enum fsctl_sockaddr_af r)
842 : {
843 0 : NDR_CHECK(ndr_push_enum_uint16(ndr, NDR_SCALARS, r));
844 0 : return NDR_ERR_SUCCESS;
845 : }
846 :
847 0 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_af(struct ndr_pull *ndr, int ndr_flags, enum fsctl_sockaddr_af *r)
848 : {
849 : uint16_t v;
850 0 : NDR_CHECK(ndr_pull_enum_uint16(ndr, NDR_SCALARS, &v));
851 0 : *r = v;
852 0 : return NDR_ERR_SUCCESS;
853 : }
854 :
855 0 : _PUBLIC_ void ndr_print_fsctl_sockaddr_af(struct ndr_print *ndr, const char *name, enum fsctl_sockaddr_af r)
856 : {
857 0 : const char *val = NULL;
858 :
859 0 : switch (r) {
860 0 : case FSCTL_NET_IFACE_AF_INET: val = "FSCTL_NET_IFACE_AF_INET"; break;
861 0 : case FSCTL_NET_IFACE_AF_INET6: val = "FSCTL_NET_IFACE_AF_INET6"; break;
862 : }
863 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
864 0 : }
865 :
866 0 : static enum ndr_err_code ndr_push_fsctl_sockaddr_in(struct ndr_push *ndr, int ndr_flags, const struct fsctl_sockaddr_in *r)
867 : {
868 : {
869 0 : uint32_t _flags_save_STRUCT = ndr->flags;
870 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
871 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
872 0 : if (ndr_flags & NDR_SCALARS) {
873 0 : NDR_CHECK(ndr_push_align(ndr, 8));
874 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 0));
875 : {
876 0 : uint32_t _flags_save_ipv4address = ndr->flags;
877 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
878 0 : NDR_CHECK(ndr_push_ipv4address(ndr, NDR_SCALARS, r->ipv4));
879 0 : ndr->flags = _flags_save_ipv4address;
880 : }
881 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, 0));
882 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
883 : }
884 0 : if (ndr_flags & NDR_BUFFERS) {
885 : }
886 0 : ndr->flags = _flags_save_STRUCT;
887 : }
888 0 : return NDR_ERR_SUCCESS;
889 : }
890 :
891 0 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_in(struct ndr_pull *ndr, int ndr_flags, struct fsctl_sockaddr_in *r)
892 : {
893 : {
894 0 : uint32_t _flags_save_STRUCT = ndr->flags;
895 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
896 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
897 0 : if (ndr_flags & NDR_SCALARS) {
898 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
899 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
900 : {
901 0 : uint32_t _flags_save_ipv4address = ndr->flags;
902 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
903 0 : NDR_CHECK(ndr_pull_ipv4address(ndr, NDR_SCALARS, &r->ipv4));
904 0 : ndr->flags = _flags_save_ipv4address;
905 : }
906 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->reserved));
907 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
908 : }
909 0 : if (ndr_flags & NDR_BUFFERS) {
910 : }
911 0 : ndr->flags = _flags_save_STRUCT;
912 : }
913 0 : return NDR_ERR_SUCCESS;
914 : }
915 :
916 0 : _PUBLIC_ void ndr_print_fsctl_sockaddr_in(struct ndr_print *ndr, const char *name, const struct fsctl_sockaddr_in *r)
917 : {
918 0 : ndr_print_struct(ndr, name, "fsctl_sockaddr_in");
919 0 : if (r == NULL) { ndr_print_null(ndr); return; }
920 : {
921 0 : uint32_t _flags_save_STRUCT = ndr->flags;
922 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
923 0 : ndr->depth++;
924 0 : ndr_print_uint16(ndr, "port", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->port);
925 : {
926 0 : uint32_t _flags_save_ipv4address = ndr->flags;
927 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
928 0 : ndr_print_ipv4address(ndr, "ipv4", r->ipv4);
929 0 : ndr->flags = _flags_save_ipv4address;
930 : }
931 0 : ndr_print_hyper(ndr, "reserved", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->reserved);
932 0 : ndr->depth--;
933 0 : ndr->flags = _flags_save_STRUCT;
934 : }
935 : }
936 :
937 0 : static enum ndr_err_code ndr_push_fsctl_sockaddr_in6(struct ndr_push *ndr, int ndr_flags, const struct fsctl_sockaddr_in6 *r)
938 : {
939 : {
940 0 : uint32_t _flags_save_STRUCT = ndr->flags;
941 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
942 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
943 0 : if (ndr_flags & NDR_SCALARS) {
944 0 : NDR_CHECK(ndr_push_align(ndr, 4));
945 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 0));
946 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
947 : {
948 0 : uint32_t _flags_save_ipv6address = ndr->flags;
949 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
950 0 : NDR_CHECK(ndr_push_ipv6address(ndr, NDR_SCALARS, r->ipv6));
951 0 : ndr->flags = _flags_save_ipv6address;
952 : }
953 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
954 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
955 : }
956 0 : if (ndr_flags & NDR_BUFFERS) {
957 : }
958 0 : ndr->flags = _flags_save_STRUCT;
959 : }
960 0 : return NDR_ERR_SUCCESS;
961 : }
962 :
963 0 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_in6(struct ndr_pull *ndr, int ndr_flags, struct fsctl_sockaddr_in6 *r)
964 : {
965 : {
966 0 : uint32_t _flags_save_STRUCT = ndr->flags;
967 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
968 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
969 0 : if (ndr_flags & NDR_SCALARS) {
970 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
971 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
972 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flowinfo));
973 : {
974 0 : uint32_t _flags_save_ipv6address = ndr->flags;
975 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
976 0 : NDR_CHECK(ndr_pull_ipv6address(ndr, NDR_SCALARS, &r->ipv6));
977 0 : ndr->flags = _flags_save_ipv6address;
978 : }
979 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->scopeid));
980 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
981 : }
982 0 : if (ndr_flags & NDR_BUFFERS) {
983 : }
984 0 : ndr->flags = _flags_save_STRUCT;
985 : }
986 0 : return NDR_ERR_SUCCESS;
987 : }
988 :
989 0 : _PUBLIC_ void ndr_print_fsctl_sockaddr_in6(struct ndr_print *ndr, const char *name, const struct fsctl_sockaddr_in6 *r)
990 : {
991 0 : ndr_print_struct(ndr, name, "fsctl_sockaddr_in6");
992 0 : if (r == NULL) { ndr_print_null(ndr); return; }
993 : {
994 0 : uint32_t _flags_save_STRUCT = ndr->flags;
995 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
996 0 : ndr->depth++;
997 0 : ndr_print_uint16(ndr, "port", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->port);
998 0 : ndr_print_uint32(ndr, "flowinfo", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->flowinfo);
999 : {
1000 0 : uint32_t _flags_save_ipv6address = ndr->flags;
1001 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
1002 0 : ndr_print_ipv6address(ndr, "ipv6", r->ipv6);
1003 0 : ndr->flags = _flags_save_ipv6address;
1004 : }
1005 0 : ndr_print_uint32(ndr, "scopeid", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->scopeid);
1006 0 : ndr->depth--;
1007 0 : ndr->flags = _flags_save_STRUCT;
1008 : }
1009 : }
1010 :
1011 0 : static enum ndr_err_code ndr_push_fsctl_sockaddr_union(struct ndr_push *ndr, int ndr_flags, const union fsctl_sockaddr_union *r)
1012 : {
1013 : uint32_t level;
1014 : {
1015 0 : uint32_t _flags_save_UNION = ndr->flags;
1016 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1017 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1018 0 : if (ndr_flags & NDR_SCALARS) {
1019 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
1020 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
1021 0 : NDR_CHECK(ndr_push_union_align(ndr, 8));
1022 0 : switch (level) {
1023 0 : case FSCTL_NET_IFACE_AF_INET: {
1024 0 : NDR_CHECK(ndr_push_fsctl_sockaddr_in(ndr, NDR_SCALARS, &r->saddr_in));
1025 0 : break; }
1026 :
1027 0 : case FSCTL_NET_IFACE_AF_INET6: {
1028 0 : NDR_CHECK(ndr_push_fsctl_sockaddr_in6(ndr, NDR_SCALARS, &r->saddr_in6));
1029 0 : break; }
1030 :
1031 0 : default:
1032 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
1033 : }
1034 0 : }
1035 0 : if (ndr_flags & NDR_BUFFERS) {
1036 0 : if (!(ndr_flags & NDR_SCALARS)) {
1037 : /* We didn't get it above, and the token is not needed after this. */
1038 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
1039 : }
1040 0 : switch (level) {
1041 0 : case FSCTL_NET_IFACE_AF_INET:
1042 0 : break;
1043 :
1044 0 : case FSCTL_NET_IFACE_AF_INET6:
1045 0 : break;
1046 :
1047 0 : default:
1048 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
1049 : }
1050 0 : }
1051 0 : ndr->flags = _flags_save_UNION;
1052 : }
1053 0 : return NDR_ERR_SUCCESS;
1054 : }
1055 :
1056 0 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_union(struct ndr_pull *ndr, int ndr_flags, union fsctl_sockaddr_union *r)
1057 : {
1058 : uint32_t level;
1059 : {
1060 0 : uint32_t _flags_save_UNION = ndr->flags;
1061 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1062 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1063 0 : if (ndr_flags & NDR_SCALARS) {
1064 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
1065 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
1066 0 : NDR_CHECK(ndr_pull_union_align(ndr, 8));
1067 0 : switch (level) {
1068 0 : case FSCTL_NET_IFACE_AF_INET: {
1069 0 : NDR_CHECK(ndr_pull_fsctl_sockaddr_in(ndr, NDR_SCALARS, &r->saddr_in));
1070 0 : break; }
1071 :
1072 0 : case FSCTL_NET_IFACE_AF_INET6: {
1073 0 : NDR_CHECK(ndr_pull_fsctl_sockaddr_in6(ndr, NDR_SCALARS, &r->saddr_in6));
1074 0 : break; }
1075 :
1076 0 : default:
1077 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u at %s", level, __location__);
1078 : }
1079 0 : }
1080 0 : if (ndr_flags & NDR_BUFFERS) {
1081 0 : if (!(ndr_flags & NDR_SCALARS)) {
1082 : /* We didn't get it above, and the token is not needed after this. */
1083 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
1084 : }
1085 0 : switch (level) {
1086 0 : case FSCTL_NET_IFACE_AF_INET:
1087 0 : break;
1088 :
1089 0 : case FSCTL_NET_IFACE_AF_INET6:
1090 0 : break;
1091 :
1092 0 : default:
1093 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u at %s", level, __location__);
1094 : }
1095 0 : }
1096 0 : ndr->flags = _flags_save_UNION;
1097 : }
1098 0 : return NDR_ERR_SUCCESS;
1099 : }
1100 :
1101 0 : _PUBLIC_ void ndr_print_fsctl_sockaddr_union(struct ndr_print *ndr, const char *name, const union fsctl_sockaddr_union *r)
1102 : {
1103 : uint32_t level;
1104 : {
1105 0 : uint32_t _flags_save_UNION = ndr->flags;
1106 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1107 0 : level = ndr_print_steal_switch_value(ndr, r);
1108 0 : ndr_print_union(ndr, name, level, "fsctl_sockaddr_union");
1109 0 : switch (level) {
1110 0 : case FSCTL_NET_IFACE_AF_INET:
1111 0 : ndr_print_fsctl_sockaddr_in(ndr, "saddr_in", &r->saddr_in);
1112 0 : break;
1113 :
1114 0 : case FSCTL_NET_IFACE_AF_INET6:
1115 0 : ndr_print_fsctl_sockaddr_in6(ndr, "saddr_in6", &r->saddr_in6);
1116 0 : break;
1117 :
1118 0 : default:
1119 0 : ndr_print_bad_level(ndr, name, level);
1120 : }
1121 0 : ndr->flags = _flags_save_UNION;
1122 : }
1123 0 : }
1124 :
1125 0 : static enum ndr_err_code ndr_push_fsctl_sockaddr_storage(struct ndr_push *ndr, int ndr_flags, const struct fsctl_sockaddr_storage *r)
1126 : {
1127 : {
1128 0 : uint32_t _flags_save_STRUCT = ndr->flags;
1129 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1130 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1131 0 : if (ndr_flags & NDR_SCALARS) {
1132 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1133 0 : NDR_CHECK(ndr_push_fsctl_sockaddr_af(ndr, NDR_SCALARS, r->family));
1134 : {
1135 : struct ndr_push *_ndr_saddr;
1136 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_saddr, 0, 126));
1137 0 : NDR_CHECK(ndr_push_set_switch_value(_ndr_saddr, &r->saddr, r->family));
1138 0 : NDR_CHECK(ndr_push_fsctl_sockaddr_union(_ndr_saddr, NDR_SCALARS, &r->saddr));
1139 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_saddr, 0, 126));
1140 : }
1141 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1142 : }
1143 0 : if (ndr_flags & NDR_BUFFERS) {
1144 : }
1145 0 : ndr->flags = _flags_save_STRUCT;
1146 : }
1147 0 : return NDR_ERR_SUCCESS;
1148 : }
1149 :
1150 0 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_storage(struct ndr_pull *ndr, int ndr_flags, struct fsctl_sockaddr_storage *r)
1151 : {
1152 : {
1153 0 : uint32_t _flags_save_STRUCT = ndr->flags;
1154 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1155 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1156 0 : if (ndr_flags & NDR_SCALARS) {
1157 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1158 0 : NDR_CHECK(ndr_pull_fsctl_sockaddr_af(ndr, NDR_SCALARS, &r->family));
1159 : {
1160 : struct ndr_pull *_ndr_saddr;
1161 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_saddr, 0, 126));
1162 0 : NDR_CHECK(ndr_pull_set_switch_value(_ndr_saddr, &r->saddr, r->family));
1163 0 : NDR_CHECK(ndr_pull_fsctl_sockaddr_union(_ndr_saddr, NDR_SCALARS, &r->saddr));
1164 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_saddr, 0, 126));
1165 : }
1166 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1167 : }
1168 0 : if (ndr_flags & NDR_BUFFERS) {
1169 : }
1170 0 : ndr->flags = _flags_save_STRUCT;
1171 : }
1172 0 : return NDR_ERR_SUCCESS;
1173 : }
1174 :
1175 0 : _PUBLIC_ void ndr_print_fsctl_sockaddr_storage(struct ndr_print *ndr, const char *name, const struct fsctl_sockaddr_storage *r)
1176 : {
1177 0 : ndr_print_struct(ndr, name, "fsctl_sockaddr_storage");
1178 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1179 : {
1180 0 : uint32_t _flags_save_STRUCT = ndr->flags;
1181 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
1182 0 : ndr->depth++;
1183 0 : ndr_print_fsctl_sockaddr_af(ndr, "family", r->family);
1184 0 : ndr_print_set_switch_value(ndr, &r->saddr, r->family);
1185 0 : ndr_print_fsctl_sockaddr_union(ndr, "saddr", &r->saddr);
1186 0 : ndr->depth--;
1187 0 : ndr->flags = _flags_save_STRUCT;
1188 : }
1189 : }
1190 :
1191 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_net_iface_info(struct ndr_push *ndr, int ndr_flags, const struct fsctl_net_iface_info *r)
1192 : {
1193 0 : uint32_t _save_relative_base_offset = ndr_push_get_relative_base_offset(ndr);
1194 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1195 0 : if (ndr_flags & NDR_SCALARS) {
1196 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1197 0 : NDR_CHECK(ndr_push_setup_relative_base_offset1(ndr, r, ndr->offset));
1198 0 : NDR_CHECK(ndr_push_relative_ptr1(ndr, r->next));
1199 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->ifindex));
1200 0 : NDR_CHECK(ndr_push_fsctl_net_iface_capability(ndr, NDR_SCALARS, r->capability));
1201 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
1202 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->linkspeed));
1203 0 : NDR_CHECK(ndr_push_fsctl_sockaddr_storage(ndr, NDR_SCALARS, &r->sockaddr));
1204 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1205 : }
1206 0 : if (ndr_flags & NDR_BUFFERS) {
1207 0 : NDR_CHECK(ndr_push_setup_relative_base_offset2(ndr, r));
1208 0 : if (r->next) {
1209 0 : NDR_CHECK(ndr_push_relative_ptr2_start(ndr, r->next));
1210 0 : NDR_CHECK(ndr_push_fsctl_net_iface_info(ndr, NDR_SCALARS|NDR_BUFFERS, r->next));
1211 0 : NDR_CHECK(ndr_push_relative_ptr2_end(ndr, r->next));
1212 : }
1213 : }
1214 0 : ndr_push_restore_relative_base_offset(ndr, _save_relative_base_offset);
1215 0 : return NDR_ERR_SUCCESS;
1216 : }
1217 :
1218 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_net_iface_info(struct ndr_pull *ndr, int ndr_flags, struct fsctl_net_iface_info *r)
1219 : {
1220 0 : uint32_t _save_relative_base_offset = ndr_pull_get_relative_base_offset(ndr);
1221 : uint32_t _ptr_next;
1222 0 : TALLOC_CTX *_mem_save_next_0 = NULL;
1223 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1224 0 : if (ndr_flags & NDR_SCALARS) {
1225 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1226 0 : NDR_CHECK(ndr_pull_setup_relative_base_offset1(ndr, r, ndr->offset));
1227 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_next));
1228 0 : if (_ptr_next) {
1229 0 : NDR_PULL_ALLOC(ndr, r->next);
1230 0 : NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->next, _ptr_next));
1231 : } else {
1232 0 : r->next = NULL;
1233 : }
1234 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->ifindex));
1235 0 : NDR_CHECK(ndr_pull_fsctl_net_iface_capability(ndr, NDR_SCALARS, &r->capability));
1236 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
1237 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->linkspeed));
1238 0 : NDR_CHECK(ndr_pull_fsctl_sockaddr_storage(ndr, NDR_SCALARS, &r->sockaddr));
1239 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1240 : }
1241 0 : if (ndr_flags & NDR_BUFFERS) {
1242 0 : NDR_CHECK(ndr_pull_setup_relative_base_offset2(ndr, r));
1243 0 : if (r->next) {
1244 : uint32_t _relative_save_offset;
1245 0 : _relative_save_offset = ndr->offset;
1246 0 : NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->next));
1247 0 : _mem_save_next_0 = NDR_PULL_GET_MEM_CTX(ndr);
1248 0 : NDR_PULL_SET_MEM_CTX(ndr, r->next, 0);
1249 0 : NDR_RECURSION_CHECK(ndr, 20000);
1250 0 : NDR_CHECK(ndr_pull_fsctl_net_iface_info(ndr, NDR_SCALARS|NDR_BUFFERS, r->next));
1251 0 : NDR_RECURSION_UNWIND(ndr);
1252 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_next_0, 0);
1253 0 : if (ndr->offset > ndr->relative_highest_offset) {
1254 0 : ndr->relative_highest_offset = ndr->offset;
1255 : }
1256 0 : ndr->offset = _relative_save_offset;
1257 : }
1258 : }
1259 0 : ndr_pull_restore_relative_base_offset(ndr, _save_relative_base_offset);
1260 0 : return NDR_ERR_SUCCESS;
1261 : }
1262 :
1263 0 : static void ndr_print_flags_fsctl_net_iface_info(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_net_iface_info *r)
1264 : {
1265 0 : ndr_print_fsctl_net_iface_info(ndr, name, r);
1266 0 : }
1267 :
1268 : #ifndef SKIP_NDR_TABLE_netinterface
1269 : static const struct ndr_interface_public_struct netinterface_public_structs[] = {
1270 : {
1271 : .name = "fsctl_net_iface_info",
1272 : .struct_size = sizeof(struct fsctl_net_iface_info ),
1273 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_net_iface_info,
1274 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_net_iface_info,
1275 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_net_iface_info,
1276 : },
1277 : { .name = NULL }
1278 : };
1279 :
1280 : static const struct ndr_interface_call netinterface_calls[] = {
1281 : { .name = NULL }
1282 : };
1283 :
1284 : static const char * const netinterface_endpoint_strings[] = {
1285 : "ncacn_np:[\\pipe\\netinterface]",
1286 : };
1287 :
1288 : static const struct ndr_interface_string_array netinterface_endpoints = {
1289 : .count = 1,
1290 : .names = netinterface_endpoint_strings
1291 : };
1292 :
1293 : static const char * const netinterface_authservice_strings[] = {
1294 : "host",
1295 : };
1296 :
1297 : static const struct ndr_interface_string_array netinterface_authservices = {
1298 : .count = 1,
1299 : .names = netinterface_authservice_strings
1300 : };
1301 :
1302 :
1303 : const struct ndr_interface_table ndr_table_netinterface = {
1304 : .name = "netinterface",
1305 : .num_calls = 0,
1306 : .calls = netinterface_calls,
1307 : .num_public_structs = 1,
1308 : .public_structs = netinterface_public_structs,
1309 : .endpoints = &netinterface_endpoints,
1310 : .authservices = &netinterface_authservices
1311 : };
1312 :
1313 : #endif /* SKIP_NDR_TABLE_netinterface */
1314 0 : _PUBLIC_ enum ndr_err_code ndr_push_file_alloced_range_buf(struct ndr_push *ndr, int ndr_flags, const struct file_alloced_range_buf *r)
1315 : {
1316 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1317 0 : if (ndr_flags & NDR_SCALARS) {
1318 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1319 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_off));
1320 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->len));
1321 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1322 : }
1323 0 : if (ndr_flags & NDR_BUFFERS) {
1324 : }
1325 0 : return NDR_ERR_SUCCESS;
1326 : }
1327 :
1328 0 : _PUBLIC_ enum ndr_err_code ndr_pull_file_alloced_range_buf(struct ndr_pull *ndr, int ndr_flags, struct file_alloced_range_buf *r)
1329 : {
1330 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1331 0 : if (ndr_flags & NDR_SCALARS) {
1332 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1333 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_off));
1334 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->len));
1335 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1336 : }
1337 0 : if (ndr_flags & NDR_BUFFERS) {
1338 : }
1339 0 : return NDR_ERR_SUCCESS;
1340 : }
1341 :
1342 0 : static void ndr_print_flags_file_alloced_range_buf(struct ndr_print *ndr, const char *name, int unused, const struct file_alloced_range_buf *r)
1343 : {
1344 0 : ndr_print_file_alloced_range_buf(ndr, name, r);
1345 0 : }
1346 :
1347 0 : _PUBLIC_ void ndr_print_file_alloced_range_buf(struct ndr_print *ndr, const char *name, const struct file_alloced_range_buf *r)
1348 : {
1349 0 : ndr_print_struct(ndr, name, "file_alloced_range_buf");
1350 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1351 0 : ndr->depth++;
1352 0 : ndr_print_hyper(ndr, "file_off", r->file_off);
1353 0 : ndr_print_hyper(ndr, "len", r->len);
1354 0 : ndr->depth--;
1355 : }
1356 :
1357 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_query_alloced_ranges_req(struct ndr_push *ndr, int ndr_flags, const struct fsctl_query_alloced_ranges_req *r)
1358 : {
1359 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1360 0 : if (ndr_flags & NDR_SCALARS) {
1361 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1362 0 : NDR_CHECK(ndr_push_file_alloced_range_buf(ndr, NDR_SCALARS, &r->buf));
1363 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1364 : }
1365 0 : if (ndr_flags & NDR_BUFFERS) {
1366 : }
1367 0 : return NDR_ERR_SUCCESS;
1368 : }
1369 :
1370 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_query_alloced_ranges_req(struct ndr_pull *ndr, int ndr_flags, struct fsctl_query_alloced_ranges_req *r)
1371 : {
1372 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1373 0 : if (ndr_flags & NDR_SCALARS) {
1374 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1375 0 : NDR_CHECK(ndr_pull_file_alloced_range_buf(ndr, NDR_SCALARS, &r->buf));
1376 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1377 : }
1378 0 : if (ndr_flags & NDR_BUFFERS) {
1379 : }
1380 0 : return NDR_ERR_SUCCESS;
1381 : }
1382 :
1383 0 : static void ndr_print_flags_fsctl_query_alloced_ranges_req(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_query_alloced_ranges_req *r)
1384 : {
1385 0 : ndr_print_fsctl_query_alloced_ranges_req(ndr, name, r);
1386 0 : }
1387 :
1388 0 : _PUBLIC_ void ndr_print_fsctl_query_alloced_ranges_req(struct ndr_print *ndr, const char *name, const struct fsctl_query_alloced_ranges_req *r)
1389 : {
1390 0 : ndr_print_struct(ndr, name, "fsctl_query_alloced_ranges_req");
1391 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1392 0 : ndr->depth++;
1393 0 : ndr_print_file_alloced_range_buf(ndr, "buf", &r->buf);
1394 0 : ndr->depth--;
1395 : }
1396 :
1397 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_query_alloced_ranges_rsp(struct ndr_push *ndr, int ndr_flags, const struct fsctl_query_alloced_ranges_rsp *r)
1398 : {
1399 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1400 0 : if (ndr_flags & NDR_SCALARS) {
1401 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1402 : {
1403 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1404 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1405 0 : NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->far_buf_array));
1406 0 : ndr->flags = _flags_save_DATA_BLOB;
1407 : }
1408 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1409 : }
1410 0 : if (ndr_flags & NDR_BUFFERS) {
1411 : }
1412 0 : return NDR_ERR_SUCCESS;
1413 : }
1414 :
1415 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_query_alloced_ranges_rsp(struct ndr_pull *ndr, int ndr_flags, struct fsctl_query_alloced_ranges_rsp *r)
1416 : {
1417 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1418 0 : if (ndr_flags & NDR_SCALARS) {
1419 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1420 : {
1421 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1422 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1423 0 : NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->far_buf_array));
1424 0 : ndr->flags = _flags_save_DATA_BLOB;
1425 : }
1426 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1427 : }
1428 0 : if (ndr_flags & NDR_BUFFERS) {
1429 : }
1430 0 : return NDR_ERR_SUCCESS;
1431 : }
1432 :
1433 0 : static void ndr_print_flags_fsctl_query_alloced_ranges_rsp(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_query_alloced_ranges_rsp *r)
1434 : {
1435 0 : ndr_print_fsctl_query_alloced_ranges_rsp(ndr, name, r);
1436 0 : }
1437 :
1438 0 : _PUBLIC_ void ndr_print_fsctl_query_alloced_ranges_rsp(struct ndr_print *ndr, const char *name, const struct fsctl_query_alloced_ranges_rsp *r)
1439 : {
1440 0 : ndr_print_struct(ndr, name, "fsctl_query_alloced_ranges_rsp");
1441 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1442 0 : ndr->depth++;
1443 : {
1444 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1445 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1446 0 : ndr_print_DATA_BLOB(ndr, "far_buf_array", r->far_buf_array);
1447 0 : ndr->flags = _flags_save_DATA_BLOB;
1448 : }
1449 0 : ndr->depth--;
1450 : }
1451 :
1452 0 : _PUBLIC_ enum ndr_err_code ndr_push_file_zero_data_info(struct ndr_push *ndr, int ndr_flags, const struct file_zero_data_info *r)
1453 : {
1454 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1455 0 : if (ndr_flags & NDR_SCALARS) {
1456 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1457 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_off));
1458 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->beyond_final_zero));
1459 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1460 : }
1461 0 : if (ndr_flags & NDR_BUFFERS) {
1462 : }
1463 0 : return NDR_ERR_SUCCESS;
1464 : }
1465 :
1466 0 : _PUBLIC_ enum ndr_err_code ndr_pull_file_zero_data_info(struct ndr_pull *ndr, int ndr_flags, struct file_zero_data_info *r)
1467 : {
1468 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1469 0 : if (ndr_flags & NDR_SCALARS) {
1470 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1471 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_off));
1472 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->beyond_final_zero));
1473 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1474 : }
1475 0 : if (ndr_flags & NDR_BUFFERS) {
1476 : }
1477 0 : return NDR_ERR_SUCCESS;
1478 : }
1479 :
1480 0 : static void ndr_print_flags_file_zero_data_info(struct ndr_print *ndr, const char *name, int unused, const struct file_zero_data_info *r)
1481 : {
1482 0 : ndr_print_file_zero_data_info(ndr, name, r);
1483 0 : }
1484 :
1485 0 : _PUBLIC_ void ndr_print_file_zero_data_info(struct ndr_print *ndr, const char *name, const struct file_zero_data_info *r)
1486 : {
1487 0 : ndr_print_struct(ndr, name, "file_zero_data_info");
1488 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1489 0 : ndr->depth++;
1490 0 : ndr_print_hyper(ndr, "file_off", r->file_off);
1491 0 : ndr_print_hyper(ndr, "beyond_final_zero", r->beyond_final_zero);
1492 0 : ndr->depth--;
1493 : }
1494 :
1495 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_set_zero_data_req(struct ndr_push *ndr, int ndr_flags, const struct fsctl_set_zero_data_req *r)
1496 : {
1497 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1498 0 : if (ndr_flags & NDR_SCALARS) {
1499 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1500 0 : NDR_CHECK(ndr_push_file_zero_data_info(ndr, NDR_SCALARS, &r->info));
1501 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1502 : }
1503 0 : if (ndr_flags & NDR_BUFFERS) {
1504 : }
1505 0 : return NDR_ERR_SUCCESS;
1506 : }
1507 :
1508 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_set_zero_data_req(struct ndr_pull *ndr, int ndr_flags, struct fsctl_set_zero_data_req *r)
1509 : {
1510 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1511 0 : if (ndr_flags & NDR_SCALARS) {
1512 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1513 0 : NDR_CHECK(ndr_pull_file_zero_data_info(ndr, NDR_SCALARS, &r->info));
1514 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1515 : }
1516 0 : if (ndr_flags & NDR_BUFFERS) {
1517 : }
1518 0 : return NDR_ERR_SUCCESS;
1519 : }
1520 :
1521 0 : static void ndr_print_flags_fsctl_set_zero_data_req(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_set_zero_data_req *r)
1522 : {
1523 0 : ndr_print_fsctl_set_zero_data_req(ndr, name, r);
1524 0 : }
1525 :
1526 0 : _PUBLIC_ void ndr_print_fsctl_set_zero_data_req(struct ndr_print *ndr, const char *name, const struct fsctl_set_zero_data_req *r)
1527 : {
1528 0 : ndr_print_struct(ndr, name, "fsctl_set_zero_data_req");
1529 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1530 0 : ndr->depth++;
1531 0 : ndr_print_file_zero_data_info(ndr, "info", &r->info);
1532 0 : ndr->depth--;
1533 : }
1534 :
1535 : #ifndef SKIP_NDR_TABLE_sparse
1536 : static const struct ndr_interface_public_struct sparse_public_structs[] = {
1537 : {
1538 : .name = "file_alloced_range_buf",
1539 : .struct_size = sizeof(struct file_alloced_range_buf ),
1540 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_file_alloced_range_buf,
1541 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_file_alloced_range_buf,
1542 : .ndr_print = (ndr_print_function_t) ndr_print_flags_file_alloced_range_buf,
1543 : },
1544 : {
1545 : .name = "fsctl_query_alloced_ranges_req",
1546 : .struct_size = sizeof(struct fsctl_query_alloced_ranges_req ),
1547 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_query_alloced_ranges_req,
1548 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_query_alloced_ranges_req,
1549 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_query_alloced_ranges_req,
1550 : },
1551 : {
1552 : .name = "fsctl_query_alloced_ranges_rsp",
1553 : .struct_size = sizeof(struct fsctl_query_alloced_ranges_rsp ),
1554 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_query_alloced_ranges_rsp,
1555 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_query_alloced_ranges_rsp,
1556 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_query_alloced_ranges_rsp,
1557 : },
1558 : {
1559 : .name = "file_zero_data_info",
1560 : .struct_size = sizeof(struct file_zero_data_info ),
1561 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_file_zero_data_info,
1562 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_file_zero_data_info,
1563 : .ndr_print = (ndr_print_function_t) ndr_print_flags_file_zero_data_info,
1564 : },
1565 : {
1566 : .name = "fsctl_set_zero_data_req",
1567 : .struct_size = sizeof(struct fsctl_set_zero_data_req ),
1568 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_set_zero_data_req,
1569 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_set_zero_data_req,
1570 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_set_zero_data_req,
1571 : },
1572 : { .name = NULL }
1573 : };
1574 :
1575 : static const struct ndr_interface_call sparse_calls[] = {
1576 : { .name = NULL }
1577 : };
1578 :
1579 : static const char * const sparse_endpoint_strings[] = {
1580 : "ncacn_np:[\\pipe\\sparse]",
1581 : };
1582 :
1583 : static const struct ndr_interface_string_array sparse_endpoints = {
1584 : .count = 1,
1585 : .names = sparse_endpoint_strings
1586 : };
1587 :
1588 : static const char * const sparse_authservice_strings[] = {
1589 : "host",
1590 : };
1591 :
1592 : static const struct ndr_interface_string_array sparse_authservices = {
1593 : .count = 1,
1594 : .names = sparse_authservice_strings
1595 : };
1596 :
1597 :
1598 : const struct ndr_interface_table ndr_table_sparse = {
1599 : .name = "sparse",
1600 : .num_calls = 0,
1601 : .calls = sparse_calls,
1602 : .num_public_structs = 5,
1603 : .public_structs = sparse_public_structs,
1604 : .endpoints = &sparse_endpoints,
1605 : .authservices = &sparse_authservices
1606 : };
1607 :
1608 : #endif /* SKIP_NDR_TABLE_sparse */
1609 0 : _PUBLIC_ enum ndr_err_code ndr_push_network_resiliency_request(struct ndr_push *ndr, int ndr_flags, const struct network_resiliency_request *r)
1610 : {
1611 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1612 0 : if (ndr_flags & NDR_SCALARS) {
1613 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1614 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->timeout));
1615 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved));
1616 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1617 : }
1618 0 : if (ndr_flags & NDR_BUFFERS) {
1619 : }
1620 0 : return NDR_ERR_SUCCESS;
1621 : }
1622 :
1623 0 : _PUBLIC_ enum ndr_err_code ndr_pull_network_resiliency_request(struct ndr_pull *ndr, int ndr_flags, struct network_resiliency_request *r)
1624 : {
1625 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1626 0 : if (ndr_flags & NDR_SCALARS) {
1627 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1628 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->timeout));
1629 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
1630 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1631 : }
1632 0 : if (ndr_flags & NDR_BUFFERS) {
1633 : }
1634 0 : return NDR_ERR_SUCCESS;
1635 : }
1636 :
1637 0 : static void ndr_print_flags_network_resiliency_request(struct ndr_print *ndr, const char *name, int unused, const struct network_resiliency_request *r)
1638 : {
1639 0 : ndr_print_network_resiliency_request(ndr, name, r);
1640 0 : }
1641 :
1642 0 : _PUBLIC_ void ndr_print_network_resiliency_request(struct ndr_print *ndr, const char *name, const struct network_resiliency_request *r)
1643 : {
1644 0 : ndr_print_struct(ndr, name, "network_resiliency_request");
1645 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1646 0 : ndr->depth++;
1647 0 : ndr_print_uint32(ndr, "timeout", r->timeout);
1648 0 : ndr_print_uint32(ndr, "reserved", r->reserved);
1649 0 : ndr->depth--;
1650 : }
1651 :
1652 : #ifndef SKIP_NDR_TABLE_resiliency
1653 : static const struct ndr_interface_public_struct resiliency_public_structs[] = {
1654 : {
1655 : .name = "network_resiliency_request",
1656 : .struct_size = sizeof(struct network_resiliency_request ),
1657 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_network_resiliency_request,
1658 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_network_resiliency_request,
1659 : .ndr_print = (ndr_print_function_t) ndr_print_flags_network_resiliency_request,
1660 : },
1661 : { .name = NULL }
1662 : };
1663 :
1664 : static const struct ndr_interface_call resiliency_calls[] = {
1665 : { .name = NULL }
1666 : };
1667 :
1668 : static const char * const resiliency_endpoint_strings[] = {
1669 : "ncacn_np:[\\pipe\\resiliency]",
1670 : };
1671 :
1672 : static const struct ndr_interface_string_array resiliency_endpoints = {
1673 : .count = 1,
1674 : .names = resiliency_endpoint_strings
1675 : };
1676 :
1677 : static const char * const resiliency_authservice_strings[] = {
1678 : "host",
1679 : };
1680 :
1681 : static const struct ndr_interface_string_array resiliency_authservices = {
1682 : .count = 1,
1683 : .names = resiliency_authservice_strings
1684 : };
1685 :
1686 :
1687 : const struct ndr_interface_table ndr_table_resiliency = {
1688 : .name = "resiliency",
1689 : .num_calls = 0,
1690 : .calls = resiliency_calls,
1691 : .num_public_structs = 1,
1692 : .public_structs = resiliency_public_structs,
1693 : .endpoints = &resiliency_endpoints,
1694 : .authservices = &resiliency_authservices
1695 : };
1696 :
1697 : #endif /* SKIP_NDR_TABLE_resiliency */
1698 0 : _PUBLIC_ enum ndr_err_code ndr_push_file_level_trim_range(struct ndr_push *ndr, int ndr_flags, const struct file_level_trim_range *r)
1699 : {
1700 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1701 0 : if (ndr_flags & NDR_SCALARS) {
1702 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1703 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->off));
1704 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->len));
1705 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1706 : }
1707 0 : if (ndr_flags & NDR_BUFFERS) {
1708 : }
1709 0 : return NDR_ERR_SUCCESS;
1710 : }
1711 :
1712 0 : _PUBLIC_ enum ndr_err_code ndr_pull_file_level_trim_range(struct ndr_pull *ndr, int ndr_flags, struct file_level_trim_range *r)
1713 : {
1714 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1715 0 : if (ndr_flags & NDR_SCALARS) {
1716 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1717 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->off));
1718 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->len));
1719 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1720 : }
1721 0 : if (ndr_flags & NDR_BUFFERS) {
1722 : }
1723 0 : return NDR_ERR_SUCCESS;
1724 : }
1725 :
1726 0 : static void ndr_print_flags_file_level_trim_range(struct ndr_print *ndr, const char *name, int unused, const struct file_level_trim_range *r)
1727 : {
1728 0 : ndr_print_file_level_trim_range(ndr, name, r);
1729 0 : }
1730 :
1731 0 : _PUBLIC_ void ndr_print_file_level_trim_range(struct ndr_print *ndr, const char *name, const struct file_level_trim_range *r)
1732 : {
1733 0 : ndr_print_struct(ndr, name, "file_level_trim_range");
1734 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1735 0 : ndr->depth++;
1736 0 : ndr_print_hyper(ndr, "off", r->off);
1737 0 : ndr_print_hyper(ndr, "len", r->len);
1738 0 : ndr->depth--;
1739 : }
1740 :
1741 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_file_level_trim_req(struct ndr_push *ndr, int ndr_flags, const struct fsctl_file_level_trim_req *r)
1742 : {
1743 : uint32_t cntr_ranges_0;
1744 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1745 0 : if (ndr_flags & NDR_SCALARS) {
1746 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1747 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->key));
1748 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_ranges));
1749 0 : for (cntr_ranges_0 = 0; cntr_ranges_0 < (r->num_ranges); cntr_ranges_0++) {
1750 0 : NDR_CHECK(ndr_push_file_level_trim_range(ndr, NDR_SCALARS, &r->ranges[cntr_ranges_0]));
1751 : }
1752 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1753 : }
1754 0 : if (ndr_flags & NDR_BUFFERS) {
1755 : }
1756 0 : return NDR_ERR_SUCCESS;
1757 : }
1758 :
1759 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_file_level_trim_req(struct ndr_pull *ndr, int ndr_flags, struct fsctl_file_level_trim_req *r)
1760 : {
1761 0 : uint32_t size_ranges_0 = 0;
1762 : uint32_t cntr_ranges_0;
1763 0 : TALLOC_CTX *_mem_save_ranges_0 = NULL;
1764 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1765 0 : if (ndr_flags & NDR_SCALARS) {
1766 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1767 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->key));
1768 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_ranges));
1769 0 : size_ranges_0 = r->num_ranges;
1770 0 : NDR_PULL_ALLOC_N(ndr, r->ranges, size_ranges_0);
1771 0 : _mem_save_ranges_0 = NDR_PULL_GET_MEM_CTX(ndr);
1772 0 : NDR_PULL_SET_MEM_CTX(ndr, r->ranges, 0);
1773 0 : for (cntr_ranges_0 = 0; cntr_ranges_0 < (size_ranges_0); cntr_ranges_0++) {
1774 0 : NDR_CHECK(ndr_pull_file_level_trim_range(ndr, NDR_SCALARS, &r->ranges[cntr_ranges_0]));
1775 : }
1776 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ranges_0, 0);
1777 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1778 : }
1779 0 : if (ndr_flags & NDR_BUFFERS) {
1780 : }
1781 0 : return NDR_ERR_SUCCESS;
1782 : }
1783 :
1784 0 : static void ndr_print_flags_fsctl_file_level_trim_req(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_file_level_trim_req *r)
1785 : {
1786 0 : ndr_print_fsctl_file_level_trim_req(ndr, name, r);
1787 0 : }
1788 :
1789 0 : _PUBLIC_ void ndr_print_fsctl_file_level_trim_req(struct ndr_print *ndr, const char *name, const struct fsctl_file_level_trim_req *r)
1790 : {
1791 : uint32_t cntr_ranges_0;
1792 0 : ndr_print_struct(ndr, name, "fsctl_file_level_trim_req");
1793 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1794 0 : ndr->depth++;
1795 0 : ndr_print_uint32(ndr, "key", r->key);
1796 0 : ndr_print_uint32(ndr, "num_ranges", r->num_ranges);
1797 0 : ndr->print(ndr, "%s: ARRAY(%d)", "ranges", (int)r->num_ranges);
1798 0 : ndr->depth++;
1799 0 : for (cntr_ranges_0 = 0; cntr_ranges_0 < (r->num_ranges); cntr_ranges_0++) {
1800 0 : ndr_print_file_level_trim_range(ndr, "ranges", &r->ranges[cntr_ranges_0]);
1801 : }
1802 0 : ndr->depth--;
1803 0 : ndr->depth--;
1804 : }
1805 :
1806 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_file_level_trim_rsp(struct ndr_push *ndr, int ndr_flags, const struct fsctl_file_level_trim_rsp *r)
1807 : {
1808 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1809 0 : if (ndr_flags & NDR_SCALARS) {
1810 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1811 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_ranges_processed));
1812 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1813 : }
1814 0 : if (ndr_flags & NDR_BUFFERS) {
1815 : }
1816 0 : return NDR_ERR_SUCCESS;
1817 : }
1818 :
1819 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_file_level_trim_rsp(struct ndr_pull *ndr, int ndr_flags, struct fsctl_file_level_trim_rsp *r)
1820 : {
1821 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1822 0 : if (ndr_flags & NDR_SCALARS) {
1823 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1824 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_ranges_processed));
1825 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1826 : }
1827 0 : if (ndr_flags & NDR_BUFFERS) {
1828 : }
1829 0 : return NDR_ERR_SUCCESS;
1830 : }
1831 :
1832 0 : static void ndr_print_flags_fsctl_file_level_trim_rsp(struct ndr_print *ndr, const char *name, int unused, const struct fsctl_file_level_trim_rsp *r)
1833 : {
1834 0 : ndr_print_fsctl_file_level_trim_rsp(ndr, name, r);
1835 0 : }
1836 :
1837 0 : _PUBLIC_ void ndr_print_fsctl_file_level_trim_rsp(struct ndr_print *ndr, const char *name, const struct fsctl_file_level_trim_rsp *r)
1838 : {
1839 0 : ndr_print_struct(ndr, name, "fsctl_file_level_trim_rsp");
1840 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1841 0 : ndr->depth++;
1842 0 : ndr_print_uint32(ndr, "num_ranges_processed", r->num_ranges_processed);
1843 0 : ndr->depth--;
1844 : }
1845 :
1846 : #ifndef SKIP_NDR_TABLE_trim
1847 : static const struct ndr_interface_public_struct trim_public_structs[] = {
1848 : {
1849 : .name = "file_level_trim_range",
1850 : .struct_size = sizeof(struct file_level_trim_range ),
1851 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_file_level_trim_range,
1852 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_file_level_trim_range,
1853 : .ndr_print = (ndr_print_function_t) ndr_print_flags_file_level_trim_range,
1854 : },
1855 : {
1856 : .name = "fsctl_file_level_trim_req",
1857 : .struct_size = sizeof(struct fsctl_file_level_trim_req ),
1858 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_file_level_trim_req,
1859 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_file_level_trim_req,
1860 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_file_level_trim_req,
1861 : },
1862 : {
1863 : .name = "fsctl_file_level_trim_rsp",
1864 : .struct_size = sizeof(struct fsctl_file_level_trim_rsp ),
1865 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_file_level_trim_rsp,
1866 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_file_level_trim_rsp,
1867 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_file_level_trim_rsp,
1868 : },
1869 : { .name = NULL }
1870 : };
1871 :
1872 : static const struct ndr_interface_call trim_calls[] = {
1873 : { .name = NULL }
1874 : };
1875 :
1876 : static const char * const trim_endpoint_strings[] = {
1877 : "ncacn_np:[\\pipe\\trim]",
1878 : };
1879 :
1880 : static const struct ndr_interface_string_array trim_endpoints = {
1881 : .count = 1,
1882 : .names = trim_endpoint_strings
1883 : };
1884 :
1885 : static const char * const trim_authservice_strings[] = {
1886 : "host",
1887 : };
1888 :
1889 : static const struct ndr_interface_string_array trim_authservices = {
1890 : .count = 1,
1891 : .names = trim_authservice_strings
1892 : };
1893 :
1894 :
1895 : const struct ndr_interface_table ndr_table_trim = {
1896 : .name = "trim",
1897 : .num_calls = 0,
1898 : .calls = trim_calls,
1899 : .num_public_structs = 3,
1900 : .public_structs = trim_public_structs,
1901 : .endpoints = &trim_endpoints,
1902 : .authservices = &trim_authservices
1903 : };
1904 :
1905 : #endif /* SKIP_NDR_TABLE_trim */
|