/* * Please do not edit this file. * It was generated using ndrgen. */ #include #include #include extern struct ndr_typeinfo ndt__char; extern struct ndr_typeinfo ndt_s_char; extern struct ndr_typeinfo ndt__uchar; extern struct ndr_typeinfo ndt_s_uchar; extern struct ndr_typeinfo ndt__wchar; extern struct ndr_typeinfo ndt_s_wchar; extern struct ndr_typeinfo ndt__short; extern struct ndr_typeinfo ndt_s_short; extern struct ndr_typeinfo ndt__ushort; extern struct ndr_typeinfo ndt_s_ushort; extern struct ndr_typeinfo ndt__long; extern struct ndr_typeinfo ndt_s_long; extern struct ndr_typeinfo ndt__ulong; extern struct ndr_typeinfo ndt_s_ulong; int ndr__ndr_dce_uuid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_dce_uuid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_dce_uuid, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__ndr_dce_uuid (struct ndr_reference *encl_ref) { struct ndr_dce_uuid *val = (struct ndr_dce_uuid *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, time_low, 0UL); NDR_MEMBER (_ushort, time_mid, 4UL); NDR_MEMBER (_ushort, time_hi_and_version, 6UL); NDR_MEMBER (_uchar, clock_seq_hi_and_reserved, 8UL); NDR_MEMBER (_uchar, clock_seq_low, 9UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, node, 10UL, 6); /* do members with pointers in order */ return 1; } int ndr__ndr_uuid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_uuid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_uuid, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__ndr_uuid (struct ndr_reference *encl_ref) { struct ndr_uuid *val = (struct ndr_uuid *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, data1, 0UL); NDR_MEMBER (_ushort, data2, 4UL); NDR_MEMBER (_ushort, data3, 6UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, data4, 8UL, 8); /* do members with pointers in order */ return 1; } int ndr__ndr_representation_label (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_representation_label = { 1, /* NDR version */ 0, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_representation_label, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__ndr_representation_label (struct ndr_reference *encl_ref) { struct ndr_representation_label *val = (struct ndr_representation_label *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_uchar, intg_char_rep, 0UL); NDR_MEMBER (_uchar, float_rep, 1UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, _spare, 2UL, 2); /* do members with pointers in order */ return 1; } int ndr__ndr_p_syntax_id (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_p_syntax_id = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_p_syntax_id, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_p_syntax_id (struct ndr_reference *encl_ref) { struct ndr_p_syntax_id *val = (struct ndr_p_syntax_id *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ndr_uuid, if_uuid, 0UL); NDR_MEMBER (_ulong, if_version, 16UL); return 1; } int ndr__ndr_common_header (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_common_header = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_common_header, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_common_header (struct ndr_reference *encl_ref) { struct ndr_common_header *val = (struct ndr_common_header *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_uchar, rpc_vers, 0UL); NDR_MEMBER (_uchar, rpc_vers_minor, 1UL); NDR_MEMBER (_uchar, ptype, 2UL); NDR_MEMBER (_uchar, pfc_flags, 3UL); NDR_MEMBER (_ndr_representation_label, packed_drep, 4UL); NDR_MEMBER (_ushort, frag_length, 8UL); NDR_MEMBER (_ushort, auth_length, 10UL); NDR_MEMBER (_ulong, call_id, 12UL); return 1; } int ndr__ndr_serialtype1_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_serialtype1_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_serialtype1_hdr, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_serialtype1_hdr (struct ndr_reference *encl_ref) { struct ndr_serialtype1_hdr *val = (struct ndr_serialtype1_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_uchar, version, 0UL); NDR_MEMBER (_uchar, endianness, 1UL); NDR_MEMBER (_ushort, hdrlen, 2UL); NDR_MEMBER (_ulong, filler, 4UL); return 1; } int ndr__ndr_serialtype1_priv_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_serialtype1_priv_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_serialtype1_priv_hdr, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_serialtype1_priv_hdr (struct ndr_reference *encl_ref) { struct ndr_serialtype1_priv_hdr *val = (struct ndr_serialtype1_priv_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ulong, buflen, 0UL); NDR_MEMBER (_ulong, filler, 4UL); return 1; } int ndr__ndr_serialtype2_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_serialtype2_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_serialtype2_hdr, /* ndr_func */ 64, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 64, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_serialtype2_hdr (struct ndr_reference *encl_ref) { struct ndr_serialtype2_hdr *val = (struct ndr_serialtype2_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_uchar, version, 0UL); NDR_MEMBER (_uchar, endianness, 1UL); NDR_MEMBER (_ushort, hdrlen, 2UL); NDR_MEMBER (_ulong, endianinfo, 4UL); NDR_MEMBER_ARR_WITH_DIMENSION (_ulong, reserved, 8UL, 4); NDR_MEMBER (_ndr_p_syntax_id, transfer_syntax, 24UL); NDR_MEMBER (_ndr_p_syntax_id, interface_id, 44UL); return 1; } int ndr__ndr_serialtype2_priv_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_serialtype2_priv_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_serialtype2_priv_hdr, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_serialtype2_priv_hdr (struct ndr_reference *encl_ref) { struct ndr_serialtype2_priv_hdr *val = (struct ndr_serialtype2_priv_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ulong, buflen, 0UL); NDR_MEMBER_ARR_WITH_DIMENSION (_ulong, filler, 4UL, 3); return 1; } int ndr__ndr_pac_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_pac_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_pac_hdr, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_pac_hdr (struct ndr_reference *encl_ref) { struct ndr_pac_hdr *val = (struct ndr_pac_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ndr_serialtype1_hdr, common_hdr, 0UL); NDR_MEMBER (_ndr_serialtype1_priv_hdr, priv_hdr, 8UL); NDR_MEMBER (_ulong, ref_pointer, 16UL); return 1; } int ndr__ndr_p_cont_elem (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_p_cont_elem = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_p_cont_elem, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_p_cont_elem (struct ndr_reference *encl_ref) { struct ndr_p_cont_elem *val = (struct ndr_p_cont_elem *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ushort, p_cont_id, 0UL); NDR_MEMBER (_uchar, n_transfer_syn, 2UL); NDR_MEMBER (_uchar, _reserved, 3UL); NDR_MEMBER (_ndr_p_syntax_id, abstract_syntax, 4UL); NDR_MEMBER_ARR_WITH_DIMENSION (_ndr_p_syntax_id, transfer_syntaxes, 24UL, 1); return 1; } int ndr__ndr_p_cont_list (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_p_cont_list = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_p_cont_list, /* ndr_func */ 48, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 48, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_p_cont_list (struct ndr_reference *encl_ref) { struct ndr_p_cont_list *val = (struct ndr_p_cont_list *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_uchar, n_context_elem, 0UL); NDR_MEMBER (_uchar, _reserved, 1UL); NDR_MEMBER (_ushort, _reserved2, 2UL); NDR_MEMBER_ARR_WITH_DIMENSION (_ndr_p_cont_elem, p_cont_elem, 4UL, 1); return 1; } int ndr__ndr_p_result (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_p_result = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_p_result, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_p_result (struct ndr_reference *encl_ref) { struct ndr_p_result *val = (struct ndr_p_result *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ushort, result, 0UL); NDR_MEMBER (_ushort, reason, 2UL); NDR_MEMBER (_ndr_p_syntax_id, transfer_syntax, 4UL); return 1; } int ndr__ndr_p_result_list (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_p_result_list = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_p_result_list, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_p_result_list (struct ndr_reference *encl_ref) { struct ndr_p_result_list *val = (struct ndr_p_result_list *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_uchar, n_results, 0UL); NDR_MEMBER (_uchar, reserved, 1UL); NDR_MEMBER (_ushort, reserved2, 2UL); NDR_MEMBER_ARR_WITH_DIMENSION (_ndr_p_result, p_results, 4UL, 1); return 1; } int ndr__ndr_port_any (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_port_any = { 1, /* NDR version */ 1, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_port_any, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_port_any (struct ndr_reference *encl_ref) { struct ndr_port_any *val = (struct ndr_port_any *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ushort, length, 0UL); NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, port_spec, 2UL, 30); return 1; } int ndr__ndr_alter_context_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_alter_context_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_alter_context_hdr, /* ndr_func */ 72, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 72, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_alter_context_hdr (struct ndr_reference *encl_ref) { struct ndr_alter_context_hdr *val = (struct ndr_alter_context_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ndr_common_header, common_hdr, 0UL); NDR_MEMBER (_ushort, max_xmit_frag, 16UL); NDR_MEMBER (_ushort, max_recv_frag, 18UL); NDR_MEMBER (_ulong, assoc_group_id, 20UL); NDR_MEMBER (_ndr_p_cont_list, p_context_elem, 24UL); return 1; } extern struct ndr_typeinfo ndt__ndr_alter_context_rsp_hdr; int ndr__ndr_bind_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_bind_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_bind_hdr, /* ndr_func */ 72, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 72, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_bind_hdr (struct ndr_reference *encl_ref) { struct ndr_bind_hdr *val = (struct ndr_bind_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ndr_common_header, common_hdr, 0UL); NDR_MEMBER (_ushort, max_xmit_frag, 16UL); NDR_MEMBER (_ushort, max_recv_frag, 18UL); NDR_MEMBER (_ulong, assoc_group_id, 20UL); NDR_MEMBER (_ndr_p_cont_list, p_context_elem, 24UL); return 1; } extern struct ndr_typeinfo ndt__ndr_bind_ack_hdr; int ndr__ndr_request_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_request_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_request_hdr, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_request_hdr (struct ndr_reference *encl_ref) { struct ndr_request_hdr *val = (struct ndr_request_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ndr_common_header, common_hdr, 0UL); NDR_MEMBER (_ulong, alloc_hint, 16UL); NDR_MEMBER (_ushort, p_cont_id, 20UL); NDR_MEMBER (_ushort, opnum, 22UL); return 1; } int ndr__ndr_request_hdr_with_object (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_request_hdr_with_object = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_request_hdr_with_object, /* ndr_func */ 40, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 40, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_request_hdr_with_object (struct ndr_reference *encl_ref) { struct ndr_request_hdr_with_object *val = (struct ndr_request_hdr_with_object *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ndr_common_header, common_hdr, 0UL); NDR_MEMBER (_ulong, alloc_hint, 16UL); NDR_MEMBER (_ushort, p_cont_id, 20UL); NDR_MEMBER (_ushort, opnum, 22UL); NDR_MEMBER (_ndr_uuid, object, 24UL); return 1; } int ndr__ndr_response_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_response_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_response_hdr, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_response_hdr (struct ndr_reference *encl_ref) { struct ndr_response_hdr *val = (struct ndr_response_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ndr_common_header, common_hdr, 0UL); NDR_MEMBER (_ulong, alloc_hint, 16UL); NDR_MEMBER (_ushort, p_cont_id, 20UL); NDR_MEMBER (_uchar, cancel_count, 22UL); NDR_MEMBER (_uchar, reserved, 23UL); return 1; } int ndr__ndr_fault_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_fault_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__ndr_fault_hdr, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [_no_reorder] */ int ndr__ndr_fault_hdr (struct ndr_reference *encl_ref) { struct ndr_fault_hdr *val = (struct ndr_fault_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ NDR_MEMBER (_ndr_common_header, common_hdr, 0UL); NDR_MEMBER (_ulong, alloc_hint, 16UL); NDR_MEMBER (_ushort, p_cont_id, 20UL); NDR_MEMBER (_uchar, cancel_count, 22UL); NDR_MEMBER (_uchar, reserved, 23UL); NDR_MEMBER (_ulong, status, 24UL); NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, reserved2, 28UL, 4); return 1; } int ndr__ndr_hdr (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__ndr_hdr = { 1, /* NDR version */ 3, /* alignment */ NDR_F_INTERFACE, /* flags */ ndr__ndr_hdr, /* ndr_func */ 84, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 84, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [interface(0)] */ int ndr__ndr_hdr (struct ndr_reference *encl_ref) { union ndr_hdr *val = (union ndr_hdr *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; switch (encl_ref->switch_is) { case 999: NDR_PARAMS_MEMBER (_ndr_common_header, common_hdr); break; case 11: NDR_PARAMS_MEMBER (_ndr_bind_hdr, bind_hdr); break; case 12: NDR_PARAMS_MEMBER (_ndr_bind_ack_hdr, bind_ack_hdr); break; case 0: NDR_PARAMS_MEMBER (_ndr_request_hdr, request_hdr); break; case 998: NDR_PARAMS_MEMBER (_ndr_request_hdr_with_object, request_hdr_with); break; case 2: NDR_PARAMS_MEMBER (_ndr_response_hdr, response_hdr); break; case 14: NDR_PARAMS_MEMBER (_ndr_alter_context_hdr, alter_context_hdr); break; case 15: NDR_PARAMS_MEMBER (_ndr_alter_context_rsp_hdr, alter_context_rsp_hdr); break; case 997: NDR_PARAMS_MEMBER (_ndr_serialtype1_hdr, serialtype1_hdr); break; case 996: NDR_PARAMS_MEMBER (_ndr_serialtype2_hdr, serialtype2_hdr); break; case 995: NDR_PARAMS_MEMBER (_ndr_pac_hdr, pac_hdr); break; case 3: NDR_PARAMS_MEMBER (_ndr_fault_hdr, fault_hdr); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; }