LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_dnsp.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 775 1159 66.9 %
Date: 2024-04-21 15:09:00 Functions: 48 69 69.6 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_dnsp.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_misc.h"
       7       32690 : _PUBLIC_ enum ndr_err_code ndr_push_dns_record_type(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum dns_record_type r)
       8             : {
       9       32690 :         NDR_CHECK(ndr_push_enum_uint16(ndr, NDR_SCALARS, r));
      10       30790 :         return NDR_ERR_SUCCESS;
      11             : }
      12             : 
      13       51751 : _PUBLIC_ enum ndr_err_code ndr_pull_dns_record_type(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum dns_record_type *r)
      14             : {
      15          39 :         uint16_t v;
      16       51751 :         NDR_CHECK(ndr_pull_enum_uint16(ndr, NDR_SCALARS, &v));
      17       51751 :         *r = v;
      18       51751 :         return NDR_ERR_SUCCESS;
      19             : }
      20             : 
      21          67 : _PUBLIC_ void ndr_print_dns_record_type(struct ndr_print *ndr, const char *name, enum dns_record_type r)
      22             : {
      23          67 :         const char *val = NULL;
      24             : 
      25          67 :         switch (r) {
      26           0 :                 case DNS_TYPE_TOMBSTONE: val = "DNS_TYPE_TOMBSTONE"; break;
      27          26 :                 case DNS_TYPE_A: val = "DNS_TYPE_A"; break;
      28           0 :                 case DNS_TYPE_NS: val = "DNS_TYPE_NS"; break;
      29           0 :                 case DNS_TYPE_MD: val = "DNS_TYPE_MD"; break;
      30           0 :                 case DNS_TYPE_MF: val = "DNS_TYPE_MF"; break;
      31           0 :                 case DNS_TYPE_CNAME: val = "DNS_TYPE_CNAME"; break;
      32           0 :                 case DNS_TYPE_SOA: val = "DNS_TYPE_SOA"; break;
      33           0 :                 case DNS_TYPE_MB: val = "DNS_TYPE_MB"; break;
      34           0 :                 case DNS_TYPE_MG: val = "DNS_TYPE_MG"; break;
      35           0 :                 case DNS_TYPE_MR: val = "DNS_TYPE_MR"; break;
      36           0 :                 case DNS_TYPE_NULL: val = "DNS_TYPE_NULL"; break;
      37           0 :                 case DNS_TYPE_WKS: val = "DNS_TYPE_WKS"; break;
      38          13 :                 case DNS_TYPE_PTR: val = "DNS_TYPE_PTR"; break;
      39           0 :                 case DNS_TYPE_HINFO: val = "DNS_TYPE_HINFO"; break;
      40           0 :                 case DNS_TYPE_MINFO: val = "DNS_TYPE_MINFO"; break;
      41          15 :                 case DNS_TYPE_MX: val = "DNS_TYPE_MX"; break;
      42           0 :                 case DNS_TYPE_TXT: val = "DNS_TYPE_TXT"; break;
      43           0 :                 case DNS_TYPE_RP: val = "DNS_TYPE_RP"; break;
      44           0 :                 case DNS_TYPE_AFSDB: val = "DNS_TYPE_AFSDB"; break;
      45           0 :                 case DNS_TYPE_X25: val = "DNS_TYPE_X25"; break;
      46           0 :                 case DNS_TYPE_ISDN: val = "DNS_TYPE_ISDN"; break;
      47           0 :                 case DNS_TYPE_RT: val = "DNS_TYPE_RT"; break;
      48           0 :                 case DNS_TYPE_SIG: val = "DNS_TYPE_SIG"; break;
      49           0 :                 case DNS_TYPE_KEY: val = "DNS_TYPE_KEY"; break;
      50          13 :                 case DNS_TYPE_AAAA: val = "DNS_TYPE_AAAA"; break;
      51           0 :                 case DNS_TYPE_LOC: val = "DNS_TYPE_LOC"; break;
      52           0 :                 case DNS_TYPE_NXT: val = "DNS_TYPE_NXT"; break;
      53           0 :                 case DNS_TYPE_SRV: val = "DNS_TYPE_SRV"; break;
      54           0 :                 case DNS_TYPE_ATMA: val = "DNS_TYPE_ATMA"; break;
      55           0 :                 case DNS_TYPE_NAPTR: val = "DNS_TYPE_NAPTR"; break;
      56           0 :                 case DNS_TYPE_CERT: val = "DNS_TYPE_CERT"; break;
      57           0 :                 case DNS_TYPE_DNAME: val = "DNS_TYPE_DNAME"; break;
      58           0 :                 case DNS_TYPE_DS: val = "DNS_TYPE_DS"; break;
      59           0 :                 case DNS_TYPE_SSHFP: val = "DNS_TYPE_SSHFP"; break;
      60           0 :                 case DNS_TYPE_IPSECKEY: val = "DNS_TYPE_IPSECKEY"; break;
      61           0 :                 case DNS_TYPE_RRSIG: val = "DNS_TYPE_RRSIG"; break;
      62           0 :                 case DNS_TYPE_NSEC: val = "DNS_TYPE_NSEC"; break;
      63           0 :                 case DNS_TYPE_DNSKEY: val = "DNS_TYPE_DNSKEY"; break;
      64           0 :                 case DNS_TYPE_DHCID: val = "DNS_TYPE_DHCID"; break;
      65           0 :                 case DNS_TYPE_NSEC3: val = "DNS_TYPE_NSEC3"; break;
      66           0 :                 case DNS_TYPE_NSEC3PARAM: val = "DNS_TYPE_NSEC3PARAM"; break;
      67           0 :                 case DNS_TYPE_TLSA: val = "DNS_TYPE_TLSA"; break;
      68           0 :                 case DNS_TYPE_CDS: val = "DNS_TYPE_CDS"; break;
      69           0 :                 case DNS_TYPE_CDNSKEY: val = "DNS_TYPE_CDNSKEY"; break;
      70           0 :                 case DNS_TYPE_SVCB: val = "DNS_TYPE_SVCB"; break;
      71           0 :                 case DNS_TYPE_HTTPS: val = "DNS_TYPE_HTTPS"; break;
      72           0 :                 case DNS_TYPE_ALL: val = "DNS_TYPE_ALL"; break;
      73           0 :                 case DNS_TYPE_URI: val = "DNS_TYPE_URI"; break;
      74           0 :                 case DNS_TYPE_CAA: val = "DNS_TYPE_CAA"; break;
      75           0 :                 case DNS_TYPE_WINS: val = "DNS_TYPE_WINS"; break;
      76           0 :                 case DNS_TYPE_WINSR: val = "DNS_TYPE_WINSR"; break;
      77             :         }
      78          67 :         ndr_print_enum(ndr, name, "ENUM", val, r);
      79          67 : }
      80             : 
      81           0 : static enum ndr_err_code ndr_push_dns_rpc_node_flags(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
      82             : {
      83           0 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
      84           0 :         return NDR_ERR_SUCCESS;
      85             : }
      86             : 
      87           0 : static enum ndr_err_code ndr_pull_dns_rpc_node_flags(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
      88             : {
      89           0 :         uint32_t v;
      90           0 :         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
      91           0 :         *r = v;
      92           0 :         return NDR_ERR_SUCCESS;
      93             : }
      94             : 
      95           0 : _PUBLIC_ void ndr_print_dns_rpc_node_flags(struct ndr_print *ndr, const char *name, uint32_t r)
      96             : {
      97           0 :         ndr_print_uint32(ndr, name, r);
      98           0 :         ndr->depth++;
      99           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_SUPPRESS_NOTIFY", DNS_RPC_FLAG_SUPPRESS_NOTIFY, r);
     100           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_AGING_ON", DNS_RPC_FLAG_AGING_ON, r);
     101           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_OPEN_ACL", DNS_RPC_FLAG_OPEN_ACL, r);
     102           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_RECORD_WIRE_FORMAT", DNS_RPC_FLAG_RECORD_WIRE_FORMAT, r);
     103           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_SUPPRESS_RECORD_UPDATE_PTR", DNS_RPC_FLAG_SUPPRESS_RECORD_UPDATE_PTR, r);
     104           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_NODE_COMPLETE", DNS_RPC_FLAG_NODE_COMPLETE, r);
     105           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_NODE_STICKY", DNS_RPC_FLAG_NODE_STICKY, r);
     106           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_RECORD_CREATE_PTR", DNS_RPC_FLAG_RECORD_CREATE_PTR, r);
     107           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_RECORD_TTL_CHANGE", DNS_RPC_FLAG_RECORD_TTL_CHANGE, r);
     108           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_RECORD_DEFAULT_TTL", DNS_RPC_FLAG_RECORD_DEFAULT_TTL, r);
     109           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_ZONE_DELEGATION", DNS_RPC_FLAG_ZONE_DELEGATION, r);
     110           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_AUTH_ZONE_ROOT", DNS_RPC_FLAG_AUTH_ZONE_ROOT, r);
     111           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_ZONE_ROOT", DNS_RPC_FLAG_ZONE_ROOT, r);
     112           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "DNS_RPC_FLAG_CACHE_DATA", DNS_RPC_FLAG_CACHE_DATA, r);
     113           0 :         ndr->depth--;
     114           0 : }
     115             : 
     116       24180 : static enum ndr_err_code ndr_push_dns_record_rank(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum dns_record_rank r)
     117             : {
     118       24180 :         NDR_CHECK(ndr_push_enum_uint8(ndr, NDR_SCALARS, r));
     119       22280 :         return NDR_ERR_SUCCESS;
     120             : }
     121             : 
     122       44841 : static enum ndr_err_code ndr_pull_dns_record_rank(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum dns_record_rank *r)
     123             : {
     124          39 :         uint8_t v;
     125       44841 :         NDR_CHECK(ndr_pull_enum_uint8(ndr, NDR_SCALARS, &v));
     126       44841 :         *r = v;
     127       44841 :         return NDR_ERR_SUCCESS;
     128             : }
     129             : 
     130          67 : _PUBLIC_ void ndr_print_dns_record_rank(struct ndr_print *ndr, const char *name, enum dns_record_rank r)
     131             : {
     132          67 :         const char *val = NULL;
     133             : 
     134          67 :         switch (r) {
     135           0 :                 case DNS_RANK_NONE: val = "DNS_RANK_NONE"; break;
     136           0 :                 case DNS_RANK_CACHE_BIT: val = "DNS_RANK_CACHE_BIT"; break;
     137           0 :                 case DNS_RANK_ROOT_HINT: val = "DNS_RANK_ROOT_HINT"; break;
     138           0 :                 case DNS_RANK_OUTSIDE_GLUE: val = "DNS_RANK_OUTSIDE_GLUE"; break;
     139           0 :                 case DNS_RANK_CACHE_NA_ADDITIONAL: val = "DNS_RANK_CACHE_NA_ADDITIONAL"; break;
     140           0 :                 case DNS_RANK_CACHE_NA_AUTHORITY: val = "DNS_RANK_CACHE_NA_AUTHORITY"; break;
     141           0 :                 case DNS_RANK_CACHE_A_ADDITIONAL: val = "DNS_RANK_CACHE_A_ADDITIONAL"; break;
     142           0 :                 case DNS_RANK_CACHE_NA_ANSWER: val = "DNS_RANK_CACHE_NA_ANSWER"; break;
     143           0 :                 case DNS_RANK_CACHE_A_AUTHORITY: val = "DNS_RANK_CACHE_A_AUTHORITY"; break;
     144           0 :                 case DNS_RANK_GLUE: val = "DNS_RANK_GLUE"; break;
     145           0 :                 case DNS_RANK_NS_GLUE: val = "DNS_RANK_NS_GLUE"; break;
     146           0 :                 case DNS_RANK_CACHE_A_ANSWER: val = "DNS_RANK_CACHE_A_ANSWER"; break;
     147          67 :                 case DNS_RANK_ZONE: val = "DNS_RANK_ZONE"; break;
     148             :         }
     149          67 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     150          67 : }
     151             : 
     152        1562 : static enum ndr_err_code ndr_push_dns_zone_type(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum dns_zone_type r)
     153             : {
     154        1562 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
     155        1436 :         return NDR_ERR_SUCCESS;
     156             : }
     157             : 
     158        8561 : static enum ndr_err_code ndr_pull_dns_zone_type(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum dns_zone_type *r)
     159             : {
     160          19 :         uint32_t v;
     161        8561 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
     162        8561 :         *r = v;
     163        8561 :         return NDR_ERR_SUCCESS;
     164             : }
     165             : 
     166           0 : _PUBLIC_ void ndr_print_dns_zone_type(struct ndr_print *ndr, const char *name, enum dns_zone_type r)
     167             : {
     168           0 :         const char *val = NULL;
     169             : 
     170           0 :         switch (r) {
     171           0 :                 case DNS_ZONE_TYPE_CACHE: val = "DNS_ZONE_TYPE_CACHE"; break;
     172           0 :                 case DNS_ZONE_TYPE_PRIMARY: val = "DNS_ZONE_TYPE_PRIMARY"; break;
     173           0 :                 case DNS_ZONE_TYPE_SECONDARY: val = "DNS_ZONE_TYPE_SECONDARY"; break;
     174           0 :                 case DNS_ZONE_TYPE_STUB: val = "DNS_ZONE_TYPE_STUB"; break;
     175           0 :                 case DNS_ZONE_TYPE_FORWARDER: val = "DNS_ZONE_TYPE_FORWARDER"; break;
     176           0 :                 case DNS_ZONE_TYPE_SECONDARY_CACHE: val = "DNS_ZONE_TYPE_SECONDARY_CACHE"; break;
     177             :         }
     178           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     179           0 : }
     180             : 
     181        2638 : _PUBLIC_ enum ndr_err_code ndr_push_dns_zone_update(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum dns_zone_update r)
     182             : {
     183        2638 :         NDR_CHECK(ndr_push_enum_uint8(ndr, NDR_SCALARS, r));
     184        2512 :         return NDR_ERR_SUCCESS;
     185             : }
     186             : 
     187        9015 : _PUBLIC_ enum ndr_err_code ndr_pull_dns_zone_update(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum dns_zone_update *r)
     188             : {
     189          19 :         uint8_t v;
     190        9015 :         NDR_CHECK(ndr_pull_enum_uint8(ndr, NDR_SCALARS, &v));
     191        9015 :         *r = v;
     192        9015 :         return NDR_ERR_SUCCESS;
     193             : }
     194             : 
     195           0 : _PUBLIC_ void ndr_print_dns_zone_update(struct ndr_print *ndr, const char *name, enum dns_zone_update r)
     196             : {
     197           0 :         const char *val = NULL;
     198             : 
     199           0 :         switch (r) {
     200           0 :                 case DNS_ZONE_UPDATE_OFF: val = "DNS_ZONE_UPDATE_OFF"; break;
     201           0 :                 case DNS_ZONE_UPDATE_UNSECURE: val = "DNS_ZONE_UPDATE_UNSECURE"; break;
     202           0 :                 case DNS_ZONE_UPDATE_SECURE: val = "DNS_ZONE_UPDATE_SECURE"; break;
     203             :         }
     204           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     205           0 : }
     206             : 
     207        6287 : static enum ndr_err_code ndr_push_dns_property_id(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum dns_property_id r)
     208             : {
     209        6287 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
     210        5840 :         return NDR_ERR_SUCCESS;
     211             : }
     212             : 
     213       59955 : static enum ndr_err_code ndr_pull_dns_property_id(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum dns_property_id *r)
     214             : {
     215         142 :         uint32_t v;
     216       59955 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
     217       59955 :         *r = v;
     218       59955 :         return NDR_ERR_SUCCESS;
     219             : }
     220             : 
     221           7 : _PUBLIC_ void ndr_print_dns_property_id(struct ndr_print *ndr, const char *name, enum dns_property_id r)
     222             : {
     223           7 :         const char *val = NULL;
     224             : 
     225           7 :         switch (r) {
     226           0 :                 case DSPROPERTY_ZONE_EMPTY: val = "DSPROPERTY_ZONE_EMPTY"; break;
     227           0 :                 case DSPROPERTY_ZONE_TYPE: val = "DSPROPERTY_ZONE_TYPE"; break;
     228           0 :                 case DSPROPERTY_ZONE_ALLOW_UPDATE: val = "DSPROPERTY_ZONE_ALLOW_UPDATE"; break;
     229           0 :                 case DSPROPERTY_ZONE_SECURE_TIME: val = "DSPROPERTY_ZONE_SECURE_TIME"; break;
     230           0 :                 case DSPROPERTY_ZONE_NOREFRESH_INTERVAL: val = "DSPROPERTY_ZONE_NOREFRESH_INTERVAL"; break;
     231           0 :                 case DSPROPERTY_ZONE_SCAVENGING_SERVERS: val = "DSPROPERTY_ZONE_SCAVENGING_SERVERS"; break;
     232           0 :                 case DSPROPERTY_ZONE_AGING_ENABLED_TIME: val = "DSPROPERTY_ZONE_AGING_ENABLED_TIME"; break;
     233           0 :                 case DSPROPERTY_ZONE_REFRESH_INTERVAL: val = "DSPROPERTY_ZONE_REFRESH_INTERVAL"; break;
     234           0 :                 case DSPROPERTY_ZONE_AGING_STATE: val = "DSPROPERTY_ZONE_AGING_STATE"; break;
     235           2 :                 case DSPROPERTY_ZONE_DELETED_FROM_HOSTNAME: val = "DSPROPERTY_ZONE_DELETED_FROM_HOSTNAME"; break;
     236           2 :                 case DSPROPERTY_ZONE_MASTER_SERVERS: val = "DSPROPERTY_ZONE_MASTER_SERVERS"; break;
     237           0 :                 case DSPROPERTY_ZONE_AUTO_NS_SERVERS: val = "DSPROPERTY_ZONE_AUTO_NS_SERVERS"; break;
     238           0 :                 case DSPROPERTY_ZONE_DCPROMO_CONVERT: val = "DSPROPERTY_ZONE_DCPROMO_CONVERT"; break;
     239           0 :                 case DSPROPERTY_ZONE_SCAVENGING_SERVERS_DA: val = "DSPROPERTY_ZONE_SCAVENGING_SERVERS_DA"; break;
     240           2 :                 case DSPROPERTY_ZONE_MASTER_SERVERS_DA: val = "DSPROPERTY_ZONE_MASTER_SERVERS_DA"; break;
     241           1 :                 case DSPROPERTY_ZONE_NS_SERVERS_DA: val = "DSPROPERTY_ZONE_NS_SERVERS_DA"; break;
     242           0 :                 case DSPROPERTY_ZONE_NODE_DBFLAGS: val = "DSPROPERTY_ZONE_NODE_DBFLAGS"; break;
     243             :         }
     244           7 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     245           7 : }
     246             : 
     247           0 : static enum ndr_err_code ndr_push_dns_dcpromo_flag(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum dns_dcpromo_flag r)
     248             : {
     249           0 :         NDR_CHECK(ndr_push_enum_uint8(ndr, NDR_SCALARS, r));
     250           0 :         return NDR_ERR_SUCCESS;
     251             : }
     252             : 
     253           0 : static enum ndr_err_code ndr_pull_dns_dcpromo_flag(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum dns_dcpromo_flag *r)
     254             : {
     255           0 :         uint8_t v;
     256           0 :         NDR_CHECK(ndr_pull_enum_uint8(ndr, NDR_SCALARS, &v));
     257           0 :         *r = v;
     258           0 :         return NDR_ERR_SUCCESS;
     259             : }
     260             : 
     261           0 : _PUBLIC_ void ndr_print_dns_dcpromo_flag(struct ndr_print *ndr, const char *name, enum dns_dcpromo_flag r)
     262             : {
     263           0 :         const char *val = NULL;
     264             : 
     265           0 :         switch (r) {
     266           0 :                 case DCPROMO_CONVERT_NONE: val = "DCPROMO_CONVERT_NONE"; break;
     267           0 :                 case DCPROMO_CONVERT_DOMAIN: val = "DCPROMO_CONVERT_DOMAIN"; break;
     268           0 :                 case DCPROMO_CONVERT_FOREST: val = "DCPROMO_CONVERT_FOREST"; break;
     269             :         }
     270           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     271           0 : }
     272             : 
     273        8872 : _PUBLIC_ enum ndr_err_code ndr_push_dnsp_soa(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_soa *r)
     274             : {
     275        8872 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     276        8872 :         if (ndr_flags & NDR_SCALARS) {
     277        8872 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     278        8872 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->serial));
     279        8872 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->refresh));
     280        8872 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->retry));
     281        8872 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->expire));
     282        8872 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->minimum));
     283        8872 :                 NDR_CHECK(ndr_push_dnsp_name(ndr, NDR_SCALARS, r->mname));
     284        8872 :                 NDR_CHECK(ndr_push_dnsp_name(ndr, NDR_SCALARS, r->rname));
     285        8872 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     286             :         }
     287        8872 :         if (ndr_flags & NDR_BUFFERS) {
     288          90 :         }
     289        8872 :         return NDR_ERR_SUCCESS;
     290             : }
     291             : 
     292        6965 : _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_soa(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_soa *r)
     293             : {
     294        6965 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     295        6965 :         if (ndr_flags & NDR_SCALARS) {
     296        6965 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     297        6965 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->serial));
     298        6965 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->refresh));
     299        6965 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->retry));
     300        6965 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->expire));
     301        6965 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->minimum));
     302        6965 :                 NDR_CHECK(ndr_pull_dnsp_name(ndr, NDR_SCALARS, &r->mname));
     303        6965 :                 NDR_CHECK(ndr_pull_dnsp_name(ndr, NDR_SCALARS, &r->rname));
     304        6965 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     305             :         }
     306        6965 :         if (ndr_flags & NDR_BUFFERS) {
     307           5 :         }
     308        6965 :         return NDR_ERR_SUCCESS;
     309             : }
     310             : 
     311           0 : static void ndr_print_flags_dnsp_soa(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct dnsp_soa *r)
     312             : {
     313           0 :         ndr_print_dnsp_soa(ndr, name, r);
     314           0 : }
     315             : 
     316           0 : _PUBLIC_ void ndr_print_dnsp_soa(struct ndr_print *ndr, const char *name, const struct dnsp_soa *r)
     317             : {
     318           0 :         ndr_print_struct(ndr, name, "dnsp_soa");
     319           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     320           0 :         ndr->depth++;
     321           0 :         ndr_print_uint32(ndr, "serial", r->serial);
     322           0 :         ndr_print_uint32(ndr, "refresh", r->refresh);
     323           0 :         ndr_print_uint32(ndr, "retry", r->retry);
     324           0 :         ndr_print_uint32(ndr, "expire", r->expire);
     325           0 :         ndr_print_uint32(ndr, "minimum", r->minimum);
     326           0 :         ndr_print_dnsp_name(ndr, "mname", r->mname);
     327           0 :         ndr_print_dnsp_name(ndr, "rname", r->rname);
     328           0 :         ndr->depth--;
     329             : }
     330             : 
     331         444 : _PUBLIC_ enum ndr_err_code ndr_push_dnsp_mx(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_mx *r)
     332             : {
     333         444 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     334         444 :         if (ndr_flags & NDR_SCALARS) {
     335         444 :                 NDR_CHECK(ndr_push_align(ndr, 2));
     336         444 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->wPriority));
     337         444 :                 NDR_CHECK(ndr_push_dnsp_name(ndr, NDR_SCALARS, r->nameTarget));
     338         444 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 2));
     339             :         }
     340         444 :         if (ndr_flags & NDR_BUFFERS) {
     341           2 :         }
     342         444 :         return NDR_ERR_SUCCESS;
     343             : }
     344             : 
     345        1196 : _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_mx(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_mx *r)
     346             : {
     347        1196 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     348        1196 :         if (ndr_flags & NDR_SCALARS) {
     349        1196 :                 NDR_CHECK(ndr_pull_align(ndr, 2));
     350        1196 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->wPriority));
     351        1196 :                 NDR_CHECK(ndr_pull_dnsp_name(ndr, NDR_SCALARS, &r->nameTarget));
     352        1196 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
     353             :         }
     354        1196 :         if (ndr_flags & NDR_BUFFERS) {
     355           2 :         }
     356        1196 :         return NDR_ERR_SUCCESS;
     357             : }
     358             : 
     359           0 : static void ndr_print_flags_dnsp_mx(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct dnsp_mx *r)
     360             : {
     361           0 :         ndr_print_dnsp_mx(ndr, name, r);
     362           0 : }
     363             : 
     364          15 : _PUBLIC_ void ndr_print_dnsp_mx(struct ndr_print *ndr, const char *name, const struct dnsp_mx *r)
     365             : {
     366          15 :         ndr_print_struct(ndr, name, "dnsp_mx");
     367          15 :         if (r == NULL) { ndr_print_null(ndr); return; }
     368          15 :         ndr->depth++;
     369          15 :         ndr_print_uint16(ndr, "wPriority", r->wPriority);
     370          15 :         ndr_print_dnsp_name(ndr, "nameTarget", r->nameTarget);
     371          15 :         ndr->depth--;
     372             : }
     373             : 
     374           0 : _PUBLIC_ enum ndr_err_code ndr_push_dnsp_hinfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_hinfo *r)
     375             : {
     376           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     377           0 :         if (ndr_flags & NDR_SCALARS) {
     378           0 :                 NDR_CHECK(ndr_push_align(ndr, 1));
     379           0 :                 NDR_CHECK(ndr_push_dnsp_string(ndr, NDR_SCALARS, r->cpu));
     380           0 :                 NDR_CHECK(ndr_push_dnsp_string(ndr, NDR_SCALARS, r->os));
     381           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 1));
     382             :         }
     383           0 :         if (ndr_flags & NDR_BUFFERS) {
     384           0 :         }
     385           0 :         return NDR_ERR_SUCCESS;
     386             : }
     387             : 
     388           0 : _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_hinfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_hinfo *r)
     389             : {
     390           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     391           0 :         if (ndr_flags & NDR_SCALARS) {
     392           0 :                 NDR_CHECK(ndr_pull_align(ndr, 1));
     393           0 :                 NDR_CHECK(ndr_pull_dnsp_string(ndr, NDR_SCALARS, &r->cpu));
     394           0 :                 NDR_CHECK(ndr_pull_dnsp_string(ndr, NDR_SCALARS, &r->os));
     395           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
     396             :         }
     397           0 :         if (ndr_flags & NDR_BUFFERS) {
     398           0 :         }
     399           0 :         return NDR_ERR_SUCCESS;
     400             : }
     401             : 
     402           0 : static void ndr_print_flags_dnsp_hinfo(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct dnsp_hinfo *r)
     403             : {
     404           0 :         ndr_print_dnsp_hinfo(ndr, name, r);
     405           0 : }
     406             : 
     407           0 : _PUBLIC_ void ndr_print_dnsp_hinfo(struct ndr_print *ndr, const char *name, const struct dnsp_hinfo *r)
     408             : {
     409           0 :         ndr_print_struct(ndr, name, "dnsp_hinfo");
     410           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     411           0 :         ndr->depth++;
     412           0 :         ndr_print_dnsp_string(ndr, "cpu", r->cpu);
     413           0 :         ndr_print_dnsp_string(ndr, "os", r->os);
     414           0 :         ndr->depth--;
     415             : }
     416             : 
     417        7206 : _PUBLIC_ enum ndr_err_code ndr_push_dnsp_srv(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_srv *r)
     418             : {
     419        7206 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     420        7206 :         if (ndr_flags & NDR_SCALARS) {
     421        7206 :                 NDR_CHECK(ndr_push_align(ndr, 2));
     422        7206 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->wPriority));
     423        7206 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->wWeight));
     424        7206 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->wPort));
     425        7206 :                 NDR_CHECK(ndr_push_dnsp_name(ndr, NDR_SCALARS, r->nameTarget));
     426        7206 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 2));
     427             :         }
     428        7206 :         if (ndr_flags & NDR_BUFFERS) {
     429         882 :         }
     430        7206 :         return NDR_ERR_SUCCESS;
     431             : }
     432             : 
     433        5733 : _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_srv(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_srv *r)
     434             : {
     435        5733 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     436        5733 :         if (ndr_flags & NDR_SCALARS) {
     437        5733 :                 NDR_CHECK(ndr_pull_align(ndr, 2));
     438        5733 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->wPriority));
     439        5733 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->wWeight));
     440        5733 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->wPort));
     441        5733 :                 NDR_CHECK(ndr_pull_dnsp_name(ndr, NDR_SCALARS, &r->nameTarget));
     442        5733 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
     443             :         }
     444        5733 :         if (ndr_flags & NDR_BUFFERS) {
     445          21 :         }
     446        5733 :         return NDR_ERR_SUCCESS;
     447             : }
     448             : 
     449           0 : static void ndr_print_flags_dnsp_srv(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct dnsp_srv *r)
     450             : {
     451           0 :         ndr_print_dnsp_srv(ndr, name, r);
     452           0 : }
     453             : 
     454           0 : _PUBLIC_ void ndr_print_dnsp_srv(struct ndr_print *ndr, const char *name, const struct dnsp_srv *r)
     455             : {
     456           0 :         ndr_print_struct(ndr, name, "dnsp_srv");
     457           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     458           0 :         ndr->depth++;
     459           0 :         ndr_print_uint16(ndr, "wPriority", r->wPriority);
     460           0 :         ndr_print_uint16(ndr, "wWeight", r->wWeight);
     461           0 :         ndr_print_uint16(ndr, "wPort", r->wPort);
     462           0 :         ndr_print_dnsp_name(ndr, "nameTarget", r->nameTarget);
     463           0 :         ndr->depth--;
     464             : }
     465             : 
     466           4 : static enum ndr_err_code ndr_push_dnsp_ip4_array(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_ip4_array *r)
     467             : {
     468           4 :         uint32_t cntr_addrArray_0;
     469           4 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     470           4 :         if (ndr_flags & NDR_SCALARS) {
     471           4 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     472           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->addrCount));
     473          12 :                 for (cntr_addrArray_0 = 0; cntr_addrArray_0 < (r->addrCount); cntr_addrArray_0++) {
     474           8 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->addrArray[cntr_addrArray_0]));
     475             :                 }
     476           4 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     477             :         }
     478           4 :         if (ndr_flags & NDR_BUFFERS) {
     479           4 :         }
     480           4 :         return NDR_ERR_SUCCESS;
     481             : }
     482             : 
     483           2 : static enum ndr_err_code ndr_pull_dnsp_ip4_array(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_ip4_array *r)
     484             : {
     485           2 :         uint32_t size_addrArray_0 = 0;
     486           2 :         uint32_t cntr_addrArray_0;
     487           2 :         TALLOC_CTX *_mem_save_addrArray_0 = NULL;
     488           2 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     489           2 :         if (ndr_flags & NDR_SCALARS) {
     490           2 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     491           2 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->addrCount));
     492           2 :                 size_addrArray_0 = r->addrCount;
     493           2 :                 NDR_PULL_ALLOC_N(ndr, r->addrArray, size_addrArray_0);
     494           2 :                 _mem_save_addrArray_0 = NDR_PULL_GET_MEM_CTX(ndr);
     495           2 :                 NDR_PULL_SET_MEM_CTX(ndr, r->addrArray, 0);
     496           6 :                 for (cntr_addrArray_0 = 0; cntr_addrArray_0 < (size_addrArray_0); cntr_addrArray_0++) {
     497           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->addrArray[cntr_addrArray_0]));
     498             :                 }
     499           2 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_addrArray_0, 0);
     500           2 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     501             :         }
     502           2 :         if (ndr_flags & NDR_BUFFERS) {
     503           2 :         }
     504           2 :         return NDR_ERR_SUCCESS;
     505             : }
     506             : 
     507           2 : _PUBLIC_ void ndr_print_dnsp_ip4_array(struct ndr_print *ndr, const char *name, const struct dnsp_ip4_array *r)
     508             : {
     509           2 :         uint32_t cntr_addrArray_0;
     510           2 :         ndr_print_struct(ndr, name, "dnsp_ip4_array");
     511           2 :         if (r == NULL) { ndr_print_null(ndr); return; }
     512           2 :         ndr->depth++;
     513           2 :         ndr_print_uint32(ndr, "addrCount", r->addrCount);
     514           2 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "addrArray", (uint32_t)(r->addrCount));
     515           2 :         ndr->depth++;
     516           6 :         for (cntr_addrArray_0 = 0; cntr_addrArray_0 < (r->addrCount); cntr_addrArray_0++) {
     517           4 :                 ndr_print_uint32(ndr, "addrArray", r->addrArray[cntr_addrArray_0]);
     518             :         }
     519           2 :         ndr->depth--;
     520           2 :         ndr->depth--;
     521             : }
     522             : 
     523          12 : static enum ndr_err_code ndr_push_dnsp_dns_addr(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_dns_addr *r)
     524             : {
     525          12 :         uint32_t cntr_unused_0;
     526          12 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     527          12 :         if (ndr_flags & NDR_SCALARS) {
     528          12 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     529          12 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->family));
     530             :                 {
     531          12 :                         libndr_flags _flags_save_uint16 = ndr->flags;
     532          12 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     533          12 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->port));
     534          12 :                         ndr->flags = _flags_save_uint16;
     535             :                 }
     536             :                 {
     537          12 :                         libndr_flags _flags_save_ipv4address = ndr->flags;
     538          12 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     539          12 :                         NDR_CHECK(ndr_push_ipv4address(ndr, NDR_SCALARS, r->ipv4));
     540          12 :                         ndr->flags = _flags_save_ipv4address;
     541             :                 }
     542          12 :                 NDR_CHECK(ndr_push_ipv6address(ndr, NDR_SCALARS, r->ipv6));
     543          12 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->pad, 8));
     544         108 :                 for (cntr_unused_0 = 0; cntr_unused_0 < (8); cntr_unused_0++) {
     545          96 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unused[cntr_unused_0]));
     546             :                 }
     547          12 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     548             :         }
     549          12 :         if (ndr_flags & NDR_BUFFERS) {
     550          12 :         }
     551          12 :         return NDR_ERR_SUCCESS;
     552             : }
     553             : 
     554           6 : static enum ndr_err_code ndr_pull_dnsp_dns_addr(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_dns_addr *r)
     555             : {
     556           6 :         uint32_t size_pad_0 = 0;
     557           6 :         uint32_t size_unused_0 = 0;
     558           6 :         uint32_t cntr_unused_0;
     559           6 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     560           6 :         if (ndr_flags & NDR_SCALARS) {
     561           6 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     562           6 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->family));
     563             :                 {
     564           6 :                         libndr_flags _flags_save_uint16 = ndr->flags;
     565           6 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     566           6 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->port));
     567           6 :                         ndr->flags = _flags_save_uint16;
     568             :                 }
     569             :                 {
     570           6 :                         libndr_flags _flags_save_ipv4address = ndr->flags;
     571           6 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     572           6 :                         NDR_CHECK(ndr_pull_ipv4address(ndr, NDR_SCALARS, &r->ipv4));
     573           6 :                         ndr->flags = _flags_save_ipv4address;
     574             :                 }
     575           6 :                 NDR_CHECK(ndr_pull_ipv6address(ndr, NDR_SCALARS, &r->ipv6));
     576           6 :                 size_pad_0 = 8;
     577           6 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->pad, size_pad_0));
     578          54 :                 size_unused_0 = 8;
     579          54 :                 for (cntr_unused_0 = 0; cntr_unused_0 < (size_unused_0); cntr_unused_0++) {
     580          48 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unused[cntr_unused_0]));
     581             :                 }
     582           6 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     583             :         }
     584           6 :         if (ndr_flags & NDR_BUFFERS) {
     585           6 :         }
     586           6 :         return NDR_ERR_SUCCESS;
     587             : }
     588             : 
     589           6 : _PUBLIC_ void ndr_print_dnsp_dns_addr(struct ndr_print *ndr, const char *name, const struct dnsp_dns_addr *r)
     590             : {
     591           6 :         uint32_t cntr_unused_0;
     592           6 :         ndr_print_struct(ndr, name, "dnsp_dns_addr");
     593           6 :         if (r == NULL) { ndr_print_null(ndr); return; }
     594           6 :         ndr->depth++;
     595           6 :         ndr_print_uint16(ndr, "family", r->family);
     596             :         {
     597           6 :                 libndr_flags _flags_save_uint16 = ndr->flags;
     598           6 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     599           6 :                 ndr_print_uint16(ndr, "port", r->port);
     600           6 :                 ndr->flags = _flags_save_uint16;
     601             :         }
     602             :         {
     603           6 :                 libndr_flags _flags_save_ipv4address = ndr->flags;
     604           6 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     605           6 :                 ndr_print_ipv4address(ndr, "ipv4", r->ipv4);
     606           6 :                 ndr->flags = _flags_save_ipv4address;
     607             :         }
     608           6 :         ndr_print_ipv6address(ndr, "ipv6", r->ipv6);
     609           6 :         ndr_print_array_uint8(ndr, "pad", r->pad, 8);
     610           6 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "unused", (uint32_t)(8));
     611           6 :         ndr->depth++;
     612          54 :         for (cntr_unused_0 = 0; cntr_unused_0 < (8); cntr_unused_0++) {
     613          48 :                 ndr_print_uint32(ndr, "unused", r->unused[cntr_unused_0]);
     614             :         }
     615           6 :         ndr->depth--;
     616           6 :         ndr->depth--;
     617             : }
     618             : 
     619           4 : _PUBLIC_ enum ndr_err_code ndr_push_dnsp_dns_addr_array(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_dns_addr_array *r)
     620             : {
     621           4 :         uint32_t cntr_AddrArray_0;
     622           4 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     623           4 :         if (ndr_flags & NDR_SCALARS) {
     624           4 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     625           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->MaxCount));
     626           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->AddrCount));
     627           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->Tag));
     628           4 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Family));
     629           4 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Reserved0));
     630           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->Flags));
     631           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->MatchFlag));
     632           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->Reserved1));
     633           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->Reserved2));
     634          16 :                 for (cntr_AddrArray_0 = 0; cntr_AddrArray_0 < (r->AddrCount); cntr_AddrArray_0++) {
     635          12 :                         NDR_CHECK(ndr_push_dnsp_dns_addr(ndr, NDR_SCALARS, &r->AddrArray[cntr_AddrArray_0]));
     636             :                 }
     637           4 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     638             :         }
     639           4 :         if (ndr_flags & NDR_BUFFERS) {
     640           4 :         }
     641           4 :         return NDR_ERR_SUCCESS;
     642             : }
     643             : 
     644           5 : _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_dns_addr_array(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_dns_addr_array *r)
     645             : {
     646           5 :         uint32_t size_AddrArray_0 = 0;
     647           2 :         uint32_t cntr_AddrArray_0;
     648           5 :         TALLOC_CTX *_mem_save_AddrArray_0 = NULL;
     649           5 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     650           5 :         if (ndr_flags & NDR_SCALARS) {
     651           5 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     652           5 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->MaxCount));
     653           5 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->AddrCount));
     654           2 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Tag));
     655           2 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Family));
     656           2 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Reserved0));
     657           2 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Flags));
     658           2 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->MatchFlag));
     659           2 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Reserved1));
     660           2 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Reserved2));
     661           2 :                 size_AddrArray_0 = r->AddrCount;
     662           2 :                 NDR_PULL_ALLOC_N(ndr, r->AddrArray, size_AddrArray_0);
     663           2 :                 _mem_save_AddrArray_0 = NDR_PULL_GET_MEM_CTX(ndr);
     664           2 :                 NDR_PULL_SET_MEM_CTX(ndr, r->AddrArray, 0);
     665           8 :                 for (cntr_AddrArray_0 = 0; cntr_AddrArray_0 < (size_AddrArray_0); cntr_AddrArray_0++) {
     666           6 :                         NDR_CHECK(ndr_pull_dnsp_dns_addr(ndr, NDR_SCALARS, &r->AddrArray[cntr_AddrArray_0]));
     667             :                 }
     668           2 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_AddrArray_0, 0);
     669           2 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     670             :         }
     671           2 :         if (ndr_flags & NDR_BUFFERS) {
     672           2 :         }
     673           2 :         return NDR_ERR_SUCCESS;
     674             : }
     675             : 
     676           0 : static void ndr_print_flags_dnsp_dns_addr_array(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct dnsp_dns_addr_array *r)
     677             : {
     678           0 :         ndr_print_dnsp_dns_addr_array(ndr, name, r);
     679           0 : }
     680             : 
     681           2 : _PUBLIC_ void ndr_print_dnsp_dns_addr_array(struct ndr_print *ndr, const char *name, const struct dnsp_dns_addr_array *r)
     682             : {
     683           2 :         uint32_t cntr_AddrArray_0;
     684           2 :         ndr_print_struct(ndr, name, "dnsp_dns_addr_array");
     685           2 :         if (r == NULL) { ndr_print_null(ndr); return; }
     686           2 :         ndr->depth++;
     687           2 :         ndr_print_uint32(ndr, "MaxCount", r->MaxCount);
     688           2 :         ndr_print_uint32(ndr, "AddrCount", r->AddrCount);
     689           2 :         ndr_print_uint32(ndr, "Tag", r->Tag);
     690           2 :         ndr_print_uint16(ndr, "Family", r->Family);
     691           2 :         ndr_print_uint16(ndr, "Reserved0", r->Reserved0);
     692           2 :         ndr_print_uint32(ndr, "Flags", r->Flags);
     693           2 :         ndr_print_uint32(ndr, "MatchFlag", r->MatchFlag);
     694           2 :         ndr_print_uint32(ndr, "Reserved1", r->Reserved1);
     695           2 :         ndr_print_uint32(ndr, "Reserved2", r->Reserved2);
     696           2 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "AddrArray", (uint32_t)(r->AddrCount));
     697           2 :         ndr->depth++;
     698           8 :         for (cntr_AddrArray_0 = 0; cntr_AddrArray_0 < (r->AddrCount); cntr_AddrArray_0++) {
     699           6 :                 ndr_print_dnsp_dns_addr(ndr, "AddrArray", &r->AddrArray[cntr_AddrArray_0]);
     700             :         }
     701           2 :         ndr->depth--;
     702           2 :         ndr->depth--;
     703             : }
     704             : 
     705           0 : static void ndr_print_flags_dnsp_string_list(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct dnsp_string_list *r)
     706             : {
     707           0 :         ndr_print_dnsp_string_list(ndr, name, r);
     708           0 : }
     709             : 
     710           0 : _PUBLIC_ size_t ndr_size_dnsp_string_list(const struct dnsp_string_list *r, libndr_flags flags)
     711             : {
     712           0 :         return ndr_size_struct(r, flags, (ndr_push_flags_fn_t)ndr_push_dnsp_string_list);
     713             : }
     714             : 
     715       48360 : static enum ndr_err_code ndr_push_dnsRecordData(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union dnsRecordData *r)
     716             : {
     717        3800 :         uint32_t level;
     718       48360 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     719       48360 :         if (ndr_flags & NDR_SCALARS) {
     720             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     721       48360 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
     722       48360 :                 NDR_CHECK(ndr_push_union_align(ndr, 4));
     723       48360 :                 switch (level) {
     724        1712 :                         case DNS_TYPE_TOMBSTONE: {
     725        1712 :                                 NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, r->EntombedTime));
     726        1660 :                         break; }
     727             : 
     728       11468 :                         case DNS_TYPE_A: {
     729             :                                 {
     730       11468 :                                         libndr_flags _flags_save_ipv4address = ndr->flags;
     731       11468 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     732       11468 :                                         NDR_CHECK(ndr_push_ipv4address(ndr, NDR_SCALARS, r->ipv4));
     733       11468 :                                         ndr->flags = _flags_save_ipv4address;
     734             :                                 }
     735       11468 :                         break; }
     736             : 
     737        8050 :                         case DNS_TYPE_NS: {
     738        8050 :                                 NDR_CHECK(ndr_push_dnsp_name(ndr, NDR_SCALARS, r->ns));
     739        6830 :                         break; }
     740             : 
     741         718 :                         case DNS_TYPE_CNAME: {
     742         718 :                                 NDR_CHECK(ndr_push_dnsp_name(ndr, NDR_SCALARS, r->cname));
     743         676 :                         break; }
     744             : 
     745        8872 :                         case DNS_TYPE_SOA: {
     746             :                                 {
     747        8872 :                                         libndr_flags _flags_save_dnsp_soa = ndr->flags;
     748        8872 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     749        8872 :                                         NDR_CHECK(ndr_push_dnsp_soa(ndr, NDR_SCALARS, &r->soa));
     750        8872 :                                         ndr->flags = _flags_save_dnsp_soa;
     751             :                                 }
     752        8872 :                         break; }
     753             : 
     754         444 :                         case DNS_TYPE_MX: {
     755             :                                 {
     756         444 :                                         libndr_flags _flags_save_dnsp_mx = ndr->flags;
     757         444 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     758         444 :                                         NDR_CHECK(ndr_push_dnsp_mx(ndr, NDR_SCALARS, &r->mx));
     759         444 :                                         ndr->flags = _flags_save_dnsp_mx;
     760             :                                 }
     761         444 :                         break; }
     762             : 
     763        5512 :                         case DNS_TYPE_TXT: {
     764        5512 :                                 NDR_CHECK(ndr_push_dnsp_string_list(ndr, NDR_SCALARS, &r->txt));
     765        5512 :                         break; }
     766             : 
     767         462 :                         case DNS_TYPE_PTR: {
     768         462 :                                 NDR_CHECK(ndr_push_dnsp_name(ndr, NDR_SCALARS, r->ptr));
     769         462 :                         break; }
     770             : 
     771           0 :                         case DNS_TYPE_HINFO: {
     772           0 :                                 NDR_CHECK(ndr_push_dnsp_hinfo(ndr, NDR_SCALARS, &r->hinfo));
     773           0 :                         break; }
     774             : 
     775        3916 :                         case DNS_TYPE_AAAA: {
     776        3916 :                                 NDR_CHECK(ndr_push_ipv6address(ndr, NDR_SCALARS, r->ipv6));
     777        3706 :                         break; }
     778             : 
     779        7206 :                         case DNS_TYPE_SRV: {
     780             :                                 {
     781        7206 :                                         libndr_flags _flags_save_dnsp_srv = ndr->flags;
     782        7206 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     783        7206 :                                         NDR_CHECK(ndr_push_dnsp_srv(ndr, NDR_SCALARS, &r->srv));
     784        7206 :                                         ndr->flags = _flags_save_dnsp_srv;
     785             :                                 }
     786        7206 :                         break; }
     787             : 
     788           0 :                         default: {
     789             :                                 {
     790           0 :                                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
     791           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     792           0 :                                         NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->data));
     793           0 :                                         ndr->flags = _flags_save_DATA_BLOB;
     794             :                                 }
     795           0 :                         break; }
     796             : 
     797             :                 }
     798             :         }
     799       44560 :         return NDR_ERR_SUCCESS;
     800             : }
     801             : 
     802       44841 : static enum ndr_err_code ndr_pull_dnsRecordData(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union dnsRecordData *r)
     803             : {
     804          39 :         uint32_t level;
     805       44841 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     806       44841 :         if (ndr_flags & NDR_SCALARS) {
     807             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     808       44841 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
     809       44841 :                 NDR_CHECK(ndr_pull_union_align(ndr, 4));
     810       44841 :                 switch (level) {
     811         195 :                         case DNS_TYPE_TOMBSTONE: {
     812         195 :                                 NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, &r->EntombedTime));
     813         195 :                         break; }
     814             : 
     815        9212 :                         case DNS_TYPE_A: {
     816             :                                 {
     817        9212 :                                         libndr_flags _flags_save_ipv4address = ndr->flags;
     818        9212 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     819        9212 :                                         NDR_CHECK(ndr_pull_ipv4address(ndr, NDR_SCALARS, &r->ipv4));
     820        9212 :                                         ndr->flags = _flags_save_ipv4address;
     821             :                                 }
     822        9212 :                         break; }
     823             : 
     824        4330 :                         case DNS_TYPE_NS: {
     825        4330 :                                 NDR_CHECK(ndr_pull_dnsp_name(ndr, NDR_SCALARS, &r->ns));
     826        4326 :                         break; }
     827             : 
     828        1267 :                         case DNS_TYPE_CNAME: {
     829        1267 :                                 NDR_CHECK(ndr_pull_dnsp_name(ndr, NDR_SCALARS, &r->cname));
     830        1266 :                         break; }
     831             : 
     832        6965 :                         case DNS_TYPE_SOA: {
     833             :                                 {
     834        6965 :                                         libndr_flags _flags_save_dnsp_soa = ndr->flags;
     835        6965 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     836        6965 :                                         NDR_CHECK(ndr_pull_dnsp_soa(ndr, NDR_SCALARS, &r->soa));
     837        6965 :                                         ndr->flags = _flags_save_dnsp_soa;
     838             :                                 }
     839        6965 :                         break; }
     840             : 
     841        1196 :                         case DNS_TYPE_MX: {
     842             :                                 {
     843        1196 :                                         libndr_flags _flags_save_dnsp_mx = ndr->flags;
     844        1196 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     845        1196 :                                         NDR_CHECK(ndr_pull_dnsp_mx(ndr, NDR_SCALARS, &r->mx));
     846        1196 :                                         ndr->flags = _flags_save_dnsp_mx;
     847             :                                 }
     848        1196 :                         break; }
     849             : 
     850        7578 :                         case DNS_TYPE_TXT: {
     851        7578 :                                 NDR_CHECK(ndr_pull_dnsp_string_list(ndr, NDR_SCALARS, &r->txt));
     852        7578 :                         break; }
     853             : 
     854        1449 :                         case DNS_TYPE_PTR: {
     855        1449 :                                 NDR_CHECK(ndr_pull_dnsp_name(ndr, NDR_SCALARS, &r->ptr));
     856        1449 :                         break; }
     857             : 
     858           0 :                         case DNS_TYPE_HINFO: {
     859           0 :                                 NDR_CHECK(ndr_pull_dnsp_hinfo(ndr, NDR_SCALARS, &r->hinfo));
     860           0 :                         break; }
     861             : 
     862        6916 :                         case DNS_TYPE_AAAA: {
     863        6916 :                                 NDR_CHECK(ndr_pull_ipv6address(ndr, NDR_SCALARS, &r->ipv6));
     864        6916 :                         break; }
     865             : 
     866        5733 :                         case DNS_TYPE_SRV: {
     867             :                                 {
     868        5733 :                                         libndr_flags _flags_save_dnsp_srv = ndr->flags;
     869        5733 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     870        5733 :                                         NDR_CHECK(ndr_pull_dnsp_srv(ndr, NDR_SCALARS, &r->srv));
     871        5733 :                                         ndr->flags = _flags_save_dnsp_srv;
     872             :                                 }
     873        5733 :                         break; }
     874             : 
     875           0 :                         default: {
     876             :                                 {
     877           0 :                                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
     878           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     879           0 :                                         NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->data));
     880           0 :                                         ndr->flags = _flags_save_DATA_BLOB;
     881             :                                 }
     882           0 :                         break; }
     883             : 
     884             :                 }
     885             :         }
     886       44802 :         return NDR_ERR_SUCCESS;
     887             : }
     888             : 
     889          67 : _PUBLIC_ void ndr_print_dnsRecordData(struct ndr_print *ndr, const char *name, const union dnsRecordData *r)
     890             : {
     891           2 :         uint32_t level;
     892          67 :         level = ndr_print_steal_switch_value(ndr, r);
     893          67 :         ndr_print_union(ndr, name, level, "dnsRecordData");
     894          67 :         switch (level) {
     895           0 :                 case DNS_TYPE_TOMBSTONE:
     896           0 :                         ndr_print_NTTIME(ndr, "EntombedTime", r->EntombedTime);
     897           0 :                 break;
     898             : 
     899          26 :                 case DNS_TYPE_A:
     900             :                         {
     901          26 :                                 libndr_flags _flags_save_ipv4address = ndr->flags;
     902          26 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     903          26 :                                 ndr_print_ipv4address(ndr, "ipv4", r->ipv4);
     904          26 :                                 ndr->flags = _flags_save_ipv4address;
     905             :                         }
     906          26 :                 break;
     907             : 
     908           0 :                 case DNS_TYPE_NS:
     909           0 :                         ndr_print_dnsp_name(ndr, "ns", r->ns);
     910           0 :                 break;
     911             : 
     912           0 :                 case DNS_TYPE_CNAME:
     913           0 :                         ndr_print_dnsp_name(ndr, "cname", r->cname);
     914           0 :                 break;
     915             : 
     916           0 :                 case DNS_TYPE_SOA:
     917             :                         {
     918           0 :                                 libndr_flags _flags_save_dnsp_soa = ndr->flags;
     919           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     920           0 :                                 ndr_print_dnsp_soa(ndr, "soa", &r->soa);
     921           0 :                                 ndr->flags = _flags_save_dnsp_soa;
     922             :                         }
     923           0 :                 break;
     924             : 
     925          15 :                 case DNS_TYPE_MX:
     926             :                         {
     927          15 :                                 libndr_flags _flags_save_dnsp_mx = ndr->flags;
     928          15 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     929          15 :                                 ndr_print_dnsp_mx(ndr, "mx", &r->mx);
     930          15 :                                 ndr->flags = _flags_save_dnsp_mx;
     931             :                         }
     932          15 :                 break;
     933             : 
     934           0 :                 case DNS_TYPE_TXT:
     935           0 :                         ndr_print_dnsp_string_list(ndr, "txt", &r->txt);
     936           0 :                 break;
     937             : 
     938          13 :                 case DNS_TYPE_PTR:
     939          13 :                         ndr_print_dnsp_name(ndr, "ptr", r->ptr);
     940          13 :                 break;
     941             : 
     942           0 :                 case DNS_TYPE_HINFO:
     943           0 :                         ndr_print_dnsp_hinfo(ndr, "hinfo", &r->hinfo);
     944           0 :                 break;
     945             : 
     946          13 :                 case DNS_TYPE_AAAA:
     947          13 :                         ndr_print_ipv6address(ndr, "ipv6", r->ipv6);
     948          13 :                 break;
     949             : 
     950           0 :                 case DNS_TYPE_SRV:
     951             :                         {
     952           0 :                                 libndr_flags _flags_save_dnsp_srv = ndr->flags;
     953           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     954           0 :                                 ndr_print_dnsp_srv(ndr, "srv", &r->srv);
     955           0 :                                 ndr->flags = _flags_save_dnsp_srv;
     956             :                         }
     957           0 :                 break;
     958             : 
     959           0 :                 default:
     960             :                         {
     961           0 :                                 libndr_flags _flags_save_DATA_BLOB = ndr->flags;
     962           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     963           0 :                                 ndr_print_DATA_BLOB(ndr, "data", r->data);
     964           0 :                                 ndr->flags = _flags_save_DATA_BLOB;
     965             :                         }
     966           0 :                 break;
     967             : 
     968             :         }
     969          67 : }
     970             : 
     971       24180 : static size_t ndr_size_dnsRecordData(const union dnsRecordData *r, uint32_t level, libndr_flags flags)
     972             : {
     973       24180 :         return ndr_size_union(r, flags, level, (ndr_push_flags_fn_t)ndr_push_dnsRecordData);
     974             : }
     975             : 
     976       24180 : _PUBLIC_ enum ndr_err_code ndr_push_dnsp_DnssrvRpcRecord(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_DnssrvRpcRecord *r)
     977             : {
     978       24180 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     979       24180 :         if (ndr_flags & NDR_SCALARS) {
     980       24180 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     981       24180 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, ndr_size_dnsRecordData(&r->data, r->wType, ndr->flags)));
     982       24180 :                 NDR_CHECK(ndr_push_dns_record_type(ndr, NDR_SCALARS, r->wType));
     983       24180 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, 5));
     984       26080 :                 NDR_CHECK(ndr_push_dns_record_rank(ndr, NDR_SCALARS, r->rank));
     985       24180 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->flags));
     986       24180 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwSerial));
     987             :                 {
     988       24180 :                         libndr_flags _flags_save_uint32 = ndr->flags;
     989       24180 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     990       24180 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwTtlSeconds));
     991       24180 :                         ndr->flags = _flags_save_uint32;
     992             :                 }
     993       24180 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwReserved));
     994       24180 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwTimeStamp));
     995       24180 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->data, r->wType));
     996       24180 :                 NDR_CHECK(ndr_push_dnsRecordData(ndr, NDR_SCALARS, &r->data));
     997       24180 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     998             :         }
     999       24180 :         if (ndr_flags & NDR_BUFFERS) {
    1000        1900 :         }
    1001       24180 :         return NDR_ERR_SUCCESS;
    1002             : }
    1003             : 
    1004       44841 : _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_DnssrvRpcRecord(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_DnssrvRpcRecord *r)
    1005             : {
    1006       44841 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1007       44841 :         if (ndr_flags & NDR_SCALARS) {
    1008       44841 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    1009       44841 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->wDataLength));
    1010       44841 :                 NDR_CHECK(ndr_pull_dns_record_type(ndr, NDR_SCALARS, &r->wType));
    1011       44841 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->version));
    1012       44880 :                 NDR_CHECK(ndr_pull_dns_record_rank(ndr, NDR_SCALARS, &r->rank));
    1013       44841 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->flags));
    1014       44841 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwSerial));
    1015             :                 {
    1016       44841 :                         libndr_flags _flags_save_uint32 = ndr->flags;
    1017       44841 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
    1018       44841 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwTtlSeconds));
    1019       44841 :                         ndr->flags = _flags_save_uint32;
    1020             :                 }
    1021       44841 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwReserved));
    1022       44841 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwTimeStamp));
    1023       44841 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->data, r->wType));
    1024       44841 :                 NDR_CHECK(ndr_pull_dnsRecordData(ndr, NDR_SCALARS, &r->data));
    1025       44841 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1026             :         }
    1027       44841 :         if (ndr_flags & NDR_BUFFERS) {
    1028          39 :         }
    1029       44841 :         return NDR_ERR_SUCCESS;
    1030             : }
    1031             : 
    1032           2 : static void ndr_print_flags_dnsp_DnssrvRpcRecord(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct dnsp_DnssrvRpcRecord *r)
    1033             : {
    1034           2 :         ndr_print_dnsp_DnssrvRpcRecord(ndr, name, r);
    1035           2 : }
    1036             : 
    1037          67 : _PUBLIC_ void ndr_print_dnsp_DnssrvRpcRecord(struct ndr_print *ndr, const char *name, const struct dnsp_DnssrvRpcRecord *r)
    1038             : {
    1039          67 :         ndr_print_struct(ndr, name, "dnsp_DnssrvRpcRecord");
    1040          67 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1041          67 :         ndr->depth++;
    1042          67 :         ndr_print_uint16(ndr, "wDataLength", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?ndr_size_dnsRecordData(&r->data, r->wType, ndr->flags):r->wDataLength);
    1043          67 :         ndr_print_dns_record_type(ndr, "wType", r->wType);
    1044          67 :         ndr_print_uint8(ndr, "version", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?5:r->version);
    1045          67 :         ndr_print_dns_record_rank(ndr, "rank", r->rank);
    1046          67 :         ndr_print_uint16(ndr, "flags", r->flags);
    1047          67 :         ndr_print_uint32(ndr, "dwSerial", r->dwSerial);
    1048             :         {
    1049          67 :                 libndr_flags _flags_save_uint32 = ndr->flags;
    1050          67 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
    1051          67 :                 ndr_print_uint32(ndr, "dwTtlSeconds", r->dwTtlSeconds);
    1052          67 :                 ndr->flags = _flags_save_uint32;
    1053             :         }
    1054          67 :         ndr_print_uint32(ndr, "dwReserved", r->dwReserved);
    1055          67 :         ndr_print_uint32(ndr, "dwTimeStamp", r->dwTimeStamp);
    1056          67 :         ndr_print_set_switch_value(ndr, &r->data, r->wType);
    1057          67 :         ndr_print_dnsRecordData(ndr, "data", &r->data);
    1058          67 :         ndr->depth--;
    1059             : }
    1060             : 
    1061       18849 : static enum ndr_err_code ndr_push_dnsPropertyData(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union dnsPropertyData *r)
    1062             : {
    1063        1341 :         uint32_t level;
    1064       18849 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1065       18849 :         if (ndr_flags & NDR_SCALARS) {
    1066             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    1067       12562 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    1068       12562 :                 NDR_CHECK(ndr_push_union_align(ndr, 4));
    1069       12562 :                 switch (level) {
    1070          12 :                         case DSPROPERTY_ZONE_EMPTY: {
    1071          12 :                         break; }
    1072             : 
    1073        1562 :                         case DSPROPERTY_ZONE_TYPE: {
    1074        1688 :                                 NDR_CHECK(ndr_push_dns_zone_type(ndr, NDR_SCALARS, r->zone_type));
    1075        1436 :                         break; }
    1076             : 
    1077        2194 :                         case DSPROPERTY_ZONE_ALLOW_UPDATE: {
    1078        2194 :                                 NDR_CHECK(ndr_push_dns_zone_update(ndr, NDR_SCALARS, r->allow_update_flag));
    1079        2068 :                         break; }
    1080             : 
    1081        1562 :                         case DSPROPERTY_ZONE_SECURE_TIME: {
    1082        1562 :                                 NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, r->zone_secure_time));
    1083        1436 :                         break; }
    1084             : 
    1085        1774 :                         case DSPROPERTY_ZONE_NOREFRESH_INTERVAL: {
    1086        1774 :                                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->norefresh_hours));
    1087        1648 :                         break; }
    1088             : 
    1089        1770 :                         case DSPROPERTY_ZONE_REFRESH_INTERVAL: {
    1090        1770 :                                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->refresh_hours));
    1091        1644 :                         break; }
    1092             : 
    1093        2114 :                         case DSPROPERTY_ZONE_AGING_STATE: {
    1094        2114 :                                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->aging_enabled));
    1095        1988 :                         break; }
    1096             : 
    1097           0 :                         case DSPROPERTY_ZONE_SCAVENGING_SERVERS: {
    1098           0 :                                 NDR_CHECK(ndr_push_dnsp_ip4_array(ndr, NDR_SCALARS, &r->servers));
    1099           0 :                         break; }
    1100             : 
    1101        1562 :                         case DSPROPERTY_ZONE_AGING_ENABLED_TIME: {
    1102        1562 :                                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->next_scavenging_cycle_hours));
    1103        1436 :                         break; }
    1104             : 
    1105           4 :                         case DSPROPERTY_ZONE_DELETED_FROM_HOSTNAME: {
    1106             :                                 {
    1107           4 :                                         libndr_flags _flags_save_string = ndr->flags;
    1108           4 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
    1109           4 :                                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->deleted_by_hostname));
    1110           4 :                                         ndr->flags = _flags_save_string;
    1111             :                                 }
    1112           4 :                         break; }
    1113             : 
    1114           4 :                         case DSPROPERTY_ZONE_MASTER_SERVERS: {
    1115           4 :                                 NDR_CHECK(ndr_push_dnsp_ip4_array(ndr, NDR_SCALARS, &r->master_servers));
    1116           0 :                         break; }
    1117             : 
    1118           0 :                         case DSPROPERTY_ZONE_AUTO_NS_SERVERS: {
    1119           0 :                                 NDR_CHECK(ndr_push_dnsp_ip4_array(ndr, NDR_SCALARS, &r->ns_servers));
    1120           0 :                         break; }
    1121             : 
    1122           0 :                         case DSPROPERTY_ZONE_DCPROMO_CONVERT: {
    1123           0 :                                 NDR_CHECK(ndr_push_dns_dcpromo_flag(ndr, NDR_SCALARS, r->dcpromo_flag));
    1124           0 :                         break; }
    1125             : 
    1126           0 :                         case DSPROPERTY_ZONE_SCAVENGING_SERVERS_DA: {
    1127           0 :                                 NDR_CHECK(ndr_push_dnsp_dns_addr_array(ndr, NDR_SCALARS, &r->s_ns_servers));
    1128           0 :                         break; }
    1129             : 
    1130           4 :                         case DSPROPERTY_ZONE_MASTER_SERVERS_DA: {
    1131           4 :                                 NDR_CHECK(ndr_push_dnsp_dns_addr_array(ndr, NDR_SCALARS, &r->z_master_servers));
    1132           0 :                         break; }
    1133             : 
    1134           0 :                         case DSPROPERTY_ZONE_NS_SERVERS_DA: {
    1135           0 :                                 NDR_CHECK(ndr_push_dnsp_dns_addr_array(ndr, NDR_SCALARS, &r->d_ns_servers));
    1136           0 :                         break; }
    1137             : 
    1138           0 :                         case DSPROPERTY_ZONE_NODE_DBFLAGS: {
    1139           0 :                                 NDR_CHECK(ndr_push_dns_rpc_node_flags(ndr, NDR_SCALARS, r->flags));
    1140           0 :                         break; }
    1141             : 
    1142           0 :                         default:
    1143           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    1144             :                 }
    1145             :         }
    1146       18849 :         if (ndr_flags & NDR_BUFFERS) {
    1147       12562 :                 if (!(ndr_flags & NDR_SCALARS)) {
    1148             :                         /* We didn't get it above, and the token is not needed after this. */
    1149        6287 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    1150             :                 }
    1151       12562 :                 switch (level) {
    1152          12 :                         case DSPROPERTY_ZONE_EMPTY:
    1153          12 :                         break;
    1154             : 
    1155        1436 :                         case DSPROPERTY_ZONE_TYPE:
    1156        1436 :                         break;
    1157             : 
    1158        2068 :                         case DSPROPERTY_ZONE_ALLOW_UPDATE:
    1159        2068 :                         break;
    1160             : 
    1161        1436 :                         case DSPROPERTY_ZONE_SECURE_TIME:
    1162        1436 :                         break;
    1163             : 
    1164        1648 :                         case DSPROPERTY_ZONE_NOREFRESH_INTERVAL:
    1165        1648 :                         break;
    1166             : 
    1167        1644 :                         case DSPROPERTY_ZONE_REFRESH_INTERVAL:
    1168        1644 :                         break;
    1169             : 
    1170        1988 :                         case DSPROPERTY_ZONE_AGING_STATE:
    1171        1988 :                         break;
    1172             : 
    1173           0 :                         case DSPROPERTY_ZONE_SCAVENGING_SERVERS:
    1174           0 :                         break;
    1175             : 
    1176        1436 :                         case DSPROPERTY_ZONE_AGING_ENABLED_TIME:
    1177        1436 :                         break;
    1178             : 
    1179           0 :                         case DSPROPERTY_ZONE_DELETED_FROM_HOSTNAME:
    1180           0 :                         break;
    1181             : 
    1182           0 :                         case DSPROPERTY_ZONE_MASTER_SERVERS:
    1183           0 :                         break;
    1184             : 
    1185           0 :                         case DSPROPERTY_ZONE_AUTO_NS_SERVERS:
    1186           0 :                         break;
    1187             : 
    1188           0 :                         case DSPROPERTY_ZONE_DCPROMO_CONVERT:
    1189           0 :                         break;
    1190             : 
    1191           0 :                         case DSPROPERTY_ZONE_SCAVENGING_SERVERS_DA:
    1192           0 :                         break;
    1193             : 
    1194           0 :                         case DSPROPERTY_ZONE_MASTER_SERVERS_DA:
    1195           0 :                         break;
    1196             : 
    1197           0 :                         case DSPROPERTY_ZONE_NS_SERVERS_DA:
    1198           0 :                         break;
    1199             : 
    1200           0 :                         case DSPROPERTY_ZONE_NODE_DBFLAGS:
    1201           0 :                         break;
    1202             : 
    1203           0 :                         default:
    1204           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    1205             :                 }
    1206             :         }
    1207       17508 :         return NDR_ERR_SUCCESS;
    1208             : }
    1209             : 
    1210      119900 : static enum ndr_err_code ndr_pull_dnsPropertyData(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union dnsPropertyData *r)
    1211             : {
    1212         282 :         uint32_t level;
    1213      119900 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1214      119900 :         if (ndr_flags & NDR_SCALARS) {
    1215             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    1216       59955 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    1217       59955 :                 NDR_CHECK(ndr_pull_union_align(ndr, 4));
    1218       59955 :                 switch (level) {
    1219           6 :                         case DSPROPERTY_ZONE_EMPTY: {
    1220           6 :                         break; }
    1221             : 
    1222        8561 :                         case DSPROPERTY_ZONE_TYPE: {
    1223        8580 :                                 NDR_CHECK(ndr_pull_dns_zone_type(ndr, NDR_SCALARS, &r->zone_type));
    1224        8542 :                         break; }
    1225             : 
    1226        8571 :                         case DSPROPERTY_ZONE_ALLOW_UPDATE: {
    1227        8571 :                                 NDR_CHECK(ndr_pull_dns_zone_update(ndr, NDR_SCALARS, &r->allow_update_flag));
    1228        8552 :                         break; }
    1229             : 
    1230        8561 :                         case DSPROPERTY_ZONE_SECURE_TIME: {
    1231        8561 :                                 NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, &r->zone_secure_time));
    1232        8542 :                         break; }
    1233             : 
    1234        8561 :                         case DSPROPERTY_ZONE_NOREFRESH_INTERVAL: {
    1235        8561 :                                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->norefresh_hours));
    1236        8542 :                         break; }
    1237             : 
    1238        8561 :                         case DSPROPERTY_ZONE_REFRESH_INTERVAL: {
    1239        8561 :                                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->refresh_hours));
    1240        8542 :                         break; }
    1241             : 
    1242        8561 :                         case DSPROPERTY_ZONE_AGING_STATE: {
    1243        8561 :                                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->aging_enabled));
    1244        8542 :                         break; }
    1245             : 
    1246           0 :                         case DSPROPERTY_ZONE_SCAVENGING_SERVERS: {
    1247           0 :                                 NDR_CHECK(ndr_pull_dnsp_ip4_array(ndr, NDR_SCALARS, &r->servers));
    1248           0 :                         break; }
    1249             : 
    1250        8561 :                         case DSPROPERTY_ZONE_AGING_ENABLED_TIME: {
    1251        8561 :                                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->next_scavenging_cycle_hours));
    1252        8542 :                         break; }
    1253             : 
    1254           4 :                         case DSPROPERTY_ZONE_DELETED_FROM_HOSTNAME: {
    1255             :                                 {
    1256           4 :                                         libndr_flags _flags_save_string = ndr->flags;
    1257           4 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
    1258           4 :                                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->deleted_by_hostname));
    1259           4 :                                         ndr->flags = _flags_save_string;
    1260             :                                 }
    1261           4 :                         break; }
    1262             : 
    1263           2 :                         case DSPROPERTY_ZONE_MASTER_SERVERS: {
    1264           2 :                                 NDR_CHECK(ndr_pull_dnsp_ip4_array(ndr, NDR_SCALARS, &r->master_servers));
    1265           0 :                         break; }
    1266             : 
    1267           0 :                         case DSPROPERTY_ZONE_AUTO_NS_SERVERS: {
    1268           0 :                                 NDR_CHECK(ndr_pull_dnsp_ip4_array(ndr, NDR_SCALARS, &r->ns_servers));
    1269           0 :                         break; }
    1270             : 
    1271           0 :                         case DSPROPERTY_ZONE_DCPROMO_CONVERT: {
    1272           0 :                                 NDR_CHECK(ndr_pull_dns_dcpromo_flag(ndr, NDR_SCALARS, &r->dcpromo_flag));
    1273           0 :                         break; }
    1274             : 
    1275           0 :                         case DSPROPERTY_ZONE_SCAVENGING_SERVERS_DA: {
    1276           0 :                                 NDR_CHECK(ndr_pull_dnsp_dns_addr_array(ndr, NDR_SCALARS, &r->s_ns_servers));
    1277           0 :                         break; }
    1278             : 
    1279           5 :                         case DSPROPERTY_ZONE_MASTER_SERVERS_DA: {
    1280           5 :                                 NDR_CHECK(ndr_pull_dnsp_dns_addr_array(ndr, NDR_SCALARS, &r->z_master_servers));
    1281           0 :                         break; }
    1282             : 
    1283           0 :                         case DSPROPERTY_ZONE_NS_SERVERS_DA: {
    1284           0 :                                 NDR_CHECK(ndr_pull_dnsp_dns_addr_array(ndr, NDR_SCALARS, &r->d_ns_servers));
    1285           0 :                         break; }
    1286             : 
    1287           0 :                         case DSPROPERTY_ZONE_NODE_DBFLAGS: {
    1288           0 :                                 NDR_CHECK(ndr_pull_dns_rpc_node_flags(ndr, NDR_SCALARS, &r->flags));
    1289           0 :                         break; }
    1290             : 
    1291           0 :                         default:
    1292           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    1293             :                 }
    1294             :         }
    1295      119897 :         if (ndr_flags & NDR_BUFFERS) {
    1296       59945 :                 if (!(ndr_flags & NDR_SCALARS)) {
    1297             :                         /* We didn't get it above, and the token is not needed after this. */
    1298       59945 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    1299             :                 }
    1300       59945 :                 switch (level) {
    1301           6 :                         case DSPROPERTY_ZONE_EMPTY:
    1302           6 :                         break;
    1303             : 
    1304        8542 :                         case DSPROPERTY_ZONE_TYPE:
    1305        8542 :                         break;
    1306             : 
    1307        8547 :                         case DSPROPERTY_ZONE_ALLOW_UPDATE:
    1308        8547 :                         break;
    1309             : 
    1310        8542 :                         case DSPROPERTY_ZONE_SECURE_TIME:
    1311        8542 :                         break;
    1312             : 
    1313        8542 :                         case DSPROPERTY_ZONE_NOREFRESH_INTERVAL:
    1314        8542 :                         break;
    1315             : 
    1316        8542 :                         case DSPROPERTY_ZONE_REFRESH_INTERVAL:
    1317        8542 :                         break;
    1318             : 
    1319        8542 :                         case DSPROPERTY_ZONE_AGING_STATE:
    1320        8542 :                         break;
    1321             : 
    1322           0 :                         case DSPROPERTY_ZONE_SCAVENGING_SERVERS:
    1323           0 :                         break;
    1324             : 
    1325        8542 :                         case DSPROPERTY_ZONE_AGING_ENABLED_TIME:
    1326        8542 :                         break;
    1327             : 
    1328           0 :                         case DSPROPERTY_ZONE_DELETED_FROM_HOSTNAME:
    1329           0 :                         break;
    1330             : 
    1331           0 :                         case DSPROPERTY_ZONE_MASTER_SERVERS:
    1332           0 :                         break;
    1333             : 
    1334           0 :                         case DSPROPERTY_ZONE_AUTO_NS_SERVERS:
    1335           0 :                         break;
    1336             : 
    1337           0 :                         case DSPROPERTY_ZONE_DCPROMO_CONVERT:
    1338           0 :                         break;
    1339             : 
    1340           0 :                         case DSPROPERTY_ZONE_SCAVENGING_SERVERS_DA:
    1341           0 :                         break;
    1342             : 
    1343           0 :                         case DSPROPERTY_ZONE_MASTER_SERVERS_DA:
    1344           0 :                         break;
    1345             : 
    1346           0 :                         case DSPROPERTY_ZONE_NS_SERVERS_DA:
    1347           0 :                         break;
    1348             : 
    1349           0 :                         case DSPROPERTY_ZONE_NODE_DBFLAGS:
    1350           0 :                         break;
    1351             : 
    1352           0 :                         default:
    1353           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    1354             :                 }
    1355             :         }
    1356      119615 :         return NDR_ERR_SUCCESS;
    1357             : }
    1358             : 
    1359           7 : _PUBLIC_ void ndr_print_dnsPropertyData(struct ndr_print *ndr, const char *name, const union dnsPropertyData *r)
    1360             : {
    1361           7 :         uint32_t level;
    1362           7 :         level = ndr_print_steal_switch_value(ndr, r);
    1363           7 :         ndr_print_union(ndr, name, level, "dnsPropertyData");
    1364           7 :         switch (level) {
    1365           0 :                 case DSPROPERTY_ZONE_EMPTY:
    1366           0 :                 break;
    1367             : 
    1368           0 :                 case DSPROPERTY_ZONE_TYPE:
    1369           0 :                         ndr_print_dns_zone_type(ndr, "zone_type", r->zone_type);
    1370           0 :                 break;
    1371             : 
    1372           0 :                 case DSPROPERTY_ZONE_ALLOW_UPDATE:
    1373           0 :                         ndr_print_dns_zone_update(ndr, "allow_update_flag", r->allow_update_flag);
    1374           0 :                 break;
    1375             : 
    1376           0 :                 case DSPROPERTY_ZONE_SECURE_TIME:
    1377           0 :                         ndr_print_NTTIME(ndr, "zone_secure_time", r->zone_secure_time);
    1378           0 :                 break;
    1379             : 
    1380           0 :                 case DSPROPERTY_ZONE_NOREFRESH_INTERVAL:
    1381           0 :                         ndr_print_uint32(ndr, "norefresh_hours", r->norefresh_hours);
    1382           0 :                 break;
    1383             : 
    1384           0 :                 case DSPROPERTY_ZONE_REFRESH_INTERVAL:
    1385           0 :                         ndr_print_uint32(ndr, "refresh_hours", r->refresh_hours);
    1386           0 :                 break;
    1387             : 
    1388           0 :                 case DSPROPERTY_ZONE_AGING_STATE:
    1389           0 :                         ndr_print_uint32(ndr, "aging_enabled", r->aging_enabled);
    1390           0 :                 break;
    1391             : 
    1392           0 :                 case DSPROPERTY_ZONE_SCAVENGING_SERVERS:
    1393           0 :                         ndr_print_dnsp_ip4_array(ndr, "servers", &r->servers);
    1394           0 :                 break;
    1395             : 
    1396           0 :                 case DSPROPERTY_ZONE_AGING_ENABLED_TIME:
    1397           0 :                         ndr_print_uint32(ndr, "next_scavenging_cycle_hours", r->next_scavenging_cycle_hours);
    1398           0 :                 break;
    1399             : 
    1400           2 :                 case DSPROPERTY_ZONE_DELETED_FROM_HOSTNAME:
    1401             :                         {
    1402           2 :                                 libndr_flags _flags_save_string = ndr->flags;
    1403           2 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
    1404           2 :                                 ndr_print_string(ndr, "deleted_by_hostname", r->deleted_by_hostname);
    1405           2 :                                 ndr->flags = _flags_save_string;
    1406             :                         }
    1407           2 :                 break;
    1408             : 
    1409           2 :                 case DSPROPERTY_ZONE_MASTER_SERVERS:
    1410           2 :                         ndr_print_dnsp_ip4_array(ndr, "master_servers", &r->master_servers);
    1411           2 :                 break;
    1412             : 
    1413           0 :                 case DSPROPERTY_ZONE_AUTO_NS_SERVERS:
    1414           0 :                         ndr_print_dnsp_ip4_array(ndr, "ns_servers", &r->ns_servers);
    1415           0 :                 break;
    1416             : 
    1417           0 :                 case DSPROPERTY_ZONE_DCPROMO_CONVERT:
    1418           0 :                         ndr_print_dns_dcpromo_flag(ndr, "dcpromo_flag", r->dcpromo_flag);
    1419           0 :                 break;
    1420             : 
    1421           0 :                 case DSPROPERTY_ZONE_SCAVENGING_SERVERS_DA:
    1422           0 :                         ndr_print_dnsp_dns_addr_array(ndr, "s_ns_servers", &r->s_ns_servers);
    1423           0 :                 break;
    1424             : 
    1425           2 :                 case DSPROPERTY_ZONE_MASTER_SERVERS_DA:
    1426           2 :                         ndr_print_dnsp_dns_addr_array(ndr, "z_master_servers", &r->z_master_servers);
    1427           2 :                 break;
    1428             : 
    1429           0 :                 case DSPROPERTY_ZONE_NS_SERVERS_DA:
    1430           0 :                         ndr_print_dnsp_dns_addr_array(ndr, "d_ns_servers", &r->d_ns_servers);
    1431           0 :                 break;
    1432             : 
    1433           0 :                 case DSPROPERTY_ZONE_NODE_DBFLAGS:
    1434           0 :                         ndr_print_dns_rpc_node_flags(ndr, "flags", r->flags);
    1435           0 :                 break;
    1436             : 
    1437           0 :                 default:
    1438           0 :                         ndr_print_bad_level(ndr, name, level);
    1439             :         }
    1440           7 : }
    1441             : 
    1442        6275 : static size_t ndr_size_dnsPropertyData(const union dnsPropertyData *r, uint32_t level, libndr_flags flags)
    1443             : {
    1444        6275 :         return ndr_size_union(r, flags, level, (ndr_push_flags_fn_t)ndr_push_dnsPropertyData);
    1445             : }
    1446             : 
    1447        6275 : _PUBLIC_ enum ndr_err_code ndr_push_dnsp_DnsProperty(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_DnsProperty *r)
    1448             : {
    1449             :         {
    1450        6275 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1451        6275 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1452        6275 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1453        6275 :                 if (ndr_flags & NDR_SCALARS) {
    1454        6275 :                         NDR_CHECK(ndr_push_align(ndr, 4));
    1455        6275 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_size_dnsPropertyData(&r->data, r->id, ndr->flags)));
    1456        6275 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->namelength));
    1457        6275 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
    1458        6275 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 1));
    1459        6722 :                         NDR_CHECK(ndr_push_dns_property_id(ndr, NDR_SCALARS, r->id));
    1460        6275 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->data, r->id));
    1461        6275 :                         NDR_CHECK(ndr_push_dnsPropertyData(ndr, NDR_SCALARS, &r->data));
    1462        6275 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->name));
    1463        6275 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1464             :                 }
    1465        6275 :                 if (ndr_flags & NDR_BUFFERS) {
    1466        6275 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->data, r->id));
    1467        6275 :                         NDR_CHECK(ndr_push_dnsPropertyData(ndr, NDR_BUFFERS, &r->data));
    1468             :                 }
    1469        6275 :                 ndr->flags = _flags_save_STRUCT;
    1470             :         }
    1471        6275 :         return NDR_ERR_SUCCESS;
    1472             : }
    1473             : 
    1474       59948 : _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_DnsProperty(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_DnsProperty *r)
    1475             : {
    1476             :         {
    1477       59948 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1478       59948 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1479       59948 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1480       59948 :                 if (ndr_flags & NDR_SCALARS) {
    1481       59948 :                         NDR_CHECK(ndr_pull_align(ndr, 4));
    1482       59948 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->wDataLength));
    1483       59948 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->namelength));
    1484       59948 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flag));
    1485       59948 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->version));
    1486       60089 :                         NDR_CHECK(ndr_pull_dns_property_id(ndr, NDR_SCALARS, &r->id));
    1487       59948 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->data, r->id));
    1488       59948 :                         NDR_CHECK(ndr_pull_dnsPropertyData(ndr, NDR_SCALARS, &r->data));
    1489       59945 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->name));
    1490       59938 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1491             :                 }
    1492       59938 :                 if (ndr_flags & NDR_BUFFERS) {
    1493       59938 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->data, r->id));
    1494       59938 :                         NDR_CHECK(ndr_pull_dnsPropertyData(ndr, NDR_BUFFERS, &r->data));
    1495             :                 }
    1496       59938 :                 ndr->flags = _flags_save_STRUCT;
    1497             :         }
    1498       59938 :         return NDR_ERR_SUCCESS;
    1499             : }
    1500             : 
    1501           0 : static void ndr_print_flags_dnsp_DnsProperty(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct dnsp_DnsProperty *r)
    1502             : {
    1503           0 :         ndr_print_dnsp_DnsProperty(ndr, name, r);
    1504           0 : }
    1505             : 
    1506           6 : _PUBLIC_ void ndr_print_dnsp_DnsProperty(struct ndr_print *ndr, const char *name, const struct dnsp_DnsProperty *r)
    1507             : {
    1508           6 :         ndr_print_struct(ndr, name, "dnsp_DnsProperty");
    1509           6 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1510             :         {
    1511           6 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1512           6 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1513           6 :                 ndr->depth++;
    1514           6 :                 ndr_print_uint32(ndr, "wDataLength", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?ndr_size_dnsPropertyData(&r->data, r->id, ndr->flags):r->wDataLength);
    1515           6 :                 ndr_print_uint32(ndr, "namelength", r->namelength);
    1516           6 :                 ndr_print_uint32(ndr, "flag", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->flag);
    1517           6 :                 ndr_print_uint32(ndr, "version", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?1:r->version);
    1518           6 :                 ndr_print_dns_property_id(ndr, "id", r->id);
    1519           6 :                 ndr_print_set_switch_value(ndr, &r->data, r->id);
    1520           6 :                 ndr_print_dnsPropertyData(ndr, "data", &r->data);
    1521           6 :                 ndr_print_uint32(ndr, "name", r->name);
    1522           6 :                 ndr->depth--;
    1523           6 :                 ndr->flags = _flags_save_STRUCT;
    1524             :         }
    1525             : }
    1526             : 
    1527          12 : _PUBLIC_ enum ndr_err_code ndr_push_dnsp_DnsProperty_short(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct dnsp_DnsProperty_short *r)
    1528             : {
    1529             :         {
    1530          12 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1531          12 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1532          12 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1533          12 :                 if (ndr_flags & NDR_SCALARS) {
    1534          12 :                         NDR_CHECK(ndr_push_align(ndr, 4));
    1535          12 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
    1536          12 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->namelength));
    1537          12 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
    1538          12 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 1));
    1539          12 :                         NDR_CHECK(ndr_push_dns_property_id(ndr, NDR_SCALARS, r->id));
    1540          12 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->data, DSPROPERTY_ZONE_EMPTY));
    1541          12 :                         NDR_CHECK(ndr_push_dnsPropertyData(ndr, NDR_SCALARS, &r->data));
    1542          12 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->name));
    1543          12 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1544             :                 }
    1545          12 :                 if (ndr_flags & NDR_BUFFERS) {
    1546          12 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->data, DSPROPERTY_ZONE_EMPTY));
    1547          12 :                         NDR_CHECK(ndr_push_dnsPropertyData(ndr, NDR_BUFFERS, &r->data));
    1548             :                 }
    1549          12 :                 ndr->flags = _flags_save_STRUCT;
    1550             :         }
    1551          12 :         return NDR_ERR_SUCCESS;
    1552             : }
    1553             : 
    1554           7 : _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_DnsProperty_short(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct dnsp_DnsProperty_short *r)
    1555             : {
    1556             :         {
    1557           7 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1558           7 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1559           7 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1560           7 :                 if (ndr_flags & NDR_SCALARS) {
    1561           7 :                         NDR_CHECK(ndr_pull_align(ndr, 4));
    1562           7 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->wDataLength));
    1563           7 :                         if (r->wDataLength > 0) {
    1564           0 :                                 return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->wDataLength), (uint32_t)(0), (uint32_t)(0));
    1565             :                         }
    1566           7 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->namelength));
    1567           7 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flag));
    1568           7 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->version));
    1569           8 :                         NDR_CHECK(ndr_pull_dns_property_id(ndr, NDR_SCALARS, &r->id));
    1570           7 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->data, DSPROPERTY_ZONE_EMPTY));
    1571           7 :                         NDR_CHECK(ndr_pull_dnsPropertyData(ndr, NDR_SCALARS, &r->data));
    1572           7 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->name));
    1573           7 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1574             :                 }
    1575           7 :                 if (ndr_flags & NDR_BUFFERS) {
    1576           7 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->data, DSPROPERTY_ZONE_EMPTY));
    1577           7 :                         NDR_CHECK(ndr_pull_dnsPropertyData(ndr, NDR_BUFFERS, &r->data));
    1578             :                 }
    1579           7 :                 ndr->flags = _flags_save_STRUCT;
    1580             :         }
    1581           7 :         return NDR_ERR_SUCCESS;
    1582             : }
    1583             : 
    1584           1 : static void ndr_print_flags_dnsp_DnsProperty_short(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct dnsp_DnsProperty_short *r)
    1585             : {
    1586           1 :         ndr_print_dnsp_DnsProperty_short(ndr, name, r);
    1587           1 : }
    1588             : 
    1589           1 : _PUBLIC_ void ndr_print_dnsp_DnsProperty_short(struct ndr_print *ndr, const char *name, const struct dnsp_DnsProperty_short *r)
    1590             : {
    1591           1 :         ndr_print_struct(ndr, name, "dnsp_DnsProperty_short");
    1592           1 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1593             :         {
    1594           1 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
    1595           1 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
    1596           1 :                 ndr->depth++;
    1597           1 :                 ndr_print_uint32(ndr, "wDataLength", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->wDataLength);
    1598           1 :                 ndr_print_uint32(ndr, "namelength", r->namelength);
    1599           1 :                 ndr_print_uint32(ndr, "flag", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0:r->flag);
    1600           1 :                 ndr_print_uint32(ndr, "version", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?1:r->version);
    1601           1 :                 ndr_print_dns_property_id(ndr, "id", r->id);
    1602           1 :                 ndr_print_set_switch_value(ndr, &r->data, DSPROPERTY_ZONE_EMPTY);
    1603           1 :                 ndr_print_dnsPropertyData(ndr, "data", &r->data);
    1604           1 :                 ndr_print_uint32(ndr, "name", r->name);
    1605           1 :                 ndr->depth--;
    1606           1 :                 ndr->flags = _flags_save_STRUCT;
    1607             :         }
    1608             : }
    1609             : 
    1610             : #ifndef SKIP_NDR_TABLE_dnsp
    1611             : static const struct ndr_interface_public_struct dnsp_public_structs[] = {
    1612             :         {
    1613             :                 .name = "dnsp_soa",
    1614             :                 .struct_size = sizeof(struct dnsp_soa ),
    1615             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_dnsp_soa,
    1616             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_dnsp_soa,
    1617             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_dnsp_soa,
    1618             :         },
    1619             :         {
    1620             :                 .name = "dnsp_mx",
    1621             :                 .struct_size = sizeof(struct dnsp_mx ),
    1622             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_dnsp_mx,
    1623             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_dnsp_mx,
    1624             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_dnsp_mx,
    1625             :         },
    1626             :         {
    1627             :                 .name = "dnsp_hinfo",
    1628             :                 .struct_size = sizeof(struct dnsp_hinfo ),
    1629             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_dnsp_hinfo,
    1630             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_dnsp_hinfo,
    1631             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_dnsp_hinfo,
    1632             :         },
    1633             :         {
    1634             :                 .name = "dnsp_srv",
    1635             :                 .struct_size = sizeof(struct dnsp_srv ),
    1636             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_dnsp_srv,
    1637             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_dnsp_srv,
    1638             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_dnsp_srv,
    1639             :         },
    1640             :         {
    1641             :                 .name = "dnsp_dns_addr_array",
    1642             :                 .struct_size = sizeof(struct dnsp_dns_addr_array ),
    1643             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_dnsp_dns_addr_array,
    1644             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_dnsp_dns_addr_array,
    1645             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_dnsp_dns_addr_array,
    1646             :         },
    1647             :         {
    1648             :                 .name = "dnsp_string_list",
    1649             :                 .struct_size = sizeof(struct dnsp_string_list ),
    1650             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_dnsp_string_list,
    1651             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_dnsp_string_list,
    1652             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_dnsp_string_list,
    1653             :         },
    1654             :         {
    1655             :                 .name = "dnsp_DnssrvRpcRecord",
    1656             :                 .struct_size = sizeof(struct dnsp_DnssrvRpcRecord ),
    1657             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_dnsp_DnssrvRpcRecord,
    1658             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_dnsp_DnssrvRpcRecord,
    1659             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_dnsp_DnssrvRpcRecord,
    1660             :         },
    1661             :         {
    1662             :                 .name = "dnsp_DnsProperty",
    1663             :                 .struct_size = sizeof(struct dnsp_DnsProperty ),
    1664             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_dnsp_DnsProperty,
    1665             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_dnsp_DnsProperty,
    1666             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_dnsp_DnsProperty,
    1667             :         },
    1668             :         {
    1669             :                 .name = "dnsp_DnsProperty_short",
    1670             :                 .struct_size = sizeof(struct dnsp_DnsProperty_short ),
    1671             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_dnsp_DnsProperty_short,
    1672             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_dnsp_DnsProperty_short,
    1673             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_dnsp_DnsProperty_short,
    1674             :         },
    1675             :         { .name = NULL }
    1676             : };
    1677             : 
    1678             : static const struct ndr_interface_call dnsp_calls[] = {
    1679             :         { .name = NULL }
    1680             : };
    1681             : 
    1682             : static const char * const dnsp_endpoint_strings[] = {
    1683             :         "ncacn_np:[\\pipe\\dnsp]", 
    1684             : };
    1685             : 
    1686             : static const struct ndr_interface_string_array dnsp_endpoints = {
    1687             :         .count  = 1,
    1688             :         .names  = dnsp_endpoint_strings
    1689             : };
    1690             : 
    1691             : static const char * const dnsp_authservice_strings[] = {
    1692             :         "host", 
    1693             : };
    1694             : 
    1695             : static const struct ndr_interface_string_array dnsp_authservices = {
    1696             :         .count  = 1,
    1697             :         .names  = dnsp_authservice_strings
    1698             : };
    1699             : 
    1700             : 
    1701             : const struct ndr_interface_table ndr_table_dnsp = {
    1702             :         .name           = "dnsp",
    1703             :         .syntax_id      = {
    1704             :                 {0xbdd66e9e,0xd45f,0x4202,{0x85,0xc0},{0x61,0x32,0xed,0xc4,0xf3,0x0a}},
    1705             :                 NDR_DNSP_VERSION
    1706             :         },
    1707             :         .helpstring     = NDR_DNSP_HELPSTRING,
    1708             :         .num_calls      = 0,
    1709             :         .calls          = dnsp_calls,
    1710             :         .num_public_structs     = 9,
    1711             :         .public_structs         = dnsp_public_structs,
    1712             :         .endpoints      = &dnsp_endpoints,
    1713             :         .authservices   = &dnsp_authservices
    1714             : };
    1715             : 
    1716             : #endif /* SKIP_NDR_TABLE_dnsp */

Generated by: LCOV version 1.14