LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_eventlog6_s.c (source / functions) Hit Total Coverage
Test: coverage report for master 2b515b7d Lines: 15 571 2.6 %
Date: 2024-02-28 12:06:22 Functions: 2 11 18.2 %

          Line data    Source code
       1             : /* server functions auto-generated by pidl */
       2             : #include "bin/default/librpc/gen_ndr/ndr_eventlog6.h"
       3             : #include <util/debug.h>
       4             : 
       5             : NTSTATUS dcerpc_server_eventlog6_init(TALLOC_CTX *);
       6             : 
       7             : /* eventlog6 - dcerpc server boilerplate generated by pidl */
       8             : 
       9             : 
      10           0 : static NTSTATUS eventlog6__op_bind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface)
      11             : {
      12             : #ifdef DCESRV_INTERFACE_EVENTLOG6_BIND
      13             :         return DCESRV_INTERFACE_EVENTLOG6_BIND(context,iface);
      14             : #else
      15           0 :         return NT_STATUS_OK;
      16             : #endif
      17             : }
      18             : 
      19           0 : static void eventlog6__op_unbind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface)
      20             : {
      21             : #ifdef DCESRV_INTERFACE_EVENTLOG6_UNBIND
      22             :         DCESRV_INTERFACE_EVENTLOG6_UNBIND(context, iface);
      23             : #else
      24           0 :         return;
      25             : #endif
      26             : }
      27             : 
      28           0 : static NTSTATUS eventlog6__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r)
      29             : {
      30           0 :         enum ndr_err_code ndr_err;
      31           0 :         uint16_t opnum = dce_call->pkt.u.request.opnum;
      32             : 
      33           0 :         dce_call->fault_code = 0;
      34             : 
      35           0 :         if (opnum >= ndr_table_eventlog6.num_calls) {
      36           0 :                 dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
      37           0 :                 return NT_STATUS_NET_WRITE_FAULT;
      38             :         }
      39             : 
      40           0 :         *r = talloc_named(mem_ctx,
      41           0 :                           ndr_table_eventlog6.calls[opnum].struct_size,
      42             :                           "struct %s",
      43           0 :                           ndr_table_eventlog6.calls[opnum].name);
      44           0 :         NT_STATUS_HAVE_NO_MEMORY(*r);
      45             : 
      46             :         /* unravel the NDR for the packet */
      47           0 :         ndr_err = ndr_table_eventlog6.calls[opnum].ndr_pull(pull, NDR_IN, *r);
      48           0 :         if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
      49           0 :                 dce_call->fault_code = DCERPC_FAULT_NDR;
      50           0 :                 return NT_STATUS_NET_WRITE_FAULT;
      51             :         }
      52             : 
      53           0 :         return NT_STATUS_OK;
      54             : }
      55             : 
      56           0 : static NTSTATUS eventlog6__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
      57             : {
      58           0 :         uint16_t opnum = dce_call->pkt.u.request.opnum;
      59             : 
      60           0 :         switch (opnum) {
      61           0 :         case 0: {
      62           0 :                 struct eventlog6_EvtRpcRegisterRemoteSubscription *r2 = (struct eventlog6_EvtRpcRegisterRemoteSubscription *)r;
      63           0 :                 if (DEBUGLEVEL >= 10) {
      64           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterRemoteSubscription, NDR_IN, r2);
      65             :                 }
      66           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcRegisterRemoteSubscription(dce_call, mem_ctx, r2);
      67           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
      68           0 :                         DEBUG(5,("function eventlog6_EvtRpcRegisterRemoteSubscription will reply async\n"));
      69             :                 }
      70           0 :                 break;
      71             :         }
      72           0 :         case 1: {
      73           0 :                 struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *)r;
      74           0 :                 if (DEBUGLEVEL >= 10) {
      75           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionNextAsync, NDR_IN, r2);
      76             :                 }
      77           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcRemoteSubscriptionNextAsync(dce_call, mem_ctx, r2);
      78           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
      79           0 :                         DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionNextAsync will reply async\n"));
      80             :                 }
      81           0 :                 break;
      82             :         }
      83           0 :         case 2: {
      84           0 :                 struct eventlog6_EvtRpcRemoteSubscriptionNext *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionNext *)r;
      85           0 :                 if (DEBUGLEVEL >= 10) {
      86           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionNext, NDR_IN, r2);
      87             :                 }
      88           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcRemoteSubscriptionNext(dce_call, mem_ctx, r2);
      89           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
      90           0 :                         DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionNext will reply async\n"));
      91             :                 }
      92           0 :                 break;
      93             :         }
      94           0 :         case 3: {
      95           0 :                 struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *)r;
      96           0 :                 if (DEBUGLEVEL >= 10) {
      97           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionWaitAsync, NDR_IN, r2);
      98             :                 }
      99           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcRemoteSubscriptionWaitAsync(dce_call, mem_ctx, r2);
     100           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     101           0 :                         DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionWaitAsync will reply async\n"));
     102             :                 }
     103           0 :                 break;
     104             :         }
     105           0 :         case 4: {
     106           0 :                 struct eventlog6_EvtRpcRegisterControllableOperation *r2 = (struct eventlog6_EvtRpcRegisterControllableOperation *)r;
     107           0 :                 if (DEBUGLEVEL >= 10) {
     108           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterControllableOperation, NDR_IN, r2);
     109             :                 }
     110           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcRegisterControllableOperation(dce_call, mem_ctx, r2);
     111           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     112           0 :                         DEBUG(5,("function eventlog6_EvtRpcRegisterControllableOperation will reply async\n"));
     113             :                 }
     114           0 :                 break;
     115             :         }
     116           0 :         case 5: {
     117           0 :                 struct eventlog6_EvtRpcRegisterLogQuery *r2 = (struct eventlog6_EvtRpcRegisterLogQuery *)r;
     118           0 :                 if (DEBUGLEVEL >= 10) {
     119           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterLogQuery, NDR_IN, r2);
     120             :                 }
     121           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcRegisterLogQuery(dce_call, mem_ctx, r2);
     122           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     123           0 :                         DEBUG(5,("function eventlog6_EvtRpcRegisterLogQuery will reply async\n"));
     124             :                 }
     125           0 :                 break;
     126             :         }
     127           0 :         case 6: {
     128           0 :                 struct eventlog6_EvtRpcClearLog *r2 = (struct eventlog6_EvtRpcClearLog *)r;
     129           0 :                 if (DEBUGLEVEL >= 10) {
     130           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcClearLog, NDR_IN, r2);
     131             :                 }
     132           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcClearLog(dce_call, mem_ctx, r2);
     133           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     134           0 :                         DEBUG(5,("function eventlog6_EvtRpcClearLog will reply async\n"));
     135             :                 }
     136           0 :                 break;
     137             :         }
     138           0 :         case 7: {
     139           0 :                 struct eventlog6_EvtRpcExportLog *r2 = (struct eventlog6_EvtRpcExportLog *)r;
     140           0 :                 if (DEBUGLEVEL >= 10) {
     141           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcExportLog, NDR_IN, r2);
     142             :                 }
     143           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcExportLog(dce_call, mem_ctx, r2);
     144           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     145           0 :                         DEBUG(5,("function eventlog6_EvtRpcExportLog will reply async\n"));
     146             :                 }
     147           0 :                 break;
     148             :         }
     149           0 :         case 8: {
     150           0 :                 struct eventlog6_EvtRpcLocalizeExportLog *r2 = (struct eventlog6_EvtRpcLocalizeExportLog *)r;
     151           0 :                 if (DEBUGLEVEL >= 10) {
     152           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcLocalizeExportLog, NDR_IN, r2);
     153             :                 }
     154           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcLocalizeExportLog(dce_call, mem_ctx, r2);
     155           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     156           0 :                         DEBUG(5,("function eventlog6_EvtRpcLocalizeExportLog will reply async\n"));
     157             :                 }
     158           0 :                 break;
     159             :         }
     160           0 :         case 9: {
     161           0 :                 struct eventlog6_EvtRpcMessageRender *r2 = (struct eventlog6_EvtRpcMessageRender *)r;
     162           0 :                 if (DEBUGLEVEL >= 10) {
     163           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcMessageRender, NDR_IN, r2);
     164             :                 }
     165           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcMessageRender(dce_call, mem_ctx, r2);
     166           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     167           0 :                         DEBUG(5,("function eventlog6_EvtRpcMessageRender will reply async\n"));
     168             :                 }
     169           0 :                 break;
     170             :         }
     171           0 :         case 10: {
     172           0 :                 struct eventlog6_EvtRpcMessageRenderDefault *r2 = (struct eventlog6_EvtRpcMessageRenderDefault *)r;
     173           0 :                 if (DEBUGLEVEL >= 10) {
     174           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcMessageRenderDefault, NDR_IN, r2);
     175             :                 }
     176           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcMessageRenderDefault(dce_call, mem_ctx, r2);
     177           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     178           0 :                         DEBUG(5,("function eventlog6_EvtRpcMessageRenderDefault will reply async\n"));
     179             :                 }
     180           0 :                 break;
     181             :         }
     182           0 :         case 11: {
     183           0 :                 struct eventlog6_EvtRpcQueryNext *r2 = (struct eventlog6_EvtRpcQueryNext *)r;
     184           0 :                 if (DEBUGLEVEL >= 10) {
     185           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcQueryNext, NDR_IN, r2);
     186             :                 }
     187           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcQueryNext(dce_call, mem_ctx, r2);
     188           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     189           0 :                         DEBUG(5,("function eventlog6_EvtRpcQueryNext will reply async\n"));
     190             :                 }
     191           0 :                 break;
     192             :         }
     193           0 :         case 12: {
     194           0 :                 struct eventlog6_EvtRpcQuerySeek *r2 = (struct eventlog6_EvtRpcQuerySeek *)r;
     195           0 :                 if (DEBUGLEVEL >= 10) {
     196           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcQuerySeek, NDR_IN, r2);
     197             :                 }
     198           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcQuerySeek(dce_call, mem_ctx, r2);
     199           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     200           0 :                         DEBUG(5,("function eventlog6_EvtRpcQuerySeek will reply async\n"));
     201             :                 }
     202           0 :                 break;
     203             :         }
     204           0 :         case 13: {
     205           0 :                 struct eventlog6_EvtRpcClose *r2 = (struct eventlog6_EvtRpcClose *)r;
     206           0 :                 if (DEBUGLEVEL >= 10) {
     207           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcClose, NDR_IN, r2);
     208             :                 }
     209           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcClose(dce_call, mem_ctx, r2);
     210           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     211           0 :                         DEBUG(5,("function eventlog6_EvtRpcClose will reply async\n"));
     212             :                 }
     213           0 :                 break;
     214             :         }
     215           0 :         case 14: {
     216           0 :                 struct eventlog6_EvtRpcCancel *r2 = (struct eventlog6_EvtRpcCancel *)r;
     217           0 :                 if (DEBUGLEVEL >= 10) {
     218           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcCancel, NDR_IN, r2);
     219             :                 }
     220           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcCancel(dce_call, mem_ctx, r2);
     221           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     222           0 :                         DEBUG(5,("function eventlog6_EvtRpcCancel will reply async\n"));
     223             :                 }
     224           0 :                 break;
     225             :         }
     226           0 :         case 15: {
     227           0 :                 struct eventlog6_EvtRpcAssertConfig *r2 = (struct eventlog6_EvtRpcAssertConfig *)r;
     228           0 :                 if (DEBUGLEVEL >= 10) {
     229           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcAssertConfig, NDR_IN, r2);
     230             :                 }
     231           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcAssertConfig(dce_call, mem_ctx, r2);
     232           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     233           0 :                         DEBUG(5,("function eventlog6_EvtRpcAssertConfig will reply async\n"));
     234             :                 }
     235           0 :                 break;
     236             :         }
     237           0 :         case 16: {
     238           0 :                 struct eventlog6_EvtRpcRetractConfig *r2 = (struct eventlog6_EvtRpcRetractConfig *)r;
     239           0 :                 if (DEBUGLEVEL >= 10) {
     240           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRetractConfig, NDR_IN, r2);
     241             :                 }
     242           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcRetractConfig(dce_call, mem_ctx, r2);
     243           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     244           0 :                         DEBUG(5,("function eventlog6_EvtRpcRetractConfig will reply async\n"));
     245             :                 }
     246           0 :                 break;
     247             :         }
     248           0 :         case 17: {
     249           0 :                 struct eventlog6_EvtRpcOpenLogHandle *r2 = (struct eventlog6_EvtRpcOpenLogHandle *)r;
     250           0 :                 if (DEBUGLEVEL >= 10) {
     251           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcOpenLogHandle, NDR_IN, r2);
     252             :                 }
     253           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcOpenLogHandle(dce_call, mem_ctx, r2);
     254           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     255           0 :                         DEBUG(5,("function eventlog6_EvtRpcOpenLogHandle will reply async\n"));
     256             :                 }
     257           0 :                 break;
     258             :         }
     259           0 :         case 18: {
     260           0 :                 struct eventlog6_EvtRpcGetLogFileInfo *r2 = (struct eventlog6_EvtRpcGetLogFileInfo *)r;
     261           0 :                 if (DEBUGLEVEL >= 10) {
     262           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetLogFileInfo, NDR_IN, r2);
     263             :                 }
     264           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetLogFileInfo(dce_call, mem_ctx, r2);
     265           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     266           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetLogFileInfo will reply async\n"));
     267             :                 }
     268           0 :                 break;
     269             :         }
     270           0 :         case 19: {
     271           0 :                 struct eventlog6_EvtRpcGetChannelList *r2 = (struct eventlog6_EvtRpcGetChannelList *)r;
     272           0 :                 if (DEBUGLEVEL >= 10) {
     273           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetChannelList, NDR_IN, r2);
     274             :                 }
     275           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetChannelList(dce_call, mem_ctx, r2);
     276           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     277           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetChannelList will reply async\n"));
     278             :                 }
     279           0 :                 break;
     280             :         }
     281           0 :         case 20: {
     282           0 :                 struct eventlog6_EvtRpcGetChannelConfig *r2 = (struct eventlog6_EvtRpcGetChannelConfig *)r;
     283           0 :                 if (DEBUGLEVEL >= 10) {
     284           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetChannelConfig, NDR_IN, r2);
     285             :                 }
     286           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetChannelConfig(dce_call, mem_ctx, r2);
     287           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     288           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetChannelConfig will reply async\n"));
     289             :                 }
     290           0 :                 break;
     291             :         }
     292           0 :         case 21: {
     293           0 :                 struct eventlog6_EvtRpcPutChannelConfig *r2 = (struct eventlog6_EvtRpcPutChannelConfig *)r;
     294           0 :                 if (DEBUGLEVEL >= 10) {
     295           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcPutChannelConfig, NDR_IN, r2);
     296             :                 }
     297           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcPutChannelConfig(dce_call, mem_ctx, r2);
     298           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     299           0 :                         DEBUG(5,("function eventlog6_EvtRpcPutChannelConfig will reply async\n"));
     300             :                 }
     301           0 :                 break;
     302             :         }
     303           0 :         case 22: {
     304           0 :                 struct eventlog6_EvtRpcGetPublisherList *r2 = (struct eventlog6_EvtRpcGetPublisherList *)r;
     305           0 :                 if (DEBUGLEVEL >= 10) {
     306           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherList, NDR_IN, r2);
     307             :                 }
     308           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetPublisherList(dce_call, mem_ctx, r2);
     309           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     310           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetPublisherList will reply async\n"));
     311             :                 }
     312           0 :                 break;
     313             :         }
     314           0 :         case 23: {
     315           0 :                 struct eventlog6_EvtRpcGetPublisherListForChannel *r2 = (struct eventlog6_EvtRpcGetPublisherListForChannel *)r;
     316           0 :                 if (DEBUGLEVEL >= 10) {
     317           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherListForChannel, NDR_IN, r2);
     318             :                 }
     319           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetPublisherListForChannel(dce_call, mem_ctx, r2);
     320           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     321           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetPublisherListForChannel will reply async\n"));
     322             :                 }
     323           0 :                 break;
     324             :         }
     325           0 :         case 24: {
     326           0 :                 struct eventlog6_EvtRpcGetPublisherMetadata *r2 = (struct eventlog6_EvtRpcGetPublisherMetadata *)r;
     327           0 :                 if (DEBUGLEVEL >= 10) {
     328           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherMetadata, NDR_IN, r2);
     329             :                 }
     330           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetPublisherMetadata(dce_call, mem_ctx, r2);
     331           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     332           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetPublisherMetadata will reply async\n"));
     333             :                 }
     334           0 :                 break;
     335             :         }
     336           0 :         case 25: {
     337           0 :                 struct eventlog6_EvtRpcGetPublisherResourceMetadata *r2 = (struct eventlog6_EvtRpcGetPublisherResourceMetadata *)r;
     338           0 :                 if (DEBUGLEVEL >= 10) {
     339           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherResourceMetadata, NDR_IN, r2);
     340             :                 }
     341           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetPublisherResourceMetadata(dce_call, mem_ctx, r2);
     342           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     343           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetPublisherResourceMetadata will reply async\n"));
     344             :                 }
     345           0 :                 break;
     346             :         }
     347           0 :         case 26: {
     348           0 :                 struct eventlog6_EvtRpcGetEventMetadataEnum *r2 = (struct eventlog6_EvtRpcGetEventMetadataEnum *)r;
     349           0 :                 if (DEBUGLEVEL >= 10) {
     350           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetEventMetadataEnum, NDR_IN, r2);
     351             :                 }
     352           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetEventMetadataEnum(dce_call, mem_ctx, r2);
     353           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     354           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetEventMetadataEnum will reply async\n"));
     355             :                 }
     356           0 :                 break;
     357             :         }
     358           0 :         case 27: {
     359           0 :                 struct eventlog6_EvtRpcGetNextEventMetadata *r2 = (struct eventlog6_EvtRpcGetNextEventMetadata *)r;
     360           0 :                 if (DEBUGLEVEL >= 10) {
     361           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetNextEventMetadata, NDR_IN, r2);
     362             :                 }
     363           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetNextEventMetadata(dce_call, mem_ctx, r2);
     364           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     365           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetNextEventMetadata will reply async\n"));
     366             :                 }
     367           0 :                 break;
     368             :         }
     369           0 :         case 28: {
     370           0 :                 struct eventlog6_EvtRpcGetClassicLogDisplayName *r2 = (struct eventlog6_EvtRpcGetClassicLogDisplayName *)r;
     371           0 :                 if (DEBUGLEVEL >= 10) {
     372           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetClassicLogDisplayName, NDR_IN, r2);
     373             :                 }
     374           0 :                 r2->out.result = dcesrv_eventlog6_EvtRpcGetClassicLogDisplayName(dce_call, mem_ctx, r2);
     375           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     376           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetClassicLogDisplayName will reply async\n"));
     377             :                 }
     378           0 :                 break;
     379             :         }
     380             : 
     381           0 :         default:
     382           0 :                 dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
     383           0 :                 break;
     384             :         }
     385             : 
     386           0 :         if (dce_call->fault_code != 0) {
     387           0 :                 return NT_STATUS_NET_WRITE_FAULT;
     388             :         }
     389             : 
     390           0 :         return NT_STATUS_OK;
     391             : }
     392             : 
     393           0 : static NTSTATUS eventlog6__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
     394             : {
     395           0 :         uint16_t opnum = dce_call->pkt.u.request.opnum;
     396             : 
     397           0 :         switch (opnum) {
     398           0 :         case 0: {
     399           0 :                 struct eventlog6_EvtRpcRegisterRemoteSubscription *r2 = (struct eventlog6_EvtRpcRegisterRemoteSubscription *)r;
     400           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     401           0 :                         DEBUG(5,("function eventlog6_EvtRpcRegisterRemoteSubscription replied async\n"));
     402             :                 }
     403           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     404           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterRemoteSubscription, NDR_OUT | NDR_SET_VALUES, r2);
     405             :                 }
     406           0 :                 if (dce_call->fault_code != 0) {
     407           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRegisterRemoteSubscription\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     408             :                 }
     409           0 :                 break;
     410             :         }
     411           0 :         case 1: {
     412           0 :                 struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionNextAsync *)r;
     413           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     414           0 :                         DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionNextAsync replied async\n"));
     415             :                 }
     416           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     417           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionNextAsync, NDR_OUT | NDR_SET_VALUES, r2);
     418             :                 }
     419           0 :                 if (dce_call->fault_code != 0) {
     420           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRemoteSubscriptionNextAsync\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     421             :                 }
     422           0 :                 break;
     423             :         }
     424           0 :         case 2: {
     425           0 :                 struct eventlog6_EvtRpcRemoteSubscriptionNext *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionNext *)r;
     426           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     427           0 :                         DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionNext replied async\n"));
     428             :                 }
     429           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     430           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionNext, NDR_OUT | NDR_SET_VALUES, r2);
     431             :                 }
     432           0 :                 if (dce_call->fault_code != 0) {
     433           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRemoteSubscriptionNext\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     434             :                 }
     435           0 :                 break;
     436             :         }
     437           0 :         case 3: {
     438           0 :                 struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *r2 = (struct eventlog6_EvtRpcRemoteSubscriptionWaitAsync *)r;
     439           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     440           0 :                         DEBUG(5,("function eventlog6_EvtRpcRemoteSubscriptionWaitAsync replied async\n"));
     441             :                 }
     442           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     443           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRemoteSubscriptionWaitAsync, NDR_OUT | NDR_SET_VALUES, r2);
     444             :                 }
     445           0 :                 if (dce_call->fault_code != 0) {
     446           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRemoteSubscriptionWaitAsync\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     447             :                 }
     448           0 :                 break;
     449             :         }
     450           0 :         case 4: {
     451           0 :                 struct eventlog6_EvtRpcRegisterControllableOperation *r2 = (struct eventlog6_EvtRpcRegisterControllableOperation *)r;
     452           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     453           0 :                         DEBUG(5,("function eventlog6_EvtRpcRegisterControllableOperation replied async\n"));
     454             :                 }
     455           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     456           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterControllableOperation, NDR_OUT | NDR_SET_VALUES, r2);
     457             :                 }
     458           0 :                 if (dce_call->fault_code != 0) {
     459           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRegisterControllableOperation\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     460             :                 }
     461           0 :                 break;
     462             :         }
     463           0 :         case 5: {
     464           0 :                 struct eventlog6_EvtRpcRegisterLogQuery *r2 = (struct eventlog6_EvtRpcRegisterLogQuery *)r;
     465           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     466           0 :                         DEBUG(5,("function eventlog6_EvtRpcRegisterLogQuery replied async\n"));
     467             :                 }
     468           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     469           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRegisterLogQuery, NDR_OUT | NDR_SET_VALUES, r2);
     470             :                 }
     471           0 :                 if (dce_call->fault_code != 0) {
     472           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRegisterLogQuery\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     473             :                 }
     474           0 :                 break;
     475             :         }
     476           0 :         case 6: {
     477           0 :                 struct eventlog6_EvtRpcClearLog *r2 = (struct eventlog6_EvtRpcClearLog *)r;
     478           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     479           0 :                         DEBUG(5,("function eventlog6_EvtRpcClearLog replied async\n"));
     480             :                 }
     481           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     482           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcClearLog, NDR_OUT | NDR_SET_VALUES, r2);
     483             :                 }
     484           0 :                 if (dce_call->fault_code != 0) {
     485           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcClearLog\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     486             :                 }
     487           0 :                 break;
     488             :         }
     489           0 :         case 7: {
     490           0 :                 struct eventlog6_EvtRpcExportLog *r2 = (struct eventlog6_EvtRpcExportLog *)r;
     491           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     492           0 :                         DEBUG(5,("function eventlog6_EvtRpcExportLog replied async\n"));
     493             :                 }
     494           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     495           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcExportLog, NDR_OUT | NDR_SET_VALUES, r2);
     496             :                 }
     497           0 :                 if (dce_call->fault_code != 0) {
     498           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcExportLog\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     499             :                 }
     500           0 :                 break;
     501             :         }
     502           0 :         case 8: {
     503           0 :                 struct eventlog6_EvtRpcLocalizeExportLog *r2 = (struct eventlog6_EvtRpcLocalizeExportLog *)r;
     504           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     505           0 :                         DEBUG(5,("function eventlog6_EvtRpcLocalizeExportLog replied async\n"));
     506             :                 }
     507           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     508           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcLocalizeExportLog, NDR_OUT | NDR_SET_VALUES, r2);
     509             :                 }
     510           0 :                 if (dce_call->fault_code != 0) {
     511           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcLocalizeExportLog\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     512             :                 }
     513           0 :                 break;
     514             :         }
     515           0 :         case 9: {
     516           0 :                 struct eventlog6_EvtRpcMessageRender *r2 = (struct eventlog6_EvtRpcMessageRender *)r;
     517           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     518           0 :                         DEBUG(5,("function eventlog6_EvtRpcMessageRender replied async\n"));
     519             :                 }
     520           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     521           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcMessageRender, NDR_OUT | NDR_SET_VALUES, r2);
     522             :                 }
     523           0 :                 if (dce_call->fault_code != 0) {
     524           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcMessageRender\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     525             :                 }
     526           0 :                 break;
     527             :         }
     528           0 :         case 10: {
     529           0 :                 struct eventlog6_EvtRpcMessageRenderDefault *r2 = (struct eventlog6_EvtRpcMessageRenderDefault *)r;
     530           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     531           0 :                         DEBUG(5,("function eventlog6_EvtRpcMessageRenderDefault replied async\n"));
     532             :                 }
     533           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     534           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcMessageRenderDefault, NDR_OUT | NDR_SET_VALUES, r2);
     535             :                 }
     536           0 :                 if (dce_call->fault_code != 0) {
     537           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcMessageRenderDefault\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     538             :                 }
     539           0 :                 break;
     540             :         }
     541           0 :         case 11: {
     542           0 :                 struct eventlog6_EvtRpcQueryNext *r2 = (struct eventlog6_EvtRpcQueryNext *)r;
     543           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     544           0 :                         DEBUG(5,("function eventlog6_EvtRpcQueryNext replied async\n"));
     545             :                 }
     546           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     547           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcQueryNext, NDR_OUT | NDR_SET_VALUES, r2);
     548             :                 }
     549           0 :                 if (dce_call->fault_code != 0) {
     550           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcQueryNext\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     551             :                 }
     552           0 :                 break;
     553             :         }
     554           0 :         case 12: {
     555           0 :                 struct eventlog6_EvtRpcQuerySeek *r2 = (struct eventlog6_EvtRpcQuerySeek *)r;
     556           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     557           0 :                         DEBUG(5,("function eventlog6_EvtRpcQuerySeek replied async\n"));
     558             :                 }
     559           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     560           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcQuerySeek, NDR_OUT | NDR_SET_VALUES, r2);
     561             :                 }
     562           0 :                 if (dce_call->fault_code != 0) {
     563           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcQuerySeek\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     564             :                 }
     565           0 :                 break;
     566             :         }
     567           0 :         case 13: {
     568           0 :                 struct eventlog6_EvtRpcClose *r2 = (struct eventlog6_EvtRpcClose *)r;
     569           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     570           0 :                         DEBUG(5,("function eventlog6_EvtRpcClose replied async\n"));
     571             :                 }
     572           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     573           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcClose, NDR_OUT | NDR_SET_VALUES, r2);
     574             :                 }
     575           0 :                 if (dce_call->fault_code != 0) {
     576           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcClose\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     577             :                 }
     578           0 :                 break;
     579             :         }
     580           0 :         case 14: {
     581           0 :                 struct eventlog6_EvtRpcCancel *r2 = (struct eventlog6_EvtRpcCancel *)r;
     582           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     583           0 :                         DEBUG(5,("function eventlog6_EvtRpcCancel replied async\n"));
     584             :                 }
     585           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     586           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcCancel, NDR_OUT | NDR_SET_VALUES, r2);
     587             :                 }
     588           0 :                 if (dce_call->fault_code != 0) {
     589           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcCancel\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     590             :                 }
     591           0 :                 break;
     592             :         }
     593           0 :         case 15: {
     594           0 :                 struct eventlog6_EvtRpcAssertConfig *r2 = (struct eventlog6_EvtRpcAssertConfig *)r;
     595           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     596           0 :                         DEBUG(5,("function eventlog6_EvtRpcAssertConfig replied async\n"));
     597             :                 }
     598           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     599           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcAssertConfig, NDR_OUT | NDR_SET_VALUES, r2);
     600             :                 }
     601           0 :                 if (dce_call->fault_code != 0) {
     602           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcAssertConfig\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     603             :                 }
     604           0 :                 break;
     605             :         }
     606           0 :         case 16: {
     607           0 :                 struct eventlog6_EvtRpcRetractConfig *r2 = (struct eventlog6_EvtRpcRetractConfig *)r;
     608           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     609           0 :                         DEBUG(5,("function eventlog6_EvtRpcRetractConfig replied async\n"));
     610             :                 }
     611           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     612           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcRetractConfig, NDR_OUT | NDR_SET_VALUES, r2);
     613             :                 }
     614           0 :                 if (dce_call->fault_code != 0) {
     615           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcRetractConfig\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     616             :                 }
     617           0 :                 break;
     618             :         }
     619           0 :         case 17: {
     620           0 :                 struct eventlog6_EvtRpcOpenLogHandle *r2 = (struct eventlog6_EvtRpcOpenLogHandle *)r;
     621           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     622           0 :                         DEBUG(5,("function eventlog6_EvtRpcOpenLogHandle replied async\n"));
     623             :                 }
     624           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     625           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcOpenLogHandle, NDR_OUT | NDR_SET_VALUES, r2);
     626             :                 }
     627           0 :                 if (dce_call->fault_code != 0) {
     628           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcOpenLogHandle\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     629             :                 }
     630           0 :                 break;
     631             :         }
     632           0 :         case 18: {
     633           0 :                 struct eventlog6_EvtRpcGetLogFileInfo *r2 = (struct eventlog6_EvtRpcGetLogFileInfo *)r;
     634           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     635           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetLogFileInfo replied async\n"));
     636             :                 }
     637           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     638           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetLogFileInfo, NDR_OUT | NDR_SET_VALUES, r2);
     639             :                 }
     640           0 :                 if (dce_call->fault_code != 0) {
     641           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetLogFileInfo\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     642             :                 }
     643           0 :                 break;
     644             :         }
     645           0 :         case 19: {
     646           0 :                 struct eventlog6_EvtRpcGetChannelList *r2 = (struct eventlog6_EvtRpcGetChannelList *)r;
     647           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     648           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetChannelList replied async\n"));
     649             :                 }
     650           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     651           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetChannelList, NDR_OUT | NDR_SET_VALUES, r2);
     652             :                 }
     653           0 :                 if (dce_call->fault_code != 0) {
     654           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetChannelList\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     655             :                 }
     656           0 :                 break;
     657             :         }
     658           0 :         case 20: {
     659           0 :                 struct eventlog6_EvtRpcGetChannelConfig *r2 = (struct eventlog6_EvtRpcGetChannelConfig *)r;
     660           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     661           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetChannelConfig replied async\n"));
     662             :                 }
     663           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     664           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetChannelConfig, NDR_OUT | NDR_SET_VALUES, r2);
     665             :                 }
     666           0 :                 if (dce_call->fault_code != 0) {
     667           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetChannelConfig\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     668             :                 }
     669           0 :                 break;
     670             :         }
     671           0 :         case 21: {
     672           0 :                 struct eventlog6_EvtRpcPutChannelConfig *r2 = (struct eventlog6_EvtRpcPutChannelConfig *)r;
     673           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     674           0 :                         DEBUG(5,("function eventlog6_EvtRpcPutChannelConfig replied async\n"));
     675             :                 }
     676           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     677           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcPutChannelConfig, NDR_OUT | NDR_SET_VALUES, r2);
     678             :                 }
     679           0 :                 if (dce_call->fault_code != 0) {
     680           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcPutChannelConfig\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     681             :                 }
     682           0 :                 break;
     683             :         }
     684           0 :         case 22: {
     685           0 :                 struct eventlog6_EvtRpcGetPublisherList *r2 = (struct eventlog6_EvtRpcGetPublisherList *)r;
     686           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     687           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetPublisherList replied async\n"));
     688             :                 }
     689           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     690           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherList, NDR_OUT | NDR_SET_VALUES, r2);
     691             :                 }
     692           0 :                 if (dce_call->fault_code != 0) {
     693           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetPublisherList\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     694             :                 }
     695           0 :                 break;
     696             :         }
     697           0 :         case 23: {
     698           0 :                 struct eventlog6_EvtRpcGetPublisherListForChannel *r2 = (struct eventlog6_EvtRpcGetPublisherListForChannel *)r;
     699           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     700           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetPublisherListForChannel replied async\n"));
     701             :                 }
     702           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     703           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherListForChannel, NDR_OUT | NDR_SET_VALUES, r2);
     704             :                 }
     705           0 :                 if (dce_call->fault_code != 0) {
     706           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetPublisherListForChannel\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     707             :                 }
     708           0 :                 break;
     709             :         }
     710           0 :         case 24: {
     711           0 :                 struct eventlog6_EvtRpcGetPublisherMetadata *r2 = (struct eventlog6_EvtRpcGetPublisherMetadata *)r;
     712           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     713           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetPublisherMetadata replied async\n"));
     714             :                 }
     715           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     716           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherMetadata, NDR_OUT | NDR_SET_VALUES, r2);
     717             :                 }
     718           0 :                 if (dce_call->fault_code != 0) {
     719           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetPublisherMetadata\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     720             :                 }
     721           0 :                 break;
     722             :         }
     723           0 :         case 25: {
     724           0 :                 struct eventlog6_EvtRpcGetPublisherResourceMetadata *r2 = (struct eventlog6_EvtRpcGetPublisherResourceMetadata *)r;
     725           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     726           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetPublisherResourceMetadata replied async\n"));
     727             :                 }
     728           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     729           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetPublisherResourceMetadata, NDR_OUT | NDR_SET_VALUES, r2);
     730             :                 }
     731           0 :                 if (dce_call->fault_code != 0) {
     732           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetPublisherResourceMetadata\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     733             :                 }
     734           0 :                 break;
     735             :         }
     736           0 :         case 26: {
     737           0 :                 struct eventlog6_EvtRpcGetEventMetadataEnum *r2 = (struct eventlog6_EvtRpcGetEventMetadataEnum *)r;
     738           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     739           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetEventMetadataEnum replied async\n"));
     740             :                 }
     741           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     742           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetEventMetadataEnum, NDR_OUT | NDR_SET_VALUES, r2);
     743             :                 }
     744           0 :                 if (dce_call->fault_code != 0) {
     745           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetEventMetadataEnum\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     746             :                 }
     747           0 :                 break;
     748             :         }
     749           0 :         case 27: {
     750           0 :                 struct eventlog6_EvtRpcGetNextEventMetadata *r2 = (struct eventlog6_EvtRpcGetNextEventMetadata *)r;
     751           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     752           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetNextEventMetadata replied async\n"));
     753             :                 }
     754           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     755           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetNextEventMetadata, NDR_OUT | NDR_SET_VALUES, r2);
     756             :                 }
     757           0 :                 if (dce_call->fault_code != 0) {
     758           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetNextEventMetadata\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     759             :                 }
     760           0 :                 break;
     761             :         }
     762           0 :         case 28: {
     763           0 :                 struct eventlog6_EvtRpcGetClassicLogDisplayName *r2 = (struct eventlog6_EvtRpcGetClassicLogDisplayName *)r;
     764           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
     765           0 :                         DEBUG(5,("function eventlog6_EvtRpcGetClassicLogDisplayName replied async\n"));
     766             :                 }
     767           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
     768           0 :                         NDR_PRINT_FUNCTION_DEBUG(eventlog6_EvtRpcGetClassicLogDisplayName, NDR_OUT | NDR_SET_VALUES, r2);
     769             :                 }
     770           0 :                 if (dce_call->fault_code != 0) {
     771           0 :                         DEBUG(2,("dcerpc_fault %s in eventlog6_EvtRpcGetClassicLogDisplayName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
     772             :                 }
     773           0 :                 break;
     774             :         }
     775             : 
     776           0 :         default:
     777           0 :                 dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
     778           0 :                 break;
     779             :         }
     780             : 
     781           0 :         if (dce_call->fault_code != 0) {
     782           0 :                 return NT_STATUS_NET_WRITE_FAULT;
     783             :         }
     784             : 
     785           0 :         return NT_STATUS_OK;
     786             : }
     787             : 
     788           0 : static NTSTATUS eventlog6__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, const void *r)
     789             : {
     790           0 :         enum ndr_err_code ndr_err;
     791           0 :         uint16_t opnum = dce_call->pkt.u.request.opnum;
     792             : 
     793           0 :         ndr_err = ndr_table_eventlog6.calls[opnum].ndr_push(push, NDR_OUT, r);
     794           0 :         if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
     795           0 :                 dce_call->fault_code = DCERPC_FAULT_NDR;
     796           0 :                 return NT_STATUS_NET_WRITE_FAULT;
     797             :         }
     798             : 
     799           0 :         return NT_STATUS_OK;
     800             : }
     801             : 
     802             : static const struct dcesrv_interface dcesrv_eventlog6_interface = {
     803             :         .name               = "eventlog6",
     804             :         .syntax_id          = {{0xf6beaff7,0x1e19,0x4fbb,{0x9f,0x8f},{0xb8,0x9e,0x20,0x18,0x33,0x7c}},1.0},
     805             :         .bind               = eventlog6__op_bind,
     806             :         .unbind             = eventlog6__op_unbind,
     807             :         .ndr_pull           = eventlog6__op_ndr_pull,
     808             :         .dispatch           = eventlog6__op_dispatch,
     809             :         .reply              = eventlog6__op_reply,
     810             :         .ndr_push           = eventlog6__op_ndr_push,
     811             :         .local              = NULL,
     812             : #ifdef DCESRV_INTERFACE_EVENTLOG6_FLAGS
     813             :         .flags              = DCESRV_INTERFACE_EVENTLOG6_FLAGS
     814             : #else
     815             :         .flags              = 0
     816             : #endif
     817             : };
     818             : 
     819             : 
     820          64 : static NTSTATUS eventlog6__op_init_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server)
     821             : {
     822           2 :         int i;
     823             : #ifdef DCESRV_INTERFACE_EVENTLOG6_NCACN_NP_SECONDARY_ENDPOINT
     824             :         const char *ncacn_np_secondary_endpoint =
     825             :                 DCESRV_INTERFACE_EVENTLOG6_NCACN_NP_SECONDARY_ENDPOINT;
     826             : #else
     827          64 :         const char *ncacn_np_secondary_endpoint = NULL;
     828             : #endif
     829             : 
     830         128 :         for (i=0;i<ndr_table_eventlog6.endpoints->count;i++) {
     831           2 :                 NTSTATUS ret;
     832          64 :                 const char *name = ndr_table_eventlog6.endpoints->names[i];
     833             : 
     834          64 :                 ret = dcesrv_interface_register(dce_ctx,
     835             :                                                 name,
     836             :                                                 ncacn_np_secondary_endpoint,
     837             :                                                 &dcesrv_eventlog6_interface,
     838             :                                                 NULL);
     839          64 :                 if (!NT_STATUS_IS_OK(ret)) {
     840           0 :                         DEBUG(1,("eventlog6_op_init_server: failed to register endpoint '%s'\n",name));
     841           0 :                         return ret;
     842             :                 }
     843             :         }
     844             : 
     845          64 :         return NT_STATUS_OK;
     846             : }
     847             : 
     848           0 : static NTSTATUS eventlog6__op_shutdown_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server)
     849             : {
     850           0 :         return NT_STATUS_OK;
     851             : }
     852             : 
     853           0 : static bool eventlog6__op_interface_by_uuid(struct dcesrv_interface *iface, const struct GUID *uuid, uint32_t if_version)
     854             : {
     855           0 :         if (dcesrv_eventlog6_interface.syntax_id.if_version == if_version &&
     856           0 :                 GUID_equal(&dcesrv_eventlog6_interface.syntax_id.uuid, uuid)) {
     857           0 :                 memcpy(iface,&dcesrv_eventlog6_interface, sizeof(*iface));
     858           0 :                 return true;
     859             :         }
     860             : 
     861           0 :         return false;
     862             : }
     863             : 
     864           0 : static bool eventlog6__op_interface_by_name(struct dcesrv_interface *iface, const char *name)
     865             : {
     866           0 :         if (strcmp(dcesrv_eventlog6_interface.name, name)==0) {
     867           0 :                 memcpy(iface, &dcesrv_eventlog6_interface, sizeof(*iface));
     868           0 :                 return true;
     869             :         }
     870             : 
     871           0 :         return false;
     872             : }
     873             : 
     874          66 : NTSTATUS dcerpc_server_eventlog6_init(TALLOC_CTX *ctx)
     875             : {
     876           2 :         NTSTATUS ret;
     877           2 :         static const struct dcesrv_endpoint_server ep_server = {
     878             :             /* fill in our name */
     879             :             .name = "eventlog6",
     880             : 
     881             :             /* Initialization flag */
     882             :             .initialized = false,
     883             : 
     884             :             /* fill in all the operations */
     885             : #ifdef DCESRV_INTERFACE_EVENTLOG6_INIT_SERVER
     886             :             .init_server = DCESRV_INTERFACE_EVENTLOG6_INIT_SERVER,
     887             : #else
     888             :             .init_server = eventlog6__op_init_server,
     889             : #endif
     890             : #ifdef DCESRV_INTERFACE_EVENTLOG6_SHUTDOWN_SERVER
     891             :             .shutdown_server = DCESRV_INTERFACE_EVENTLOG6_SHUTDOWN_SERVER,
     892             : #else
     893             :             .shutdown_server = eventlog6__op_shutdown_server,
     894             : #endif
     895             :             .interface_by_uuid = eventlog6__op_interface_by_uuid,
     896             :             .interface_by_name = eventlog6__op_interface_by_name
     897             :         };
     898             :         /* register ourselves with the DCERPC subsystem. */
     899          66 :         ret = dcerpc_register_ep_server(&ep_server);
     900             : 
     901          66 :         if (!NT_STATUS_IS_OK(ret)) {
     902           0 :                 DEBUG(0,("Failed to register 'eventlog6' endpoint server!\n"));
     903           0 :                 return ret;
     904             :         }
     905             : 
     906          66 :         return ret;
     907             : }
     908             : 

Generated by: LCOV version 1.14