libcli/named_pipe_auth Remove support for unused levels 0-2.
[Samba.git] / librpc / idl / dcerpc.idl
blobb7ba4326889a6f111ae2e20517bac152dd6db942
1 #include "idl_types.h"
3 /*
4 the base dcerpc packet definitions - not traditionally coded as IDL,
5 but given that pidl can handle it nicely it simplifies things a lot
6 to do it this way
8 see http://www.opengroup.org/onlinepubs/9629399/chap12.htm for packet
9 layouts
11 import "misc.idl";
13 interface dcerpc
15 typedef struct {
16 uint16 context_id;
17 uint8 num_transfer_syntaxes;
18 ndr_syntax_id abstract_syntax;
19 ndr_syntax_id transfer_syntaxes[num_transfer_syntaxes];
20 } dcerpc_ctx_list;
22 typedef [public] struct {
23 uint16 max_xmit_frag;
24 uint16 max_recv_frag;
25 uint32 assoc_group_id;
26 uint8 num_contexts;
27 dcerpc_ctx_list ctx_list[num_contexts];
28 [flag(NDR_REMAINING)] DATA_BLOB auth_info;
29 } dcerpc_bind;
31 const uint8 DCERPC_REQUEST_LENGTH = 24;
33 typedef struct {
34 } dcerpc_empty;
36 typedef [nodiscriminant] union {
37 [default] dcerpc_empty empty;
38 [case(LIBNDR_FLAG_OBJECT_PRESENT)] GUID object;
39 } dcerpc_object;
41 typedef struct {
42 uint32 alloc_hint;
43 uint16 context_id;
44 uint16 opnum;
45 [switch_is(ndr->flags & LIBNDR_FLAG_OBJECT_PRESENT)] dcerpc_object object;
46 [flag(NDR_ALIGN8)] DATA_BLOB _pad;
47 [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier;
48 } dcerpc_request;
50 const int DCERPC_BIND_REASON_ASYNTAX = 1;
51 const int DCERPC_BIND_PROVIDER_REJECT = 2;
52 const int DECRPC_BIND_PROTOCOL_VERSION_NOT_SUPPORTED = 4;
53 const int DCERPC_BIND_REASON_INVALID_AUTH_TYPE = 8;
55 typedef struct {
56 uint16 result;
57 uint16 reason;
58 ndr_syntax_id syntax;
59 } dcerpc_ack_ctx;
61 typedef struct {
62 uint16 max_xmit_frag;
63 uint16 max_recv_frag;
64 uint32 assoc_group_id;
65 [value(strlen(secondary_address)+1)] uint16 secondary_address_size;
66 [charset(DOS)] uint8 secondary_address[secondary_address_size];
67 [flag(NDR_ALIGN4)] DATA_BLOB _pad1;
68 uint8 num_results;
69 dcerpc_ack_ctx ctx_list[num_results];
70 [flag(NDR_REMAINING)] DATA_BLOB auth_info;
71 } dcerpc_bind_ack;
73 typedef struct {
74 uint32 num_versions;
75 uint32 versions[num_versions];
76 } dcerpc_bind_nak_versions;
78 typedef [nodiscriminant] union {
79 [case(DECRPC_BIND_PROTOCOL_VERSION_NOT_SUPPORTED)] dcerpc_bind_nak_versions v;
80 [default] ;
81 } dcerpc_bind_nak_versions_ctr;
83 typedef struct {
84 uint16 reject_reason;
85 [switch_is(reject_reason)] dcerpc_bind_nak_versions_ctr versions;
86 } dcerpc_bind_nak;
88 const uint8 DCERPC_RESPONSE_LENGTH = 24;
90 typedef struct {
91 uint32 alloc_hint;
92 uint16 context_id;
93 uint8 cancel_count;
94 [flag(NDR_ALIGN8)] DATA_BLOB _pad;
95 [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier;
96 } dcerpc_response;
98 typedef [v1_enum] enum {
99 DCERPC_NCA_S_COMM_FAILURE = 0x1C010001,
100 DCERPC_NCA_S_OP_RNG_ERROR = 0x1C010002,
101 DCERPC_NCA_S_UNKNOWN_IF = 0x1C010003,
102 DCERPC_NCA_S_WRONG_BOOT_TIME = 0x1C010006,
103 DCERPC_NCA_S_YOU_CRASHED = 0x1C010009,
104 DCERPC_NCA_S_PROTO_ERROR = 0x1C01000B,
105 DCERPC_NCA_S_OUT_ARGS_TOO_BIG = 0x1C010013,
106 DCERPC_NCA_S_SERVER_TOO_BUSY = 0x1C010014,
107 DCERPC_NCA_S_FAULT_STRING_TOO_LARGE = 0x1C010015,
108 DCERPC_NCA_S_UNSUPPORTED_TYPE = 0x1C010017,
109 DCERPC_NCA_S_FAULT_INT_DIV_BY_ZERO = 0x1C000001,
110 DCERPC_NCA_S_FAULT_ADDR_ERROR = 0x1C000002,
111 DCERPC_NCA_S_FAULT_FP_DIV_BY_ZERO = 0x1C000003,
112 DCERPC_NCA_S_FAULT_FP_UNDERFLOW = 0x1C000004,
113 DCERPC_NCA_S_FAULT_FP_OVERRFLOW = 0x1C000005,
114 DCERPC_NCA_S_FAULT_INVALID_TAG = 0x1C000006,
115 DCERPC_NCA_S_FAULT_INVALID_BOUND = 0x1C000007,
116 DCERPC_NCA_S_FAULT_RPC_VERSION_MISMATCH = 0x1C000008,
117 DCERPC_NCA_S_FAULT_UNSPEC_REJECT = 0x1C000009,
118 DCERPC_NCA_S_FAULT_BAD_ACTID = 0x1C00000A,
119 DCERPC_NCA_S_FAULT_WHO_ARE_YOU_FAILED = 0x1C00000B,
120 DCERPC_NCA_S_FAULT_MANAGER_NOT_ENTERED = 0x1C00000C,
121 DCERPC_NCA_S_FAULT_CANCEL = 0x1C00000D,
122 DCERPC_NCA_S_FAULT_ILL_INST = 0x1C00000E,
123 DCERPC_NCA_S_FAULT_FP_ERROR = 0x1C00000F,
124 DCERPC_NCA_S_FAULT_INT_OVERFLOW = 0x1C000010,
125 DCERPC_NCA_S_UNUSED_1C000011 = 0x1C000011,
126 DCERPC_NCA_S_FAULT_UNSPEC = 0x1C000012,
127 DCERPC_NCA_S_FAULT_REMOTE_COMM_FAILURE = 0x1C000013,
128 DCERPC_NCA_S_FAULT_PIPE_EMPTY = 0x1C000014,
129 DCERPC_NCA_S_FAULT_PIPE_CLOSED = 0x1C000015,
130 DCERPC_NCA_S_FAULT_PIPE_ORDER = 0x1C000016,
131 DCERPC_NCA_S_FAULT_PIPE_DISCIPLINE = 0x1C000017,
132 DCERPC_NCA_S_FAULT_PIPE_COMM_ERROR = 0x1C000018,
133 DCERPC_NCA_S_FAULT_PIPE_MEMORY = 0x1C000019,
134 DCERPC_NCA_S_FAULT_CONTEXT_MISMATCH = 0x1C00001A,
135 DCERPC_NCA_S_FAULT_REMOTE_NO_MEMORY = 0x1C00001B,
136 DCERPC_NCA_S_INVALID_PRES_CONTEXT_ID = 0x1C00001C,
137 DCERPC_NCA_S_UNSUPPORTED_AUTHN_LEVEL = 0x1C00001D,
138 DCERPC_NCA_S_UNUSED_1C00001E = 0x1C00001E,
139 DCERPC_NCA_S_INVALID_CHECKSUM = 0x1C00001F,
140 DCERPC_NCA_S_INVALID_CRC = 0x1C000020,
141 DCERPC_NCA_S_FAULT_USER_DEFINED = 0x1C000021,
142 DCERPC_NCA_S_FAULT_TX_OPEN_FAILED = 0x1C000022,
143 DCERPC_NCA_S_FAULT_CODESET_CONV_ERROR = 0x1C000023,
144 DCERPC_NCA_S_FAULT_OBJECT_NOT_FOUND = 0x1C000024,
145 DCERPC_NCA_S_FAULT_NO_CLIENT_STUB = 0x1C000025
146 } dcerpc_nca_status;
148 const int DCERPC_FAULT_OP_RNG_ERROR = 0x1c010002;
149 const int DCERPC_FAULT_UNK_IF = 0x1c010003;
150 const int DCERPC_FAULT_NDR = 0x000006f7;
151 const int DCERPC_FAULT_INVALID_TAG = 0x1c000006;
152 const int DCERPC_FAULT_CONTEXT_MISMATCH = 0x1c00001a;
153 const int DCERPC_FAULT_OTHER = 0x00000001;
154 const int DCERPC_FAULT_ACCESS_DENIED = 0x00000005;
155 const int DCERPC_FAULT_CANT_PERFORM = 0x000006d8;
156 const int DCERPC_FAULT_SEC_PKG_ERROR = 0x00000721;
158 /* we return this fault when we haven't yet run the test
159 to see what fault w2k3 returns in this case */
160 const int DCERPC_FAULT_TODO = 0x00000042;
162 typedef struct {
163 uint32 alloc_hint;
164 uint16 context_id;
165 uint8 cancel_count;
166 dcerpc_nca_status status;
167 [flag(NDR_REMAINING)] DATA_BLOB _pad;
168 } dcerpc_fault;
170 /* the auth types we know about */
171 typedef [enum8bit] enum {
172 DCERPC_AUTH_TYPE_NONE = 0,
173 /* this seems to be not krb5! */
174 DCERPC_AUTH_TYPE_KRB5_1 = 1,
175 DCERPC_AUTH_TYPE_SPNEGO = 9,
176 DCERPC_AUTH_TYPE_NTLMSSP = 10,
177 DCERPC_AUTH_TYPE_KRB5 = 16,
178 DCERPC_AUTH_TYPE_DPA = 17,
179 DCERPC_AUTH_TYPE_MSN = 18,
180 DCERPC_AUTH_TYPE_DIGEST = 21,
181 DCERPC_AUTH_TYPE_SCHANNEL = 68,
182 DCERPC_AUTH_TYPE_MSMQ = 100
183 } dcerpc_AuthType;
185 typedef [enum8bit] enum {
186 DCERPC_AUTH_LEVEL_NONE = 1,
187 DCERPC_AUTH_LEVEL_CONNECT = 2,
188 DCERPC_AUTH_LEVEL_CALL = 3,
189 DCERPC_AUTH_LEVEL_PACKET = 4,
190 DCERPC_AUTH_LEVEL_INTEGRITY = 5,
191 DCERPC_AUTH_LEVEL_PRIVACY = 6
192 } dcerpc_AuthLevel;
194 const uint8 DCERPC_AUTH_LEVEL_DEFAULT = DCERPC_AUTH_LEVEL_CONNECT;
196 typedef [public] struct {
197 dcerpc_AuthType auth_type;
198 dcerpc_AuthLevel auth_level;
199 uint8 auth_pad_length;
200 uint8 auth_reserved;
201 uint32 auth_context_id;
202 [flag(NDR_REMAINING)] DATA_BLOB credentials;
203 } dcerpc_auth;
205 const uint8 DCERPC_AUTH_TRAILER_LENGTH = 8;
207 typedef [public] struct {
208 [value(0)] uint32 _pad;
209 [flag(NDR_REMAINING)] DATA_BLOB auth_info;
210 } dcerpc_auth3;
212 typedef [public] struct {
213 [value(0)] uint32 _pad;
214 [flag(NDR_REMAINING)] DATA_BLOB auth_info;
215 } dcerpc_orphaned;
217 typedef [public] struct {
218 [value(0)] uint32 _pad;
219 [flag(NDR_REMAINING)] DATA_BLOB auth_info;
220 } dcerpc_co_cancel;
222 typedef [public] struct {
223 uint32 version;
224 uint32 id;
225 } dcerpc_cl_cancel;
227 typedef [public] struct {
228 uint32 version;
229 uint32 id;
230 boolean32 server_is_accepting;
231 } dcerpc_cancel_ack;
233 typedef [public] struct {
234 uint32 version;
235 uint8 _pad1;
236 uint16 window_size;
237 uint32 max_tdsu;
238 uint32 max_frag_size;
239 uint16 serial_no;
240 uint16 selack_size;
241 uint32 selack[selack_size];
242 } dcerpc_fack;
244 typedef [public] struct {
245 } dcerpc_ack;
247 typedef [public] struct {
248 } dcerpc_ping;
250 typedef [public] struct {
251 } dcerpc_shutdown;
253 typedef [public] struct {
254 } dcerpc_working;
256 /* RTS data structures */
257 typedef [public] struct {
258 GUID Cookie;
259 } RTSCookie;
261 typedef [v1_enum,public] enum {
262 RTS_IPV4 = 0,
263 RTS_IPV6 = 1
264 } AddressType;
266 typedef [nodiscriminant] union {
267 [case(RTS_IPV4)] ipv4address ClientAddressIPV4;
268 [case(RTS_IPV6)] ipv6address ClientAddressIPV6;
269 } ClientAddressType;
271 typedef [public] struct {
272 AddressType AddressType;
273 [switch_is(AddressType)] ClientAddressType ClientAddress;
274 uint8 Padding[12];
275 } ClientAddress;
277 typedef [v1_enum, public] enum {
278 FDClient = 0,
279 FDInProxy = 1,
280 FDServer = 2,
281 FDOutProxy = 3
282 } ForwardDestination;
284 typedef [public] struct {
285 uint32 BytesReceived;
286 uint32 AvailableWindow;
287 RTSCookie ChannelCookie;
288 } FlowControlAcknowledgment;
290 /* RTS commands */
292 /* RTS command: 0x0 */
293 typedef [public] struct {
294 [range(0x2000,0x40000)] uint32 ReceiveWindowSize;
295 } dcerpc_rts_cmd_ReceiveWindowSize;
297 /* RTS command: 0x1 */
298 typedef [public] struct {
299 FlowControlAcknowledgment Ack;
300 } dcerpc_rts_cmd_FlowControlAck;
302 /* RTS command: 0x2 */
303 typedef [public] struct {
304 [range(0x1D4C0,0xDBBA00)] uint32 ConnectionTimeout;
305 } dcerpc_rts_cmd_ConnectionTimeout;
307 /* RTS command: 0x3 */
308 typedef [public] struct {
309 RTSCookie Cookie;
310 } dcerpc_rts_cmd_Cookie;
312 /* RTS command: 0x4 */
313 typedef [public] struct {
314 [range(0x20000,0x80000000)] uint32 ChannelLifetime;
315 } dcerpc_rts_cmd_ChannelLifetime;
317 /* RTS command: 0x5 */
318 typedef [public] struct {
319 uint32 ClientKeepalive;
320 } dcerpc_rts_cmd_ClientKeepalive;
322 /* RTS command: 0x6 */
323 typedef [public] struct {
324 uint32 Version;
325 } dcerpc_rts_cmd_Version;
327 /* RTS command: 0x7 */
328 typedef [public] struct {
329 } dcerpc_rts_cmd_Empty;
331 /* RTS command: 0x8 */
332 typedef [public] struct {
333 [range(0x0,0xFFFF)] uint32 ConformanceCount;
334 uint8 Padding[ConformanceCount];
335 } dcerpc_rts_cmd_Padding;
337 /* RTS command: 0x9 */
338 typedef [public] struct {
339 } dcerpc_rts_cmd_NegativeANCE;
341 /* RTS Command: 0xA */
342 typedef [public] struct {
343 } dcerpc_rts_cmd_ANCE;
345 /* RTS command: 0xB */
346 typedef [public] struct {
347 ClientAddress ClientAddress;
348 } dcerpc_rts_cmd_ClientAddress;
350 /* RTS command: 0xC */
351 typedef [public] struct {
352 RTSCookie AssociationGroupId;
353 } dcerpc_rts_cmd_AssociationGroupId;
355 /* RTS command: 0xD */
356 typedef [public] struct {
357 ForwardDestination ForwardDestination;
358 } dcerpc_rts_cmd_Destination;
360 /* RTS command: 0xE */
361 typedef [public] struct {
362 uint32 PingTrafficSent;
363 } dcerpc_rts_cmd_PingTrafficSentNotify;
365 typedef [nodiscriminant] union {
366 [case(0x0)] dcerpc_rts_cmd_ReceiveWindowSize ReceiveWindowSize;
367 [case(0x1)] dcerpc_rts_cmd_FlowControlAck FlowControlAck;
368 [case(0x2)] dcerpc_rts_cmd_ConnectionTimeout ConnectionTimeout;
369 [case(0x3)] dcerpc_rts_cmd_Cookie Cookie;
370 [case(0x4)] dcerpc_rts_cmd_ChannelLifetime ChannelLifetime;
371 [case(0x5)] dcerpc_rts_cmd_ClientKeepalive ClientKeepalive;
372 [case(0x6)] dcerpc_rts_cmd_Version Version;
373 [case(0x7)] dcerpc_rts_cmd_Empty Empty;
374 [case(0x8)] dcerpc_rts_cmd_Padding Padding;
375 [case(0x9)] dcerpc_rts_cmd_NegativeANCE NegativeANCE;
376 [case(0xA)] dcerpc_rts_cmd_ANCE ANCE;
377 [case(0xB)] dcerpc_rts_cmd_ClientAddress ClientAddress;
378 [case(0xC)] dcerpc_rts_cmd_AssociationGroupId AssociationGroupId;
379 [case(0xD)] dcerpc_rts_cmd_Destination Destination;
380 [case(0xE)] dcerpc_rts_cmd_PingTrafficSentNotify PingTrafficSentNotify;
381 } dcerpc_rts_cmds;
383 typedef [public] struct {
384 uint32 CommandType;
385 [switch_is(CommandType)] dcerpc_rts_cmds Command;
386 } dcerpc_rts_cmd;
388 /* The RTS flags */
389 typedef [public, bitmap16bit] bitmap {
390 RTS_FLAG_NONE = 0x0000,
391 RTS_FLAG_PING = 0x0001,
392 RTS_FLAG_OTHER_CMD = 0x0002,
393 RTS_FLAG_RECYCLE_CHANNEL = 0x0004,
394 RTS_FLAG_IN_CHANNEL = 0x0008,
395 RTS_FLAG_OUT_CHANNEL = 0x0010,
396 RTS_FLAG_EOF = 0x0020,
397 RTS_FLAG_ECHO = 0x0040
398 } dcerpc_rts_flags;
400 typedef [public] struct {
401 dcerpc_rts_flags Flags;
402 uint16 NumberOfCommands;
403 dcerpc_rts_cmd Commands[NumberOfCommands];
404 } dcerpc_rts;
406 typedef [enum8bit] enum {
407 DCERPC_PKT_REQUEST = 0, /* Ordinary request. */
408 DCERPC_PKT_PING = 1, /* Connectionless is server alive ? */
409 DCERPC_PKT_RESPONSE = 2, /* Ordinary reply. */
410 DCERPC_PKT_FAULT = 3, /* Fault in processing of call. */
411 DCERPC_PKT_WORKING = 4, /* Connectionless reply to a ping when server busy. */
412 DCERPC_PKT_NOCALL = 5, /* Connectionless reply to a ping when server has lost part of clients call. */
413 DCERPC_PKT_REJECT = 6, /* Refuse a request with a code. */
414 DCERPC_PKT_ACK = 7, /* Connectionless client to server code. */
415 DCERPC_PKT_CL_CANCEL = 8, /* Connectionless cancel. */
416 DCERPC_PKT_FACK = 9, /* Connectionless fragment ack. Both client and server send. */
417 DCERPC_PKT_CANCEL_ACK = 10, /* Server ACK to client cancel request. */
418 DCERPC_PKT_BIND = 11, /* Bind to interface. */
419 DCERPC_PKT_BIND_ACK = 12, /* Server ack of bind. */
420 DCERPC_PKT_BIND_NAK = 13, /* Server nack of bind. */
421 DCERPC_PKT_ALTER = 14, /* Alter auth. */
422 DCERPC_PKT_ALTER_RESP = 15, /* Reply to alter auth. */
423 DCERPC_PKT_AUTH3 = 16, /* not the real name! this is undocumented! */
424 DCERPC_PKT_SHUTDOWN = 17, /* Server to client request to shutdown. */
425 DCERPC_PKT_CO_CANCEL = 18, /* Connection-oriented cancel request. */
426 DCERPC_PKT_ORPHANED = 19, /* Client telling server it's aborting a partially sent request or telling server to stop sending replies. */
427 DCERPC_PKT_RTS = 20 /* RTS packets used in ncacn_http */
428 } dcerpc_pkt_type;
430 typedef [nodiscriminant] union {
431 [case(DCERPC_PKT_REQUEST)] dcerpc_request request;
432 [case(DCERPC_PKT_PING)] dcerpc_ping ping;
433 [case(DCERPC_PKT_RESPONSE)] dcerpc_response response;
434 [case(DCERPC_PKT_FAULT)] dcerpc_fault fault;
435 [case(DCERPC_PKT_WORKING)] dcerpc_working working;
436 [case(DCERPC_PKT_NOCALL)] dcerpc_fack nocall;
437 [case(DCERPC_PKT_REJECT)] dcerpc_fault reject;
438 [case(DCERPC_PKT_ACK)] dcerpc_ack ack;
439 [case(DCERPC_PKT_CL_CANCEL)] dcerpc_cl_cancel cl_cancel;
440 [case(DCERPC_PKT_FACK)] dcerpc_fack fack;
441 [case(DCERPC_PKT_CANCEL_ACK)] dcerpc_cancel_ack cancel_ack;
442 [case(DCERPC_PKT_BIND)] dcerpc_bind bind;
443 [case(DCERPC_PKT_BIND_ACK)] dcerpc_bind_ack bind_ack;
444 [case(DCERPC_PKT_BIND_NAK)] dcerpc_bind_nak bind_nak;
445 [case(DCERPC_PKT_ALTER)] dcerpc_bind alter;
446 [case(DCERPC_PKT_ALTER_RESP)] dcerpc_bind_ack alter_resp;
447 [case(DCERPC_PKT_SHUTDOWN)] dcerpc_shutdown shutdown;
448 [case(DCERPC_PKT_CO_CANCEL)] dcerpc_co_cancel co_cancel;
449 [case(DCERPC_PKT_ORPHANED)] dcerpc_orphaned orphaned;
450 [case(DCERPC_PKT_AUTH3)] dcerpc_auth3 auth3;
451 [case(DCERPC_PKT_RTS)] dcerpc_rts rts;
452 } dcerpc_payload;
454 /* pfc_flags values */
455 const uint8 DCERPC_PFC_FLAG_FIRST = 0x01; /* First fragment */
456 const uint8 DCERPC_PFC_FLAG_LAST = 0x02; /* Last fragment */
457 const uint8 DCERPC_PFC_FLAG_PENDING_CANCEL = 0x04; /* Cancel was pending at sender */
458 const uint8 DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN = DCERPC_PFC_FLAG_PENDING_CANCEL; /* depends on the pdu type */
459 const uint8 DCERPC_PFC_FLAG_CONC_MPX = 0x10; /* supports concurrent multiplexing of a single connection. */
460 const uint8 DCERPC_PFC_FLAG_DID_NOT_EXECUTE = 0x20; /* on a fault it means the server hasn't done anything */
461 const uint8 DCERPC_PFC_FLAG_MAYBE = 0x40; /* `maybe' call semantics requested */
462 const uint8 DCERPC_PFC_FLAG_OBJECT_UUID = 0x80; /* on valid guid is in the optional object field */
464 /* these offsets are needed by the signing code */
465 const uint8 DCERPC_PFC_OFFSET = 3;
466 const uint8 DCERPC_DREP_OFFSET = 4;
467 const uint8 DCERPC_FRAG_LEN_OFFSET = 8;
468 const uint8 DCERPC_AUTH_LEN_OFFSET = 10;
470 /* little-endian flag */
471 const uint8 DCERPC_DREP_LE = 0x10;
473 typedef [public] struct {
474 uint8 rpc_vers; /* RPC version */
475 uint8 rpc_vers_minor; /* Minor version */
476 dcerpc_pkt_type ptype; /* Packet type */
477 uint8 pfc_flags; /* Fragmentation flags */
478 uint8 drep[4]; /* NDR data representation */
479 uint16 frag_length; /* Total length of fragment */
480 uint16 auth_length; /* authenticator length */
481 uint32 call_id; /* Call identifier */
482 [switch_is(ptype)] dcerpc_payload u;
483 } ncacn_packet;
485 typedef [public] struct {
486 uint8 rpc_vers; /* RPC version (4) */
487 uint8 ptype;
488 uint8 pfc_flags;
489 uint8 ncadg_flags;
490 uint8 drep[3];
491 uint8 serial_high;
492 GUID object;
493 GUID iface;
494 GUID activity;
495 uint32 server_boot; /* Server boot time */
496 uint32 iface_version;
497 uint32 seq_num;
498 uint16 opnum;
499 uint16 ihint;
500 uint16 ahint;
501 uint16 len;
502 uint16 fragnum;
503 uint8 auth_proto;
504 uint8 serial_low;
505 [switch_is(ptype)] dcerpc_payload u;
506 } ncadg_packet;