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 master 98b443d9 Lines: 452 1129 40.0 %
Date: 2024-05-31 13:13:24 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         240 : 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         240 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
     820         224 :         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         240 : 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         240 :         NDR_CHECK(ndr_push_enum_uint16(ndr, NDR_SCALARS, r));
     844         224 :         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         120 : 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         120 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     870         120 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     871         120 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     872         120 :                 if (ndr_flags & NDR_SCALARS) {
     873         120 :                         NDR_CHECK(ndr_push_align(ndr, 8));
     874         120 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 0));
     875             :                         {
     876         120 :                                 libndr_flags _flags_save_ipv4address = ndr->flags;
     877         120 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     878         120 :                                 NDR_CHECK(ndr_push_ipv4address(ndr, NDR_SCALARS, r->ipv4));
     879         120 :                                 ndr->flags = _flags_save_ipv4address;
     880             :                         }
     881         120 :                         NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, 0));
     882         120 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     883             :                 }
     884         120 :                 if (ndr_flags & NDR_BUFFERS) {
     885           8 :                 }
     886         120 :                 ndr->flags = _flags_save_STRUCT;
     887             :         }
     888         120 :         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         120 : 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         120 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     941         120 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     942         120 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     943         120 :                 if (ndr_flags & NDR_SCALARS) {
     944         120 :                         NDR_CHECK(ndr_push_align(ndr, 4));
     945         120 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 0));
     946         120 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
     947             :                         {
     948         120 :                                 libndr_flags _flags_save_ipv6address = ndr->flags;
     949         120 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     950         120 :                                 NDR_CHECK(ndr_push_ipv6address(ndr, NDR_SCALARS, r->ipv6));
     951         120 :                                 ndr->flags = _flags_save_ipv6address;
     952             :                         }
     953         120 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
     954         120 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     955             :                 }
     956         120 :                 if (ndr_flags & NDR_BUFFERS) {
     957           8 :                 }
     958         120 :                 ndr->flags = _flags_save_STRUCT;
     959             :         }
     960         120 :         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         240 : 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          16 :         uint32_t level;
    1014             :         {
    1015         240 :                 libndr_flags _flags_save_UNION = ndr->flags;
    1016         240 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1017         240 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1018         240 :                 if (ndr_flags & NDR_SCALARS) {
    1019             :                         /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    1020         240 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    1021         240 :                         NDR_CHECK(ndr_push_union_align(ndr, 8));
    1022         240 :                         switch (level) {
    1023         120 :                                 case FSCTL_NET_IFACE_AF_INET: {
    1024         120 :                                         NDR_CHECK(ndr_push_fsctl_sockaddr_in(ndr, NDR_SCALARS, &r->saddr_in));
    1025         112 :                                 break; }
    1026             : 
    1027         120 :                                 case FSCTL_NET_IFACE_AF_INET6: {
    1028         120 :                                         NDR_CHECK(ndr_push_fsctl_sockaddr_in6(ndr, NDR_SCALARS, &r->saddr_in6));
    1029         112 :                                 break; }
    1030             : 
    1031           0 :                                 default:
    1032           0 :                                         return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    1033             :                         }
    1034             :                 }
    1035         240 :                 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         240 :                 ndr->flags = _flags_save_UNION;
    1052             :         }
    1053         240 :         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         240 : 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         240 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1129         240 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1130         240 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1131         240 :                 if (ndr_flags & NDR_SCALARS) {
    1132         240 :                         NDR_CHECK(ndr_push_align(ndr, 8));
    1133         256 :                         NDR_CHECK(ndr_push_fsctl_sockaddr_af(ndr, NDR_SCALARS, r->family));
    1134             :                         {
    1135          16 :                                 struct ndr_push *_ndr_saddr;
    1136         240 :                                 NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_saddr, 0, 126));
    1137         240 :                                 NDR_CHECK(ndr_push_set_switch_value(_ndr_saddr, &r->saddr, r->family));
    1138         240 :                                 NDR_CHECK(ndr_push_fsctl_sockaddr_union(_ndr_saddr, NDR_SCALARS, &r->saddr));
    1139         240 :                                 NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_saddr, 0, 126));
    1140             :                         }
    1141         240 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1142             :                 }
    1143         240 :                 if (ndr_flags & NDR_BUFFERS) {
    1144          16 :                 }
    1145         240 :                 ndr->flags = _flags_save_STRUCT;
    1146             :         }
    1147         240 :         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 :                                 ssize_t sub_size = 126;
    1162          88 :                                 NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_saddr, 0, sub_size));
    1163          88 :                                 NDR_CHECK(ndr_pull_set_switch_value(_ndr_saddr, &r->saddr, r->family));
    1164          88 :                                 NDR_CHECK(ndr_pull_fsctl_sockaddr_union(_ndr_saddr, NDR_SCALARS, &r->saddr));
    1165          88 :                                 NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_saddr, 0, sub_size));
    1166             :                         }
    1167          88 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1168             :                 }
    1169          88 :                 if (ndr_flags & NDR_BUFFERS) {
    1170           0 :                 }
    1171          88 :                 ndr->flags = _flags_save_STRUCT;
    1172             :         }
    1173          88 :         return NDR_ERR_SUCCESS;
    1174             : }
    1175             : 
    1176          88 : _PUBLIC_ void ndr_print_fsctl_sockaddr_storage(struct ndr_print *ndr, const char *name, const struct fsctl_sockaddr_storage *r)
    1177             : {
    1178          88 :         ndr_print_struct(ndr, name, "fsctl_sockaddr_storage");
    1179          88 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1180             :         {
    1181          88 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1182          88 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1183          88 :                 ndr->depth++;
    1184          88 :                 ndr_print_fsctl_sockaddr_af(ndr, "family", r->family);
    1185          88 :                 ndr_print_set_switch_value(ndr, &r->saddr, r->family);
    1186          88 :                 ndr_print_fsctl_sockaddr_union(ndr, "saddr", &r->saddr);
    1187          88 :                 ndr->depth--;
    1188          88 :                 ndr->flags = _flags_save_STRUCT;
    1189             :         }
    1190             : }
    1191             : 
    1192         240 : _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)
    1193             : {
    1194         240 :         uint32_t _save_relative_base_offset = ndr_push_get_relative_base_offset(ndr);
    1195         240 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1196         240 :         if (ndr_flags & NDR_SCALARS) {
    1197         240 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1198         240 :                 NDR_CHECK(ndr_push_setup_relative_base_offset1(ndr, r, ndr->offset));
    1199         240 :                 NDR_CHECK(ndr_push_relative_ptr1(ndr, r->next));
    1200         240 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->ifindex));
    1201         256 :                 NDR_CHECK(ndr_push_fsctl_net_iface_capability(ndr, NDR_SCALARS, r->capability));
    1202         240 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
    1203         240 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->linkspeed));
    1204         240 :                 NDR_CHECK(ndr_push_fsctl_sockaddr_storage(ndr, NDR_SCALARS, &r->sockaddr));
    1205         240 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1206             :         }
    1207         240 :         if (ndr_flags & NDR_BUFFERS) {
    1208         240 :                 NDR_CHECK(ndr_push_setup_relative_base_offset2(ndr, r));
    1209         240 :                 if (r->next) {
    1210         120 :                         NDR_CHECK(ndr_push_relative_ptr2_start(ndr, r->next));
    1211         120 :                         NDR_CHECK(ndr_push_fsctl_net_iface_info(ndr, NDR_SCALARS|NDR_BUFFERS, r->next));
    1212         120 :                         NDR_CHECK(ndr_push_relative_ptr2_end(ndr, r->next));
    1213             :                 }
    1214             :         }
    1215         240 :         ndr_push_restore_relative_base_offset(ndr, _save_relative_base_offset);
    1216         240 :         return NDR_ERR_SUCCESS;
    1217             : }
    1218             : 
    1219          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)
    1220             : {
    1221          88 :         uint32_t _save_relative_base_offset = ndr_pull_get_relative_base_offset(ndr);
    1222           0 :         uint32_t _ptr_next;
    1223          88 :         TALLOC_CTX *_mem_save_next_0 = NULL;
    1224          88 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1225          88 :         if (ndr_flags & NDR_SCALARS) {
    1226          88 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1227          88 :                 NDR_CHECK(ndr_pull_setup_relative_base_offset1(ndr, r, ndr->offset));
    1228          88 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_next));
    1229          88 :                 if (_ptr_next) {
    1230          44 :                         NDR_PULL_ALLOC(ndr, r->next);
    1231          44 :                         NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->next, _ptr_next));
    1232             :                 } else {
    1233          44 :                         r->next = NULL;
    1234             :                 }
    1235          88 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->ifindex));
    1236          88 :                 NDR_CHECK(ndr_pull_fsctl_net_iface_capability(ndr, NDR_SCALARS, &r->capability));
    1237          88 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
    1238          88 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->linkspeed));
    1239          88 :                 NDR_CHECK(ndr_pull_fsctl_sockaddr_storage(ndr, NDR_SCALARS, &r->sockaddr));
    1240          88 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1241             :         }
    1242          88 :         if (ndr_flags & NDR_BUFFERS) {
    1243          88 :                 NDR_CHECK(ndr_pull_setup_relative_base_offset2(ndr, r));
    1244          88 :                 if (r->next) {
    1245           0 :                         uint32_t _relative_save_offset;
    1246          44 :                         _relative_save_offset = ndr->offset;
    1247          44 :                         NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->next));
    1248          44 :                         _mem_save_next_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1249          44 :                         NDR_PULL_SET_MEM_CTX(ndr, r->next, 0);
    1250          44 :                         NDR_RECURSION_CHECK(ndr, 20000);
    1251          44 :                         NDR_CHECK(ndr_pull_fsctl_net_iface_info(ndr, NDR_SCALARS|NDR_BUFFERS, r->next));
    1252          44 :                         NDR_RECURSION_UNWIND(ndr);
    1253          44 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_next_0, 0);
    1254          44 :                         if (ndr->offset > ndr->relative_highest_offset) {
    1255          44 :                                 ndr->relative_highest_offset = ndr->offset;
    1256             :                         }
    1257          44 :                         ndr->offset = _relative_save_offset;
    1258             :                 }
    1259             :         }
    1260          88 :         ndr_pull_restore_relative_base_offset(ndr, _save_relative_base_offset);
    1261          88 :         return NDR_ERR_SUCCESS;
    1262             : }
    1263             : 
    1264           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)
    1265             : {
    1266           0 :         ndr_print_fsctl_net_iface_info(ndr, name, r);
    1267           0 : }
    1268             : 
    1269             : #ifndef SKIP_NDR_TABLE_netinterface
    1270             : static const struct ndr_interface_public_struct netinterface_public_structs[] = {
    1271             :         {
    1272             :                 .name = "fsctl_net_iface_info",
    1273             :                 .struct_size = sizeof(struct fsctl_net_iface_info ),
    1274             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_net_iface_info,
    1275             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_net_iface_info,
    1276             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_net_iface_info,
    1277             :         },
    1278             :         { .name = NULL }
    1279             : };
    1280             : 
    1281             : static const struct ndr_interface_call netinterface_calls[] = {
    1282             :         { .name = NULL }
    1283             : };
    1284             : 
    1285             : static const char * const netinterface_endpoint_strings[] = {
    1286             :         "ncacn_np:[\\pipe\\netinterface]", 
    1287             : };
    1288             : 
    1289             : static const struct ndr_interface_string_array netinterface_endpoints = {
    1290             :         .count  = 1,
    1291             :         .names  = netinterface_endpoint_strings
    1292             : };
    1293             : 
    1294             : static const char * const netinterface_authservice_strings[] = {
    1295             :         "host", 
    1296             : };
    1297             : 
    1298             : static const struct ndr_interface_string_array netinterface_authservices = {
    1299             :         .count  = 1,
    1300             :         .names  = netinterface_authservice_strings
    1301             : };
    1302             : 
    1303             : 
    1304             : const struct ndr_interface_table ndr_table_netinterface = {
    1305             :         .name           = "netinterface",
    1306             :         .num_calls      = 0,
    1307             :         .calls          = netinterface_calls,
    1308             :         .num_public_structs     = 1,
    1309             :         .public_structs         = netinterface_public_structs,
    1310             :         .endpoints      = &netinterface_endpoints,
    1311             :         .authservices   = &netinterface_authservices
    1312             : };
    1313             : 
    1314             : #endif /* SKIP_NDR_TABLE_netinterface */
    1315         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)
    1316             : {
    1317         576 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1318         576 :         if (ndr_flags & NDR_SCALARS) {
    1319         576 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1320         576 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_off));
    1321         576 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->len));
    1322         576 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1323             :         }
    1324         576 :         if (ndr_flags & NDR_BUFFERS) {
    1325           0 :         }
    1326         576 :         return NDR_ERR_SUCCESS;
    1327             : }
    1328             : 
    1329         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)
    1330             : {
    1331         568 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1332         568 :         if (ndr_flags & NDR_SCALARS) {
    1333         568 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1334         568 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_off));
    1335         560 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->len));
    1336         560 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1337             :         }
    1338         560 :         if (ndr_flags & NDR_BUFFERS) {
    1339           0 :         }
    1340         560 :         return NDR_ERR_SUCCESS;
    1341             : }
    1342             : 
    1343           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)
    1344             : {
    1345           0 :         ndr_print_file_alloced_range_buf(ndr, name, r);
    1346           0 : }
    1347             : 
    1348           0 : _PUBLIC_ void ndr_print_file_alloced_range_buf(struct ndr_print *ndr, const char *name, const struct file_alloced_range_buf *r)
    1349             : {
    1350           0 :         ndr_print_struct(ndr, name, "file_alloced_range_buf");
    1351           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1352           0 :         ndr->depth++;
    1353           0 :         ndr_print_hyper(ndr, "file_off", r->file_off);
    1354           0 :         ndr_print_hyper(ndr, "len", r->len);
    1355           0 :         ndr->depth--;
    1356             : }
    1357             : 
    1358           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)
    1359             : {
    1360           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1361           0 :         if (ndr_flags & NDR_SCALARS) {
    1362           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1363           0 :                 NDR_CHECK(ndr_push_file_alloced_range_buf(ndr, NDR_SCALARS, &r->buf));
    1364           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1365             :         }
    1366           0 :         if (ndr_flags & NDR_BUFFERS) {
    1367           0 :         }
    1368           0 :         return NDR_ERR_SUCCESS;
    1369             : }
    1370             : 
    1371         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)
    1372             : {
    1373         320 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1374         320 :         if (ndr_flags & NDR_SCALARS) {
    1375         320 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1376         320 :                 NDR_CHECK(ndr_pull_file_alloced_range_buf(ndr, NDR_SCALARS, &r->buf));
    1377         312 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1378             :         }
    1379         312 :         if (ndr_flags & NDR_BUFFERS) {
    1380           0 :         }
    1381         312 :         return NDR_ERR_SUCCESS;
    1382             : }
    1383             : 
    1384           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)
    1385             : {
    1386           0 :         ndr_print_fsctl_query_alloced_ranges_req(ndr, name, r);
    1387           0 : }
    1388             : 
    1389           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)
    1390             : {
    1391           0 :         ndr_print_struct(ndr, name, "fsctl_query_alloced_ranges_req");
    1392           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1393           0 :         ndr->depth++;
    1394           0 :         ndr_print_file_alloced_range_buf(ndr, "buf", &r->buf);
    1395           0 :         ndr->depth--;
    1396             : }
    1397             : 
    1398         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)
    1399             : {
    1400         224 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1401         224 :         if (ndr_flags & NDR_SCALARS) {
    1402         224 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    1403             :                 {
    1404         224 :                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1405         224 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
    1406         224 :                         NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->far_buf_array));
    1407         224 :                         ndr->flags = _flags_save_DATA_BLOB;
    1408             :                 }
    1409         224 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1410             :         }
    1411         224 :         if (ndr_flags & NDR_BUFFERS) {
    1412           0 :         }
    1413         224 :         return NDR_ERR_SUCCESS;
    1414             : }
    1415             : 
    1416           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)
    1417             : {
    1418           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1419           0 :         if (ndr_flags & NDR_SCALARS) {
    1420           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    1421             :                 {
    1422           0 :                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1423           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
    1424           0 :                         NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->far_buf_array));
    1425           0 :                         ndr->flags = _flags_save_DATA_BLOB;
    1426             :                 }
    1427           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1428             :         }
    1429           0 :         if (ndr_flags & NDR_BUFFERS) {
    1430           0 :         }
    1431           0 :         return NDR_ERR_SUCCESS;
    1432             : }
    1433             : 
    1434           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)
    1435             : {
    1436           0 :         ndr_print_fsctl_query_alloced_ranges_rsp(ndr, name, r);
    1437           0 : }
    1438             : 
    1439           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)
    1440             : {
    1441           0 :         ndr_print_struct(ndr, name, "fsctl_query_alloced_ranges_rsp");
    1442           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1443           0 :         ndr->depth++;
    1444             :         {
    1445           0 :                 libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1446           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
    1447           0 :                 ndr_print_DATA_BLOB(ndr, "far_buf_array", r->far_buf_array);
    1448           0 :                 ndr->flags = _flags_save_DATA_BLOB;
    1449             :         }
    1450           0 :         ndr->depth--;
    1451             : }
    1452             : 
    1453         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)
    1454             : {
    1455         258 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1456         258 :         if (ndr_flags & NDR_SCALARS) {
    1457         258 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1458         258 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->file_off));
    1459         258 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->beyond_final_zero));
    1460         258 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1461             :         }
    1462         258 :         if (ndr_flags & NDR_BUFFERS) {
    1463           0 :         }
    1464         258 :         return NDR_ERR_SUCCESS;
    1465             : }
    1466             : 
    1467         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)
    1468             : {
    1469         234 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1470         234 :         if (ndr_flags & NDR_SCALARS) {
    1471         234 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1472         234 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->file_off));
    1473         234 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->beyond_final_zero));
    1474         234 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1475             :         }
    1476         234 :         if (ndr_flags & NDR_BUFFERS) {
    1477           0 :         }
    1478         234 :         return NDR_ERR_SUCCESS;
    1479             : }
    1480             : 
    1481           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)
    1482             : {
    1483           0 :         ndr_print_file_zero_data_info(ndr, name, r);
    1484           0 : }
    1485             : 
    1486           0 : _PUBLIC_ void ndr_print_file_zero_data_info(struct ndr_print *ndr, const char *name, const struct file_zero_data_info *r)
    1487             : {
    1488           0 :         ndr_print_struct(ndr, name, "file_zero_data_info");
    1489           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1490           0 :         ndr->depth++;
    1491           0 :         ndr_print_hyper(ndr, "file_off", r->file_off);
    1492           0 :         ndr_print_hyper(ndr, "beyond_final_zero", r->beyond_final_zero);
    1493           0 :         ndr->depth--;
    1494             : }
    1495             : 
    1496           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)
    1497             : {
    1498           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1499           0 :         if (ndr_flags & NDR_SCALARS) {
    1500           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1501           0 :                 NDR_CHECK(ndr_push_file_zero_data_info(ndr, NDR_SCALARS, &r->info));
    1502           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1503             :         }
    1504           0 :         if (ndr_flags & NDR_BUFFERS) {
    1505           0 :         }
    1506           0 :         return NDR_ERR_SUCCESS;
    1507             : }
    1508             : 
    1509           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)
    1510             : {
    1511           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1512           0 :         if (ndr_flags & NDR_SCALARS) {
    1513           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1514           0 :                 NDR_CHECK(ndr_pull_file_zero_data_info(ndr, NDR_SCALARS, &r->info));
    1515           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1516             :         }
    1517           0 :         if (ndr_flags & NDR_BUFFERS) {
    1518           0 :         }
    1519           0 :         return NDR_ERR_SUCCESS;
    1520             : }
    1521             : 
    1522           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)
    1523             : {
    1524           0 :         ndr_print_fsctl_set_zero_data_req(ndr, name, r);
    1525           0 : }
    1526             : 
    1527           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)
    1528             : {
    1529           0 :         ndr_print_struct(ndr, name, "fsctl_set_zero_data_req");
    1530           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1531           0 :         ndr->depth++;
    1532           0 :         ndr_print_file_zero_data_info(ndr, "info", &r->info);
    1533           0 :         ndr->depth--;
    1534             : }
    1535             : 
    1536             : #ifndef SKIP_NDR_TABLE_sparse
    1537             : static const struct ndr_interface_public_struct sparse_public_structs[] = {
    1538             :         {
    1539             :                 .name = "file_alloced_range_buf",
    1540             :                 .struct_size = sizeof(struct file_alloced_range_buf ),
    1541             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_file_alloced_range_buf,
    1542             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_file_alloced_range_buf,
    1543             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_file_alloced_range_buf,
    1544             :         },
    1545             :         {
    1546             :                 .name = "fsctl_query_alloced_ranges_req",
    1547             :                 .struct_size = sizeof(struct fsctl_query_alloced_ranges_req ),
    1548             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_query_alloced_ranges_req,
    1549             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_query_alloced_ranges_req,
    1550             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_query_alloced_ranges_req,
    1551             :         },
    1552             :         {
    1553             :                 .name = "fsctl_query_alloced_ranges_rsp",
    1554             :                 .struct_size = sizeof(struct fsctl_query_alloced_ranges_rsp ),
    1555             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_query_alloced_ranges_rsp,
    1556             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_query_alloced_ranges_rsp,
    1557             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_query_alloced_ranges_rsp,
    1558             :         },
    1559             :         {
    1560             :                 .name = "file_zero_data_info",
    1561             :                 .struct_size = sizeof(struct file_zero_data_info ),
    1562             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_file_zero_data_info,
    1563             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_file_zero_data_info,
    1564             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_file_zero_data_info,
    1565             :         },
    1566             :         {
    1567             :                 .name = "fsctl_set_zero_data_req",
    1568             :                 .struct_size = sizeof(struct fsctl_set_zero_data_req ),
    1569             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_set_zero_data_req,
    1570             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_set_zero_data_req,
    1571             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_set_zero_data_req,
    1572             :         },
    1573             :         { .name = NULL }
    1574             : };
    1575             : 
    1576             : static const struct ndr_interface_call sparse_calls[] = {
    1577             :         { .name = NULL }
    1578             : };
    1579             : 
    1580             : static const char * const sparse_endpoint_strings[] = {
    1581             :         "ncacn_np:[\\pipe\\sparse]", 
    1582             : };
    1583             : 
    1584             : static const struct ndr_interface_string_array sparse_endpoints = {
    1585             :         .count  = 1,
    1586             :         .names  = sparse_endpoint_strings
    1587             : };
    1588             : 
    1589             : static const char * const sparse_authservice_strings[] = {
    1590             :         "host", 
    1591             : };
    1592             : 
    1593             : static const struct ndr_interface_string_array sparse_authservices = {
    1594             :         .count  = 1,
    1595             :         .names  = sparse_authservice_strings
    1596             : };
    1597             : 
    1598             : 
    1599             : const struct ndr_interface_table ndr_table_sparse = {
    1600             :         .name           = "sparse",
    1601             :         .num_calls      = 0,
    1602             :         .calls          = sparse_calls,
    1603             :         .num_public_structs     = 5,
    1604             :         .public_structs         = sparse_public_structs,
    1605             :         .endpoints      = &sparse_endpoints,
    1606             :         .authservices   = &sparse_authservices
    1607             : };
    1608             : 
    1609             : #endif /* SKIP_NDR_TABLE_sparse */
    1610           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)
    1611             : {
    1612           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1613           0 :         if (ndr_flags & NDR_SCALARS) {
    1614           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    1615           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->timeout));
    1616           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved));
    1617           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1618             :         }
    1619           0 :         if (ndr_flags & NDR_BUFFERS) {
    1620           0 :         }
    1621           0 :         return NDR_ERR_SUCCESS;
    1622             : }
    1623             : 
    1624           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)
    1625             : {
    1626           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1627           0 :         if (ndr_flags & NDR_SCALARS) {
    1628           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    1629           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->timeout));
    1630           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
    1631           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1632             :         }
    1633           0 :         if (ndr_flags & NDR_BUFFERS) {
    1634           0 :         }
    1635           0 :         return NDR_ERR_SUCCESS;
    1636             : }
    1637             : 
    1638           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)
    1639             : {
    1640           0 :         ndr_print_network_resiliency_request(ndr, name, r);
    1641           0 : }
    1642             : 
    1643           0 : _PUBLIC_ void ndr_print_network_resiliency_request(struct ndr_print *ndr, const char *name, const struct network_resiliency_request *r)
    1644             : {
    1645           0 :         ndr_print_struct(ndr, name, "network_resiliency_request");
    1646           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1647           0 :         ndr->depth++;
    1648           0 :         ndr_print_uint32(ndr, "timeout", r->timeout);
    1649           0 :         ndr_print_uint32(ndr, "reserved", r->reserved);
    1650           0 :         ndr->depth--;
    1651             : }
    1652             : 
    1653             : #ifndef SKIP_NDR_TABLE_resiliency
    1654             : static const struct ndr_interface_public_struct resiliency_public_structs[] = {
    1655             :         {
    1656             :                 .name = "network_resiliency_request",
    1657             :                 .struct_size = sizeof(struct network_resiliency_request ),
    1658             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_network_resiliency_request,
    1659             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_network_resiliency_request,
    1660             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_network_resiliency_request,
    1661             :         },
    1662             :         { .name = NULL }
    1663             : };
    1664             : 
    1665             : static const struct ndr_interface_call resiliency_calls[] = {
    1666             :         { .name = NULL }
    1667             : };
    1668             : 
    1669             : static const char * const resiliency_endpoint_strings[] = {
    1670             :         "ncacn_np:[\\pipe\\resiliency]", 
    1671             : };
    1672             : 
    1673             : static const struct ndr_interface_string_array resiliency_endpoints = {
    1674             :         .count  = 1,
    1675             :         .names  = resiliency_endpoint_strings
    1676             : };
    1677             : 
    1678             : static const char * const resiliency_authservice_strings[] = {
    1679             :         "host", 
    1680             : };
    1681             : 
    1682             : static const struct ndr_interface_string_array resiliency_authservices = {
    1683             :         .count  = 1,
    1684             :         .names  = resiliency_authservice_strings
    1685             : };
    1686             : 
    1687             : 
    1688             : const struct ndr_interface_table ndr_table_resiliency = {
    1689             :         .name           = "resiliency",
    1690             :         .num_calls      = 0,
    1691             :         .calls          = resiliency_calls,
    1692             :         .num_public_structs     = 1,
    1693             :         .public_structs         = resiliency_public_structs,
    1694             :         .endpoints      = &resiliency_endpoints,
    1695             :         .authservices   = &resiliency_authservices
    1696             : };
    1697             : 
    1698             : #endif /* SKIP_NDR_TABLE_resiliency */
    1699           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)
    1700             : {
    1701           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1702           0 :         if (ndr_flags & NDR_SCALARS) {
    1703           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1704           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->off));
    1705           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->len));
    1706           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1707             :         }
    1708           0 :         if (ndr_flags & NDR_BUFFERS) {
    1709           0 :         }
    1710           0 :         return NDR_ERR_SUCCESS;
    1711             : }
    1712             : 
    1713           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)
    1714             : {
    1715           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1716           0 :         if (ndr_flags & NDR_SCALARS) {
    1717           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1718           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->off));
    1719           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->len));
    1720           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1721             :         }
    1722           0 :         if (ndr_flags & NDR_BUFFERS) {
    1723           0 :         }
    1724           0 :         return NDR_ERR_SUCCESS;
    1725             : }
    1726             : 
    1727           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)
    1728             : {
    1729           0 :         ndr_print_file_level_trim_range(ndr, name, r);
    1730           0 : }
    1731             : 
    1732           0 : _PUBLIC_ void ndr_print_file_level_trim_range(struct ndr_print *ndr, const char *name, const struct file_level_trim_range *r)
    1733             : {
    1734           0 :         ndr_print_struct(ndr, name, "file_level_trim_range");
    1735           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1736           0 :         ndr->depth++;
    1737           0 :         ndr_print_hyper(ndr, "off", r->off);
    1738           0 :         ndr_print_hyper(ndr, "len", r->len);
    1739           0 :         ndr->depth--;
    1740             : }
    1741             : 
    1742           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)
    1743             : {
    1744           0 :         uint32_t cntr_ranges_0;
    1745           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1746           0 :         if (ndr_flags & NDR_SCALARS) {
    1747           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1748           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->key));
    1749           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_ranges));
    1750           0 :                 for (cntr_ranges_0 = 0; cntr_ranges_0 < (r->num_ranges); cntr_ranges_0++) {
    1751           0 :                         NDR_CHECK(ndr_push_file_level_trim_range(ndr, NDR_SCALARS, &r->ranges[cntr_ranges_0]));
    1752             :                 }
    1753           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1754             :         }
    1755           0 :         if (ndr_flags & NDR_BUFFERS) {
    1756           0 :         }
    1757           0 :         return NDR_ERR_SUCCESS;
    1758             : }
    1759             : 
    1760           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)
    1761             : {
    1762           0 :         uint32_t size_ranges_0 = 0;
    1763           0 :         uint32_t cntr_ranges_0;
    1764           0 :         TALLOC_CTX *_mem_save_ranges_0 = NULL;
    1765           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1766           0 :         if (ndr_flags & NDR_SCALARS) {
    1767           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1768           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->key));
    1769           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_ranges));
    1770           0 :                 size_ranges_0 = r->num_ranges;
    1771           0 :                 NDR_PULL_ALLOC_N(ndr, r->ranges, size_ranges_0);
    1772           0 :                 _mem_save_ranges_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1773           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->ranges, 0);
    1774           0 :                 for (cntr_ranges_0 = 0; cntr_ranges_0 < (size_ranges_0); cntr_ranges_0++) {
    1775           0 :                         NDR_CHECK(ndr_pull_file_level_trim_range(ndr, NDR_SCALARS, &r->ranges[cntr_ranges_0]));
    1776             :                 }
    1777           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ranges_0, 0);
    1778           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1779             :         }
    1780           0 :         if (ndr_flags & NDR_BUFFERS) {
    1781           0 :         }
    1782           0 :         return NDR_ERR_SUCCESS;
    1783             : }
    1784             : 
    1785           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)
    1786             : {
    1787           0 :         ndr_print_fsctl_file_level_trim_req(ndr, name, r);
    1788           0 : }
    1789             : 
    1790           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)
    1791             : {
    1792           0 :         uint32_t cntr_ranges_0;
    1793           0 :         ndr_print_struct(ndr, name, "fsctl_file_level_trim_req");
    1794           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1795           0 :         ndr->depth++;
    1796           0 :         ndr_print_uint32(ndr, "key", r->key);
    1797           0 :         ndr_print_uint32(ndr, "num_ranges", r->num_ranges);
    1798           0 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "ranges", (uint32_t)(r->num_ranges));
    1799           0 :         ndr->depth++;
    1800           0 :         for (cntr_ranges_0 = 0; cntr_ranges_0 < (r->num_ranges); cntr_ranges_0++) {
    1801           0 :                 ndr_print_file_level_trim_range(ndr, "ranges", &r->ranges[cntr_ranges_0]);
    1802             :         }
    1803           0 :         ndr->depth--;
    1804           0 :         ndr->depth--;
    1805             : }
    1806             : 
    1807           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)
    1808             : {
    1809           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1810           0 :         if (ndr_flags & NDR_SCALARS) {
    1811           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    1812           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_ranges_processed));
    1813           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1814             :         }
    1815           0 :         if (ndr_flags & NDR_BUFFERS) {
    1816           0 :         }
    1817           0 :         return NDR_ERR_SUCCESS;
    1818             : }
    1819             : 
    1820           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)
    1821             : {
    1822           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1823           0 :         if (ndr_flags & NDR_SCALARS) {
    1824           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    1825           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_ranges_processed));
    1826           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1827             :         }
    1828           0 :         if (ndr_flags & NDR_BUFFERS) {
    1829           0 :         }
    1830           0 :         return NDR_ERR_SUCCESS;
    1831             : }
    1832             : 
    1833           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)
    1834             : {
    1835           0 :         ndr_print_fsctl_file_level_trim_rsp(ndr, name, r);
    1836           0 : }
    1837             : 
    1838           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)
    1839             : {
    1840           0 :         ndr_print_struct(ndr, name, "fsctl_file_level_trim_rsp");
    1841           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1842           0 :         ndr->depth++;
    1843           0 :         ndr_print_uint32(ndr, "num_ranges_processed", r->num_ranges_processed);
    1844           0 :         ndr->depth--;
    1845             : }
    1846             : 
    1847             : #ifndef SKIP_NDR_TABLE_trim
    1848             : static const struct ndr_interface_public_struct trim_public_structs[] = {
    1849             :         {
    1850             :                 .name = "file_level_trim_range",
    1851             :                 .struct_size = sizeof(struct file_level_trim_range ),
    1852             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_file_level_trim_range,
    1853             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_file_level_trim_range,
    1854             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_file_level_trim_range,
    1855             :         },
    1856             :         {
    1857             :                 .name = "fsctl_file_level_trim_req",
    1858             :                 .struct_size = sizeof(struct fsctl_file_level_trim_req ),
    1859             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_file_level_trim_req,
    1860             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_file_level_trim_req,
    1861             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_file_level_trim_req,
    1862             :         },
    1863             :         {
    1864             :                 .name = "fsctl_file_level_trim_rsp",
    1865             :                 .struct_size = sizeof(struct fsctl_file_level_trim_rsp ),
    1866             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_file_level_trim_rsp,
    1867             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_file_level_trim_rsp,
    1868             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_file_level_trim_rsp,
    1869             :         },
    1870             :         { .name = NULL }
    1871             : };
    1872             : 
    1873             : static const struct ndr_interface_call trim_calls[] = {
    1874             :         { .name = NULL }
    1875             : };
    1876             : 
    1877             : static const char * const trim_endpoint_strings[] = {
    1878             :         "ncacn_np:[\\pipe\\trim]", 
    1879             : };
    1880             : 
    1881             : static const struct ndr_interface_string_array trim_endpoints = {
    1882             :         .count  = 1,
    1883             :         .names  = trim_endpoint_strings
    1884             : };
    1885             : 
    1886             : static const char * const trim_authservice_strings[] = {
    1887             :         "host", 
    1888             : };
    1889             : 
    1890             : static const struct ndr_interface_string_array trim_authservices = {
    1891             :         .count  = 1,
    1892             :         .names  = trim_authservice_strings
    1893             : };
    1894             : 
    1895             : 
    1896             : const struct ndr_interface_table ndr_table_trim = {
    1897             :         .name           = "trim",
    1898             :         .num_calls      = 0,
    1899             :         .calls          = trim_calls,
    1900             :         .num_public_structs     = 3,
    1901             :         .public_structs         = trim_public_structs,
    1902             :         .endpoints      = &trim_endpoints,
    1903             :         .authservices   = &trim_authservices
    1904             : };
    1905             : 
    1906             : #endif /* SKIP_NDR_TABLE_trim */
    1907           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)
    1908             : {
    1909           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1910           0 :         if (ndr_flags & NDR_SCALARS) {
    1911           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1912           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->timeout));
    1913           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 2 * strlen_m(r->pipe_name)));
    1914           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->timeout_specified));
    1915           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->padding));
    1916           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->pipe_name, 2 * strlen_m(r->pipe_name), sizeof(uint8_t), CH_UTF16));
    1917           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1918             :         }
    1919           0 :         if (ndr_flags & NDR_BUFFERS) {
    1920           0 :         }
    1921           0 :         return NDR_ERR_SUCCESS;
    1922             : }
    1923             : 
    1924           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)
    1925             : {
    1926           0 :         uint32_t size_pipe_name_0 = 0;
    1927           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1928           0 :         if (ndr_flags & NDR_SCALARS) {
    1929           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1930           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->timeout));
    1931           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pipe_name_len));
    1932           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->timeout_specified));
    1933           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->padding));
    1934           0 :                 size_pipe_name_0 = r->pipe_name_len;
    1935           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->pipe_name, size_pipe_name_0, sizeof(uint8_t), CH_UTF16));
    1936           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1937             :         }
    1938           0 :         if (ndr_flags & NDR_BUFFERS) {
    1939           0 :         }
    1940           0 :         return NDR_ERR_SUCCESS;
    1941             : }
    1942             : 
    1943           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)
    1944             : {
    1945           0 :         ndr_print_fsctl_pipe_wait(ndr, name, r);
    1946           0 : }
    1947             : 
    1948           0 : _PUBLIC_ void ndr_print_fsctl_pipe_wait(struct ndr_print *ndr, const char *name, const struct fsctl_pipe_wait *r)
    1949             : {
    1950           0 :         ndr_print_struct(ndr, name, "fsctl_pipe_wait");
    1951           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1952           0 :         ndr->depth++;
    1953           0 :         ndr_print_hyper(ndr, "timeout", r->timeout);
    1954           0 :         ndr_print_uint32(ndr, "pipe_name_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * strlen_m(r->pipe_name):r->pipe_name_len);
    1955           0 :         ndr_print_uint8(ndr, "timeout_specified", r->timeout_specified);
    1956           0 :         ndr_print_uint8(ndr, "padding", r->padding);
    1957           0 :         ndr_print_string(ndr, "pipe_name", r->pipe_name);
    1958           0 :         ndr->depth--;
    1959             : }
    1960             : 
    1961             : #ifndef SKIP_NDR_TABLE_fsctl
    1962             : static const struct ndr_interface_public_struct fsctl_public_structs[] = {
    1963             :         {
    1964             :                 .name = "fsctl_pipe_wait",
    1965             :                 .struct_size = sizeof(struct fsctl_pipe_wait ),
    1966             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsctl_pipe_wait,
    1967             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsctl_pipe_wait,
    1968             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsctl_pipe_wait,
    1969             :         },
    1970             :         { .name = NULL }
    1971             : };
    1972             : 
    1973             : static const struct ndr_interface_call fsctl_calls[] = {
    1974             :         { .name = NULL }
    1975             : };
    1976             : 
    1977             : static const char * const fsctl_endpoint_strings[] = {
    1978             :         "ncacn_np:[\\pipe\\fsctl]", 
    1979             : };
    1980             : 
    1981             : static const struct ndr_interface_string_array fsctl_endpoints = {
    1982             :         .count  = 1,
    1983             :         .names  = fsctl_endpoint_strings
    1984             : };
    1985             : 
    1986             : static const char * const fsctl_authservice_strings[] = {
    1987             :         "host", 
    1988             : };
    1989             : 
    1990             : static const struct ndr_interface_string_array fsctl_authservices = {
    1991             :         .count  = 1,
    1992             :         .names  = fsctl_authservice_strings
    1993             : };
    1994             : 
    1995             : 
    1996             : const struct ndr_interface_table ndr_table_fsctl = {
    1997             :         .name           = "fsctl",
    1998             :         .num_calls      = 0,
    1999             :         .calls          = fsctl_calls,
    2000             :         .num_public_structs     = 1,
    2001             :         .public_structs         = fsctl_public_structs,
    2002             :         .endpoints      = &fsctl_endpoints,
    2003             :         .authservices   = &fsctl_authservices
    2004             : };
    2005             : 
    2006             : #endif /* SKIP_NDR_TABLE_fsctl */

Generated by: LCOV version 1.14