LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_ioctl.c (source / functions) Hit Total Coverage
Test: coverage report for fix-15632 9995c5c2 Lines: 446 1128 39.5 %
Date: 2024-04-13 12:30:31 Functions: 37 111 33.3 %

          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         280 : _PUBLIC_ enum ndr_err_code ndr_push_req_resume_key_rsp(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct req_resume_key_rsp *r)
       7             : {
       8         280 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
       9         280 :         if (ndr_flags & NDR_SCALARS) {
      10         280 :                 NDR_CHECK(ndr_push_align(ndr, 4));
      11         280 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->resume_key, 24));
      12         280 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->context_len));
      13         280 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->context, 4));
      14         280 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      15             :         }
      16         280 :         if (ndr_flags & NDR_BUFFERS) {
      17           0 :         }
      18         280 :         return NDR_ERR_SUCCESS;
      19             : }
      20             : 
      21         280 : _PUBLIC_ enum ndr_err_code ndr_pull_req_resume_key_rsp(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct req_resume_key_rsp *r)
      22             : {
      23         280 :         uint32_t size_resume_key_0 = 0;
      24         280 :         uint32_t size_context_0 = 0;
      25         280 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      26         280 :         if (ndr_flags & NDR_SCALARS) {
      27         280 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
      28         280 :                 size_resume_key_0 = 24;
      29         280 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->resume_key, size_resume_key_0));
      30         280 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->context_len));
      31         280 :                 size_context_0 = 4;
      32         280 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->context, size_context_0));
      33         280 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      34             :         }
      35         280 :         if (ndr_flags & NDR_BUFFERS) {
      36           0 :         }
      37         280 :         return NDR_ERR_SUCCESS;
      38             : }
      39             : 
      40           0 : static void ndr_print_flags_req_resume_key_rsp(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct req_resume_key_rsp *r)
      41             : {
      42           0 :         ndr_print_req_resume_key_rsp(ndr, name, r);
      43           0 : }
      44             : 
      45          24 : _PUBLIC_ void ndr_print_req_resume_key_rsp(struct ndr_print *ndr, const char *name, const struct req_resume_key_rsp *r)
      46             : {
      47          24 :         ndr_print_struct(ndr, name, "req_resume_key_rsp");
      48          24 :         if (r == NULL) { ndr_print_null(ndr); return; }
      49          24 :         ndr->depth++;
      50          24 :         ndr_print_array_uint8(ndr, "resume_key", r->resume_key, 24);
      51          24 :         ndr_print_uint32(ndr, "context_len", r->context_len);
      52          24 :         ndr_print_array_uint8(ndr, "context", r->context, 4);
      53          24 :         ndr->depth--;
      54             : }
      55             : 
      56         296 : static enum ndr_err_code ndr_push_srv_copychunk(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct srv_copychunk *r)
      57             : {
      58         296 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      59         296 :         if (ndr_flags & NDR_SCALARS) {
      60         296 :                 NDR_CHECK(ndr_push_align(ndr, 8));
      61         296 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->source_off));
      62         296 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->target_off));
      63         296 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->length));
      64         296 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved));
      65         296 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
      66             :         }
      67         296 :         if (ndr_flags & NDR_BUFFERS) {
      68           0 :         }
      69         296 :         return NDR_ERR_SUCCESS;
      70             : }
      71             : 
      72         312 : static enum ndr_err_code ndr_pull_srv_copychunk(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct srv_copychunk *r)
      73             : {
      74         312 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      75         312 :         if (ndr_flags & NDR_SCALARS) {
      76         312 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
      77         312 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->source_off));
      78         312 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->target_off));
      79         312 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->length));
      80         312 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
      81         312 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
      82             :         }
      83         312 :         if (ndr_flags & NDR_BUFFERS) {
      84           0 :         }
      85         312 :         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         264 : _PUBLIC_ enum ndr_err_code ndr_push_srv_copychunk_copy(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct srv_copychunk_copy *r)
     101             : {
     102           0 :         uint32_t cntr_chunks_0;
     103         264 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     104         264 :         if (ndr_flags & NDR_SCALARS) {
     105         264 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     106         264 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->source_key, 24));
     107         264 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->chunk_count));
     108         264 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved));
     109         560 :                 for (cntr_chunks_0 = 0; cntr_chunks_0 < (r->chunk_count); cntr_chunks_0++) {
     110         296 :                         NDR_CHECK(ndr_push_srv_copychunk(ndr, NDR_SCALARS, &r->chunks[cntr_chunks_0]));
     111             :                 }
     112         264 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     113             :         }
     114         264 :         if (ndr_flags & NDR_BUFFERS) {
     115           0 :         }
     116         264 :         return NDR_ERR_SUCCESS;
     117             : }
     118             : 
     119         280 : _PUBLIC_ enum ndr_err_code ndr_pull_srv_copychunk_copy(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct srv_copychunk_copy *r)
     120             : {
     121         280 :         uint32_t size_source_key_0 = 0;
     122         280 :         uint32_t size_chunks_0 = 0;
     123           0 :         uint32_t cntr_chunks_0;
     124         280 :         TALLOC_CTX *_mem_save_chunks_0 = NULL;
     125         280 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     126         280 :         if (ndr_flags & NDR_SCALARS) {
     127         280 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     128         280 :                 size_source_key_0 = 24;
     129         280 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->source_key, size_source_key_0));
     130         280 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->chunk_count));
     131         280 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
     132         280 :                 size_chunks_0 = r->chunk_count;
     133         280 :                 NDR_PULL_ALLOC_N(ndr, r->chunks, size_chunks_0);
     134         280 :                 _mem_save_chunks_0 = NDR_PULL_GET_MEM_CTX(ndr);
     135         280 :                 NDR_PULL_SET_MEM_CTX(ndr, r->chunks, 0);
     136         592 :                 for (cntr_chunks_0 = 0; cntr_chunks_0 < (size_chunks_0); cntr_chunks_0++) {
     137         312 :                         NDR_CHECK(ndr_pull_srv_copychunk(ndr, NDR_SCALARS, &r->chunks[cntr_chunks_0]));
     138             :                 }
     139         280 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_chunks_0, 0);
     140         280 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     141             :         }
     142         280 :         if (ndr_flags & NDR_BUFFERS) {
     143           0 :         }
     144         280 :         return NDR_ERR_SUCCESS;
     145             : }
     146             : 
     147           0 : static void ndr_print_flags_srv_copychunk_copy(struct ndr_print *ndr, const char *name, ndr_flags_type 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           0 :         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(%"PRIu32")", "chunks", (uint32_t)(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         280 : _PUBLIC_ enum ndr_err_code ndr_push_srv_copychunk_rsp(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct srv_copychunk_rsp *r)
     171             : {
     172         280 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     173         280 :         if (ndr_flags & NDR_SCALARS) {
     174         280 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     175         280 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->chunks_written));
     176         280 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->chunk_bytes_written));
     177         280 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->total_bytes_written));
     178         280 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     179             :         }
     180         280 :         if (ndr_flags & NDR_BUFFERS) {
     181           0 :         }
     182         280 :         return NDR_ERR_SUCCESS;
     183             : }
     184             : 
     185         200 : _PUBLIC_ enum ndr_err_code ndr_pull_srv_copychunk_rsp(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct srv_copychunk_rsp *r)
     186             : {
     187         200 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     188         200 :         if (ndr_flags & NDR_SCALARS) {
     189         200 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     190         200 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->chunks_written));
     191         200 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->chunk_bytes_written));
     192         200 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->total_bytes_written));
     193         200 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     194             :         }
     195         200 :         if (ndr_flags & NDR_BUFFERS) {
     196           0 :         }
     197         200 :         return NDR_ERR_SUCCESS;
     198             : }
     199             : 
     200           0 : static void ndr_print_flags_srv_copychunk_rsp(struct ndr_print *ndr, const char *name, ndr_flags_type 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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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, ndr_flags_type 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           0 :         }
     301           0 :         return NDR_ERR_SUCCESS;
     302             : }
     303             : 
     304           0 : _PUBLIC_ enum ndr_err_code ndr_pull_storage_offload_token(struct ndr_pull *ndr, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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, ndr_flags_type 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, ndr_flags_type ndr_flags, uint32_t *r)
     404             : {
     405           0 :         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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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           0 :         }
     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, ndr_flags_type 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      = &copychunk_endpoints,
     727             :         .authservices   = &copychunk_authservices
     728             : };
     729             : 
     730             : #endif /* SKIP_NDR_TABLE_copychunk */
     731          25 : _PUBLIC_ enum ndr_err_code ndr_push_compression_state(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct compression_state *r)
     732             : {
     733          25 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     734          25 :         if (ndr_flags & NDR_SCALARS) {
     735          25 :                 NDR_CHECK(ndr_push_align(ndr, 2));
     736          25 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->format));
     737          25 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 2));
     738             :         }
     739          25 :         if (ndr_flags & NDR_BUFFERS) {
     740           0 :         }
     741          25 :         return NDR_ERR_SUCCESS;
     742             : }
     743             : 
     744          24 : _PUBLIC_ enum ndr_err_code ndr_pull_compression_state(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct compression_state *r)
     745             : {
     746          24 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     747          24 :         if (ndr_flags & NDR_SCALARS) {
     748          24 :                 NDR_CHECK(ndr_pull_align(ndr, 2));
     749          24 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->format));
     750          24 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
     751             :         }
     752          24 :         if (ndr_flags & NDR_BUFFERS) {
     753           0 :         }
     754          24 :         return NDR_ERR_SUCCESS;
     755             : }
     756             : 
     757           0 : static void ndr_print_flags_compression_state(struct ndr_print *ndr, const char *name, ndr_flags_type 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         144 : static enum ndr_err_code ndr_push_fsctl_net_iface_capability(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
     818             : {
     819         144 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
     820         144 :         return NDR_ERR_SUCCESS;
     821             : }
     822             : 
     823          88 : static enum ndr_err_code ndr_pull_fsctl_net_iface_capability(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
     824             : {
     825           0 :         uint32_t v;
     826          88 :         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
     827          88 :         *r = v;
     828          88 :         return NDR_ERR_SUCCESS;
     829             : }
     830             : 
     831          88 : _PUBLIC_ void ndr_print_fsctl_net_iface_capability(struct ndr_print *ndr, const char *name, uint32_t r)
     832             : {
     833          88 :         ndr_print_uint32(ndr, name, r);
     834          88 :         ndr->depth++;
     835          88 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCTL_NET_IFACE_NONE_CAPABLE", FSCTL_NET_IFACE_NONE_CAPABLE, r);
     836          88 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCTL_NET_IFACE_RSS_CAPABLE", FSCTL_NET_IFACE_RSS_CAPABLE, r);
     837          88 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCTL_NET_IFACE_RDMA_CAPABLE", FSCTL_NET_IFACE_RDMA_CAPABLE, r);
     838          88 :         ndr->depth--;
     839          88 : }
     840             : 
     841         144 : static enum ndr_err_code ndr_push_fsctl_sockaddr_af(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum fsctl_sockaddr_af r)
     842             : {
     843         144 :         NDR_CHECK(ndr_push_enum_uint16(ndr, NDR_SCALARS, r));
     844         144 :         return NDR_ERR_SUCCESS;
     845             : }
     846             : 
     847          88 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_af(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum fsctl_sockaddr_af *r)
     848             : {
     849           0 :         uint16_t v;
     850          88 :         NDR_CHECK(ndr_pull_enum_uint16(ndr, NDR_SCALARS, &v));
     851          88 :         *r = v;
     852          88 :         return NDR_ERR_SUCCESS;
     853             : }
     854             : 
     855          88 : _PUBLIC_ void ndr_print_fsctl_sockaddr_af(struct ndr_print *ndr, const char *name, enum fsctl_sockaddr_af r)
     856             : {
     857          88 :         const char *val = NULL;
     858             : 
     859          88 :         switch (r) {
     860          44 :                 case FSCTL_NET_IFACE_AF_INET: val = "FSCTL_NET_IFACE_AF_INET"; break;
     861          44 :                 case FSCTL_NET_IFACE_AF_INET6: val = "FSCTL_NET_IFACE_AF_INET6"; break;
     862             :         }
     863          88 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     864          88 : }
     865             : 
     866          72 : static enum ndr_err_code ndr_push_fsctl_sockaddr_in(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct fsctl_sockaddr_in *r)
     867             : {
     868             :         {
     869          72 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     870          72 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     871          72 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     872          72 :                 if (ndr_flags & NDR_SCALARS) {
     873          72 :                         NDR_CHECK(ndr_push_align(ndr, 8));
     874          72 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 0));
     875             :                         {
     876          72 :                                 libndr_flags _flags_save_ipv4address = ndr->flags;
     877          72 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     878          72 :                                 NDR_CHECK(ndr_push_ipv4address(ndr, NDR_SCALARS, r->ipv4));
     879          72 :                                 ndr->flags = _flags_save_ipv4address;
     880             :                         }
     881          72 :                         NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, 0));
     882          72 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     883             :                 }
     884          72 :                 if (ndr_flags & NDR_BUFFERS) {
     885           0 :                 }
     886          72 :                 ndr->flags = _flags_save_STRUCT;
     887             :         }
     888          72 :         return NDR_ERR_SUCCESS;
     889             : }
     890             : 
     891          44 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_in(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct fsctl_sockaddr_in *r)
     892             : {
     893             :         {
     894          44 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     895          44 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     896          44 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     897          44 :                 if (ndr_flags & NDR_SCALARS) {
     898          44 :                         NDR_CHECK(ndr_pull_align(ndr, 8));
     899          44 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
     900             :                         {
     901          44 :                                 libndr_flags _flags_save_ipv4address = ndr->flags;
     902          44 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     903          44 :                                 NDR_CHECK(ndr_pull_ipv4address(ndr, NDR_SCALARS, &r->ipv4));
     904          44 :                                 ndr->flags = _flags_save_ipv4address;
     905             :                         }
     906          44 :                         NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->reserved));
     907          44 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     908             :                 }
     909          44 :                 if (ndr_flags & NDR_BUFFERS) {
     910           0 :                 }
     911          44 :                 ndr->flags = _flags_save_STRUCT;
     912             :         }
     913          44 :         return NDR_ERR_SUCCESS;
     914             : }
     915             : 
     916          44 : _PUBLIC_ void ndr_print_fsctl_sockaddr_in(struct ndr_print *ndr, const char *name, const struct fsctl_sockaddr_in *r)
     917             : {
     918          44 :         ndr_print_struct(ndr, name, "fsctl_sockaddr_in");
     919          44 :         if (r == NULL) { ndr_print_null(ndr); return; }
     920             :         {
     921          44 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     922          44 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     923          44 :                 ndr->depth++;
     924          44 :                 ndr_print_uint16(ndr, "port", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->port);
     925             :                 {
     926          44 :                         libndr_flags _flags_save_ipv4address = ndr->flags;
     927          44 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     928          44 :                         ndr_print_ipv4address(ndr, "ipv4", r->ipv4);
     929          44 :                         ndr->flags = _flags_save_ipv4address;
     930             :                 }
     931          44 :                 ndr_print_hyper(ndr, "reserved", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->reserved);
     932          44 :                 ndr->depth--;
     933          44 :                 ndr->flags = _flags_save_STRUCT;
     934             :         }
     935             : }
     936             : 
     937          72 : static enum ndr_err_code ndr_push_fsctl_sockaddr_in6(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct fsctl_sockaddr_in6 *r)
     938             : {
     939             :         {
     940          72 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     941          72 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     942          72 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     943          72 :                 if (ndr_flags & NDR_SCALARS) {
     944          72 :                         NDR_CHECK(ndr_push_align(ndr, 4));
     945          72 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 0));
     946          72 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
     947             :                         {
     948          72 :                                 libndr_flags _flags_save_ipv6address = ndr->flags;
     949          72 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     950          72 :                                 NDR_CHECK(ndr_push_ipv6address(ndr, NDR_SCALARS, r->ipv6));
     951          72 :                                 ndr->flags = _flags_save_ipv6address;
     952             :                         }
     953          72 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
     954          72 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     955             :                 }
     956          72 :                 if (ndr_flags & NDR_BUFFERS) {
     957           0 :                 }
     958          72 :                 ndr->flags = _flags_save_STRUCT;
     959             :         }
     960          72 :         return NDR_ERR_SUCCESS;
     961             : }
     962             : 
     963          44 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_in6(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct fsctl_sockaddr_in6 *r)
     964             : {
     965             :         {
     966          44 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     967          44 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     968          44 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     969          44 :                 if (ndr_flags & NDR_SCALARS) {
     970          44 :                         NDR_CHECK(ndr_pull_align(ndr, 4));
     971          44 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
     972          44 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flowinfo));
     973             :                         {
     974          44 :                                 libndr_flags _flags_save_ipv6address = ndr->flags;
     975          44 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     976          44 :                                 NDR_CHECK(ndr_pull_ipv6address(ndr, NDR_SCALARS, &r->ipv6));
     977          44 :                                 ndr->flags = _flags_save_ipv6address;
     978             :                         }
     979          44 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->scopeid));
     980          44 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     981             :                 }
     982          44 :                 if (ndr_flags & NDR_BUFFERS) {
     983           0 :                 }
     984          44 :                 ndr->flags = _flags_save_STRUCT;
     985             :         }
     986          44 :         return NDR_ERR_SUCCESS;
     987             : }
     988             : 
     989          44 : _PUBLIC_ void ndr_print_fsctl_sockaddr_in6(struct ndr_print *ndr, const char *name, const struct fsctl_sockaddr_in6 *r)
     990             : {
     991          44 :         ndr_print_struct(ndr, name, "fsctl_sockaddr_in6");
     992          44 :         if (r == NULL) { ndr_print_null(ndr); return; }
     993             :         {
     994          44 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     995          44 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     996          44 :                 ndr->depth++;
     997          44 :                 ndr_print_uint16(ndr, "port", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->port);
     998          44 :                 ndr_print_uint32(ndr, "flowinfo", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->flowinfo);
     999             :                 {
    1000          44 :                         libndr_flags _flags_save_ipv6address = ndr->flags;
    1001          44 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
    1002          44 :                         ndr_print_ipv6address(ndr, "ipv6", r->ipv6);
    1003          44 :                         ndr->flags = _flags_save_ipv6address;
    1004             :                 }
    1005          44 :                 ndr_print_uint32(ndr, "scopeid", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->scopeid);
    1006          44 :                 ndr->depth--;
    1007          44 :                 ndr->flags = _flags_save_STRUCT;
    1008             :         }
    1009             : }
    1010             : 
    1011         144 : static enum ndr_err_code ndr_push_fsctl_sockaddr_union(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union fsctl_sockaddr_union *r)
    1012             : {
    1013           0 :         uint32_t level;
    1014             :         {
    1015         144 :                 libndr_flags _flags_save_UNION = ndr->flags;
    1016         144 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1017         144 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1018         144 :                 if (ndr_flags & NDR_SCALARS) {
    1019             :                         /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    1020         144 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    1021         144 :                         NDR_CHECK(ndr_push_union_align(ndr, 8));
    1022         144 :                         switch (level) {
    1023          72 :                                 case FSCTL_NET_IFACE_AF_INET: {
    1024          72 :                                         NDR_CHECK(ndr_push_fsctl_sockaddr_in(ndr, NDR_SCALARS, &r->saddr_in));
    1025          72 :                                 break; }
    1026             : 
    1027          72 :                                 case FSCTL_NET_IFACE_AF_INET6: {
    1028          72 :                                         NDR_CHECK(ndr_push_fsctl_sockaddr_in6(ndr, NDR_SCALARS, &r->saddr_in6));
    1029          72 :                                 break; }
    1030             : 
    1031           0 :                                 default:
    1032           0 :                                         return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    1033             :                         }
    1034             :                 }
    1035         144 :                 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 %"PRIu32, level);
    1049             :                         }
    1050             :                 }
    1051         144 :                 ndr->flags = _flags_save_UNION;
    1052             :         }
    1053         144 :         return NDR_ERR_SUCCESS;
    1054             : }
    1055             : 
    1056          88 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_union(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union fsctl_sockaddr_union *r)
    1057             : {
    1058           0 :         uint32_t level;
    1059             :         {
    1060          88 :                 libndr_flags _flags_save_UNION = ndr->flags;
    1061          88 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1062          88 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1063          88 :                 if (ndr_flags & NDR_SCALARS) {
    1064             :                         /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    1065          88 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    1066          88 :                         NDR_CHECK(ndr_pull_union_align(ndr, 8));
    1067          88 :                         switch (level) {
    1068          44 :                                 case FSCTL_NET_IFACE_AF_INET: {
    1069          44 :                                         NDR_CHECK(ndr_pull_fsctl_sockaddr_in(ndr, NDR_SCALARS, &r->saddr_in));
    1070          44 :                                 break; }
    1071             : 
    1072          44 :                                 case FSCTL_NET_IFACE_AF_INET6: {
    1073          44 :                                         NDR_CHECK(ndr_pull_fsctl_sockaddr_in6(ndr, NDR_SCALARS, &r->saddr_in6));
    1074          44 :                                 break; }
    1075             : 
    1076           0 :                                 default:
    1077           0 :                                         return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    1078             :                         }
    1079             :                 }
    1080          88 :                 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 %"PRIu32" at %s", level, __location__);
    1094             :                         }
    1095             :                 }
    1096          88 :                 ndr->flags = _flags_save_UNION;
    1097             :         }
    1098          88 :         return NDR_ERR_SUCCESS;
    1099             : }
    1100             : 
    1101          88 : _PUBLIC_ void ndr_print_fsctl_sockaddr_union(struct ndr_print *ndr, const char *name, const union fsctl_sockaddr_union *r)
    1102             : {
    1103           0 :         uint32_t level;
    1104             :         {
    1105          88 :                 libndr_flags _flags_save_UNION = ndr->flags;
    1106          88 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1107          88 :                 level = ndr_print_steal_switch_value(ndr, r);
    1108          88 :                 ndr_print_union(ndr, name, level, "fsctl_sockaddr_union");
    1109          88 :                 switch (level) {
    1110          44 :                         case FSCTL_NET_IFACE_AF_INET:
    1111          44 :                                 ndr_print_fsctl_sockaddr_in(ndr, "saddr_in", &r->saddr_in);
    1112          44 :                         break;
    1113             : 
    1114          44 :                         case FSCTL_NET_IFACE_AF_INET6:
    1115          44 :                                 ndr_print_fsctl_sockaddr_in6(ndr, "saddr_in6", &r->saddr_in6);
    1116          44 :                         break;
    1117             : 
    1118           0 :                         default:
    1119           0 :                                 ndr_print_bad_level(ndr, name, level);
    1120             :                 }
    1121          88 :                 ndr->flags = _flags_save_UNION;
    1122             :         }
    1123          88 : }
    1124             : 
    1125         144 : static enum ndr_err_code ndr_push_fsctl_sockaddr_storage(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct fsctl_sockaddr_storage *r)
    1126             : {
    1127             :         {
    1128         144 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1129         144 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1130         144 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1131         144 :                 if (ndr_flags & NDR_SCALARS) {
    1132         144 :                         NDR_CHECK(ndr_push_align(ndr, 8));
    1133         144 :                         NDR_CHECK(ndr_push_fsctl_sockaddr_af(ndr, NDR_SCALARS, r->family));
    1134             :                         {
    1135           0 :                                 struct ndr_push *_ndr_saddr;
    1136         144 :                                 NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_saddr, 0, 126));
    1137         144 :                                 NDR_CHECK(ndr_push_set_switch_value(_ndr_saddr, &r->saddr, r->family));
    1138         144 :                                 NDR_CHECK(ndr_push_fsctl_sockaddr_union(_ndr_saddr, NDR_SCALARS, &r->saddr));
    1139         144 :                                 NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_saddr, 0, 126));
    1140             :                         }
    1141         144 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1142             :                 }
    1143         144 :                 if (ndr_flags & NDR_BUFFERS) {
    1144           0 :                 }
    1145         144 :                 ndr->flags = _flags_save_STRUCT;
    1146             :         }
    1147         144 :         return NDR_ERR_SUCCESS;
    1148             : }
    1149             : 
    1150          88 : static enum ndr_err_code ndr_pull_fsctl_sockaddr_storage(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct fsctl_sockaddr_storage *r)
    1151             : {
    1152             :         {
    1153          88 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1154          88 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1155          88 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1156          88 :                 if (ndr_flags & NDR_SCALARS) {
    1157          88 :                         NDR_CHECK(ndr_pull_align(ndr, 8));
    1158          88 :                         NDR_CHECK(ndr_pull_fsctl_sockaddr_af(ndr, NDR_SCALARS, &r->family));
    1159             :                         {
    1160           0 :                                 struct ndr_pull *_ndr_saddr;
    1161          88 :                                 NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_saddr, 0, 126));
    1162          88 :                                 NDR_CHECK(ndr_pull_set_switch_value(_ndr_saddr, &r->saddr, r->family));
    1163          88 :                                 NDR_CHECK(ndr_pull_fsctl_sockaddr_union(_ndr_saddr, NDR_SCALARS, &r->saddr));
    1164          88 :                                 NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_saddr, 0, 126));
    1165             :                         }
    1166          88 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1167             :                 }
    1168          88 :                 if (ndr_flags & NDR_BUFFERS) {
    1169           0 :                 }
    1170          88 :                 ndr->flags = _flags_save_STRUCT;
    1171             :         }
    1172          88 :         return NDR_ERR_SUCCESS;
    1173             : }
    1174             : 
    1175          88 : _PUBLIC_ void ndr_print_fsctl_sockaddr_storage(struct ndr_print *ndr, const char *name, const struct fsctl_sockaddr_storage *r)
    1176             : {
    1177          88 :         ndr_print_struct(ndr, name, "fsctl_sockaddr_storage");
    1178          88 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1179             :         {
    1180          88 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1181          88 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1182          88 :                 ndr->depth++;
    1183          88 :                 ndr_print_fsctl_sockaddr_af(ndr, "family", r->family);
    1184          88 :                 ndr_print_set_switch_value(ndr, &r->saddr, r->family);
    1185          88 :                 ndr_print_fsctl_sockaddr_union(ndr, "saddr", &r->saddr);
    1186          88 :                 ndr->depth--;
    1187          88 :                 ndr->flags = _flags_save_STRUCT;
    1188             :         }
    1189             : }
    1190             : 
    1191         144 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_net_iface_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct fsctl_net_iface_info *r)
    1192             : {
    1193         144 :         uint32_t _save_relative_base_offset = ndr_push_get_relative_base_offset(ndr);
    1194         144 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1195         144 :         if (ndr_flags & NDR_SCALARS) {
    1196         144 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1197         144 :                 NDR_CHECK(ndr_push_setup_relative_base_offset1(ndr, r, ndr->offset));
    1198         144 :                 NDR_CHECK(ndr_push_relative_ptr1(ndr, r->next));
    1199         144 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->ifindex));
    1200         144 :                 NDR_CHECK(ndr_push_fsctl_net_iface_capability(ndr, NDR_SCALARS, r->capability));
    1201         144 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
    1202         144 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->linkspeed));
    1203         144 :                 NDR_CHECK(ndr_push_fsctl_sockaddr_storage(ndr, NDR_SCALARS, &r->sockaddr));
    1204         144 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1205             :         }
    1206         144 :         if (ndr_flags & NDR_BUFFERS) {
    1207         144 :                 NDR_CHECK(ndr_push_setup_relative_base_offset2(ndr, r));
    1208         144 :                 if (r->next) {
    1209          72 :                         NDR_CHECK(ndr_push_relative_ptr2_start(ndr, r->next));
    1210          72 :                         NDR_CHECK(ndr_push_fsctl_net_iface_info(ndr, NDR_SCALARS|NDR_BUFFERS, r->next));
    1211          72 :                         NDR_CHECK(ndr_push_relative_ptr2_end(ndr, r->next));
    1212             :                 }
    1213             :         }
    1214         144 :         ndr_push_restore_relative_base_offset(ndr, _save_relative_base_offset);
    1215         144 :         return NDR_ERR_SUCCESS;
    1216             : }
    1217             : 
    1218          88 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_net_iface_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct fsctl_net_iface_info *r)
    1219             : {
    1220          88 :         uint32_t _save_relative_base_offset = ndr_pull_get_relative_base_offset(ndr);
    1221           0 :         uint32_t _ptr_next;
    1222          88 :         TALLOC_CTX *_mem_save_next_0 = NULL;
    1223          88 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1224          88 :         if (ndr_flags & NDR_SCALARS) {
    1225          88 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1226          88 :                 NDR_CHECK(ndr_pull_setup_relative_base_offset1(ndr, r, ndr->offset));
    1227          88 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_next));
    1228          88 :                 if (_ptr_next) {
    1229          44 :                         NDR_PULL_ALLOC(ndr, r->next);
    1230          44 :                         NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->next, _ptr_next));
    1231             :                 } else {
    1232          44 :                         r->next = NULL;
    1233             :                 }
    1234          88 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->ifindex));
    1235          88 :                 NDR_CHECK(ndr_pull_fsctl_net_iface_capability(ndr, NDR_SCALARS, &r->capability));
    1236          88 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
    1237          88 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->linkspeed));
    1238          88 :                 NDR_CHECK(ndr_pull_fsctl_sockaddr_storage(ndr, NDR_SCALARS, &r->sockaddr));
    1239          88 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1240             :         }
    1241          88 :         if (ndr_flags & NDR_BUFFERS) {
    1242          88 :                 NDR_CHECK(ndr_pull_setup_relative_base_offset2(ndr, r));
    1243          88 :                 if (r->next) {
    1244           0 :                         uint32_t _relative_save_offset;
    1245          44 :                         _relative_save_offset = ndr->offset;
    1246          44 :                         NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->next));
    1247          44 :                         _mem_save_next_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1248          44 :                         NDR_PULL_SET_MEM_CTX(ndr, r->next, 0);
    1249          44 :                         NDR_RECURSION_CHECK(ndr, 20000);
    1250          44 :                         NDR_CHECK(ndr_pull_fsctl_net_iface_info(ndr, NDR_SCALARS|NDR_BUFFERS, r->next));
    1251          44 :                         NDR_RECURSION_UNWIND(ndr);
    1252          44 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_next_0, 0);
    1253          44 :                         if (ndr->offset > ndr->relative_highest_offset) {
    1254          44 :                                 ndr->relative_highest_offset = ndr->offset;
    1255             :                         }
    1256          44 :                         ndr->offset = _relative_save_offset;
    1257             :                 }
    1258             :         }
    1259          88 :         ndr_pull_restore_relative_base_offset(ndr, _save_relative_base_offset);
    1260          88 :         return NDR_ERR_SUCCESS;
    1261             : }
    1262             : 
    1263           0 : static void ndr_print_flags_fsctl_net_iface_info(struct ndr_print *ndr, const char *name, ndr_flags_type 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         576 : _PUBLIC_ enum ndr_err_code ndr_push_file_alloced_range_buf(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct file_alloced_range_buf *r)
    1315             : {
    1316         576 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1317         576 :         if (ndr_flags & NDR_SCALARS) {
    1318         576 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1319         576 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_off));
    1320         576 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->len));
    1321         576 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1322             :         }
    1323         576 :         if (ndr_flags & NDR_BUFFERS) {
    1324           0 :         }
    1325         576 :         return NDR_ERR_SUCCESS;
    1326             : }
    1327             : 
    1328         568 : _PUBLIC_ enum ndr_err_code ndr_pull_file_alloced_range_buf(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct file_alloced_range_buf *r)
    1329             : {
    1330         568 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1331         568 :         if (ndr_flags & NDR_SCALARS) {
    1332         568 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1333         568 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_off));
    1334         560 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->len));
    1335         560 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1336             :         }
    1337         560 :         if (ndr_flags & NDR_BUFFERS) {
    1338           0 :         }
    1339         560 :         return NDR_ERR_SUCCESS;
    1340             : }
    1341             : 
    1342           0 : static void ndr_print_flags_file_alloced_range_buf(struct ndr_print *ndr, const char *name, ndr_flags_type 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, ndr_flags_type 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           0 :         }
    1367           0 :         return NDR_ERR_SUCCESS;
    1368             : }
    1369             : 
    1370         320 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_query_alloced_ranges_req(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct fsctl_query_alloced_ranges_req *r)
    1371             : {
    1372         320 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1373         320 :         if (ndr_flags & NDR_SCALARS) {
    1374         320 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1375         320 :                 NDR_CHECK(ndr_pull_file_alloced_range_buf(ndr, NDR_SCALARS, &r->buf));
    1376         312 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1377             :         }
    1378         312 :         if (ndr_flags & NDR_BUFFERS) {
    1379           0 :         }
    1380         312 :         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, ndr_flags_type 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         224 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_query_alloced_ranges_rsp(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct fsctl_query_alloced_ranges_rsp *r)
    1398             : {
    1399         224 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1400         224 :         if (ndr_flags & NDR_SCALARS) {
    1401         224 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    1402             :                 {
    1403         224 :                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1404         224 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
    1405         224 :                         NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->far_buf_array));
    1406         224 :                         ndr->flags = _flags_save_DATA_BLOB;
    1407             :                 }
    1408         224 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1409             :         }
    1410         224 :         if (ndr_flags & NDR_BUFFERS) {
    1411           0 :         }
    1412         224 :         return NDR_ERR_SUCCESS;
    1413             : }
    1414             : 
    1415           0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_query_alloced_ranges_rsp(struct ndr_pull *ndr, ndr_flags_type 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 :                         libndr_flags _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           0 :         }
    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, ndr_flags_type 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 :                 libndr_flags _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         258 : _PUBLIC_ enum ndr_err_code ndr_push_file_zero_data_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct file_zero_data_info *r)
    1453             : {
    1454         258 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1455         258 :         if (ndr_flags & NDR_SCALARS) {
    1456         258 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1457         258 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_off));
    1458         258 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->beyond_final_zero));
    1459         258 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1460             :         }
    1461         258 :         if (ndr_flags & NDR_BUFFERS) {
    1462           0 :         }
    1463         258 :         return NDR_ERR_SUCCESS;
    1464             : }
    1465             : 
    1466         234 : _PUBLIC_ enum ndr_err_code ndr_pull_file_zero_data_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct file_zero_data_info *r)
    1467             : {
    1468         234 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1469         234 :         if (ndr_flags & NDR_SCALARS) {
    1470         234 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1471         234 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_off));
    1472         234 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->beyond_final_zero));
    1473         234 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1474             :         }
    1475         234 :         if (ndr_flags & NDR_BUFFERS) {
    1476           0 :         }
    1477         234 :         return NDR_ERR_SUCCESS;
    1478             : }
    1479             : 
    1480           0 : static void ndr_print_flags_file_zero_data_info(struct ndr_print *ndr, const char *name, ndr_flags_type 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, ndr_flags_type 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           0 :         }
    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, ndr_flags_type 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           0 :         }
    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, ndr_flags_type 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, ndr_flags_type 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           0 :         }
    1620           0 :         return NDR_ERR_SUCCESS;
    1621             : }
    1622             : 
    1623           0 : _PUBLIC_ enum ndr_err_code ndr_pull_network_resiliency_request(struct ndr_pull *ndr, ndr_flags_type 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           0 :         }
    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, ndr_flags_type 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, ndr_flags_type 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           0 :         }
    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, ndr_flags_type 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           0 :         }
    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, ndr_flags_type 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, ndr_flags_type ndr_flags, const struct fsctl_file_level_trim_req *r)
    1742             : {
    1743           0 :         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           0 :         }
    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, ndr_flags_type ndr_flags, struct fsctl_file_level_trim_req *r)
    1760             : {
    1761           0 :         uint32_t size_ranges_0 = 0;
    1762           0 :         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           0 :         }
    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, ndr_flags_type 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           0 :         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(%"PRIu32")", "ranges", (uint32_t)(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, ndr_flags_type 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           0 :         }
    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, ndr_flags_type 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           0 :         }
    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, ndr_flags_type 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 */
    1906           0 : _PUBLIC_ enum ndr_err_code ndr_push_fsctl_pipe_wait(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct fsctl_pipe_wait *r)
    1907             : {
    1908           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1909           0 :         if (ndr_flags & NDR_SCALARS) {
    1910           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1911           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->timeout));
    1912           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 2 * strlen_m(r->pipe_name)));
    1913           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->timeout_specified));
    1914           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->padding));
    1915           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->pipe_name, 2 * strlen_m(r->pipe_name), sizeof(uint8_t), CH_UTF16));
    1916           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1917             :         }
    1918           0 :         if (ndr_flags & NDR_BUFFERS) {
    1919           0 :         }
    1920           0 :         return NDR_ERR_SUCCESS;
    1921             : }
    1922             : 
    1923           0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsctl_pipe_wait(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct fsctl_pipe_wait *r)
    1924             : {
    1925           0 :         uint32_t size_pipe_name_0 = 0;
    1926           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1927           0 :         if (ndr_flags & NDR_SCALARS) {
    1928           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1929           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->timeout));
    1930           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pipe_name_len));
    1931           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->timeout_specified));
    1932           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->padding));
    1933           0 :                 size_pipe_name_0 = r->pipe_name_len;
    1934           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->pipe_name, size_pipe_name_0, sizeof(uint8_t), CH_UTF16));
    1935           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1936             :         }
    1937           0 :         if (ndr_flags & NDR_BUFFERS) {
    1938           0 :         }
    1939           0 :         return NDR_ERR_SUCCESS;
    1940             : }
    1941             : 
    1942           0 : static void ndr_print_flags_fsctl_pipe_wait(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct fsctl_pipe_wait *r)
    1943             : {
    1944           0 :         ndr_print_fsctl_pipe_wait(ndr, name, r);
    1945           0 : }
    1946             : 
    1947           0 : _PUBLIC_ void ndr_print_fsctl_pipe_wait(struct ndr_print *ndr, const char *name, const struct fsctl_pipe_wait *r)
    1948             : {
    1949           0 :         ndr_print_struct(ndr, name, "fsctl_pipe_wait");
    1950           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1951           0 :         ndr->depth++;
    1952           0 :         ndr_print_hyper(ndr, "timeout", r->timeout);
    1953           0 :         ndr_print_uint32(ndr, "pipe_name_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * strlen_m(r->pipe_name):r->pipe_name_len);
    1954           0 :         ndr_print_uint8(ndr, "timeout_specified", r->timeout_specified);
    1955           0 :         ndr_print_uint8(ndr, "padding", r->padding);
    1956           0 :         ndr_print_string(ndr, "pipe_name", r->pipe_name);
    1957           0 :         ndr->depth--;
    1958             : }
    1959             : 
    1960             : #ifndef SKIP_NDR_TABLE_fsctl
    1961             : static const struct ndr_interface_public_struct fsctl_public_structs[] = {
    1962             :         {
    1963             :                 .name = "fsctl_pipe_wait",
    1964             :                 .struct_size = sizeof(struct fsctl_pipe_wait ),
    1965             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_pipe_wait,
    1966             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_pipe_wait,
    1967             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_pipe_wait,
    1968             :         },
    1969             :         { .name = NULL }
    1970             : };
    1971             : 
    1972             : static const struct ndr_interface_call fsctl_calls[] = {
    1973             :         { .name = NULL }
    1974             : };
    1975             : 
    1976             : static const char * const fsctl_endpoint_strings[] = {
    1977             :         "ncacn_np:[\\pipe\\fsctl]", 
    1978             : };
    1979             : 
    1980             : static const struct ndr_interface_string_array fsctl_endpoints = {
    1981             :         .count  = 1,
    1982             :         .names  = fsctl_endpoint_strings
    1983             : };
    1984             : 
    1985             : static const char * const fsctl_authservice_strings[] = {
    1986             :         "host", 
    1987             : };
    1988             : 
    1989             : static const struct ndr_interface_string_array fsctl_authservices = {
    1990             :         .count  = 1,
    1991             :         .names  = fsctl_authservice_strings
    1992             : };
    1993             : 
    1994             : 
    1995             : const struct ndr_interface_table ndr_table_fsctl = {
    1996             :         .name           = "fsctl",
    1997             :         .num_calls      = 0,
    1998             :         .calls          = fsctl_calls,
    1999             :         .num_public_structs     = 1,
    2000             :         .public_structs         = fsctl_public_structs,
    2001             :         .endpoints      = &fsctl_endpoints,
    2002             :         .authservices   = &fsctl_authservices
    2003             : };
    2004             : 
    2005             : #endif /* SKIP_NDR_TABLE_fsctl */

Generated by: LCOV version 1.14