Lines Matching refs:hdr

176 	ndr_common_header_t	hdr;  in ndr_buf_decode()  local
200 rc = ndr_decode_hdr_common(&nbuf->nb_nds, &hdr); in ndr_buf_decode()
204 if (!NDR_IS_SINGLE_FRAG(hdr.pfc_flags)) in ndr_buf_decode()
301 ndr_common_header_t *hdr = &mxa->recv_hdr.common_hdr; in ndr_decode_pdu_hdr() local
307 rc = ndr_decode_hdr_common(nds, hdr); in ndr_decode_pdu_hdr()
314 if ((hdr->rpc_vers != 5) || (hdr->rpc_vers_minor != 0)) in ndr_decode_pdu_hdr()
317 mxa->ptype = hdr->ptype; in ndr_decode_pdu_hdr()
321 nds->pdu_body_size = hdr->frag_length - hdr->auth_length - in ndr_decode_pdu_hdr()
323 ((hdr->auth_length != 0) ? SEC_TRAILER_SIZE : 0); in ndr_decode_pdu_hdr()
325 if (hdr->auth_length != 0 && hdr->auth_length > in ndr_decode_pdu_hdr()
326 (hdr->frag_length - nds->pdu_hdr_size - SEC_TRAILER_SIZE)) in ndr_decode_pdu_hdr()
332 ndr_decode_hdr_common(ndr_stream_t *nds, ndr_common_header_t *hdr) in ndr_decode_hdr_common() argument
353 rc = NDS_GET_PDU(nds, 0, 8, (char *)hdr, 0, 0); in ndr_decode_hdr_common()
361 charset = hdr->packed_drep.intg_char_rep & NDR_REPLAB_CHAR_MASK; in ndr_decode_hdr_common()
369 byte_order = hdr->packed_drep.intg_char_rep & NDR_REPLAB_INTG_MASK; in ndr_decode_hdr_common()
372 ptype = hdr->ptype; in ndr_decode_hdr_common()
374 (hdr->pfc_flags & NDR_PFC_OBJECT_UUID) != 0) { in ndr_decode_hdr_common()
378 rc = ndr_encode_decode_common(nds, ptype, &TYPEINFO(ndr_hdr), hdr); in ndr_decode_hdr_common()
380 if (hdr->frag_length > (nds->pdu_size - saved_offset)) in ndr_decode_hdr_common()
386 ndr_decode_pac_hdr(ndr_stream_t *nds, ndr_pac_hdr_t *hdr) in ndr_decode_pac_hdr() argument
402 rc = NDS_GET_PDU(nds, 0, 8, (char *)hdr, 0, 0); in ndr_decode_pac_hdr()
407 if (hdr->common_hdr.version != 1) in ndr_decode_pac_hdr()
415 (hdr->common_hdr.endianness != ndr_native_byte_order) ? 1 : 0; in ndr_decode_pac_hdr()
418 &TYPEINFO(ndr_hdr), hdr); in ndr_decode_pac_hdr()
431 ndr_decode_frag_hdr(ndr_stream_t *nds, ndr_common_header_t *hdr) in ndr_decode_frag_hdr() argument
438 bcopy(pdu, hdr, NDR_CMN_HDR_SIZE); in ndr_decode_frag_hdr()
444 byte_order = hdr->packed_drep.intg_char_rep & NDR_REPLAB_INTG_MASK; in ndr_decode_frag_hdr()
450 nds_bswap(&tmp->frag_length, &hdr->frag_length, in ndr_decode_frag_hdr()
452 nds_bswap(&tmp->auth_length, &hdr->auth_length, in ndr_decode_frag_hdr()
454 nds_bswap(&tmp->call_id, &hdr->call_id, sizeof (DWORD)); in ndr_decode_frag_hdr()
460 nds->pdu_body_size = hdr->frag_length - hdr->auth_length - in ndr_decode_frag_hdr()
462 ((hdr->auth_length != 0) ? SEC_TRAILER_SIZE : 0); in ndr_decode_frag_hdr()
485 char *hdr; in ndr_remove_frag_hdr() local
489 hdr = (char *)nds->pdu_base_offset + nds->pdu_scan_offset; in ndr_remove_frag_hdr()
490 data = hdr + NDR_RSP_HDR_SIZE; in ndr_remove_frag_hdr()
496 memmove(hdr, data, nbytes); in ndr_remove_frag_hdr()
501 ndr_show_hdr(ndr_common_header_t *hdr) in ndr_show_hdr() argument
505 if (hdr == NULL) { in ndr_show_hdr()
510 if (NDR_IS_SINGLE_FRAG(hdr->pfc_flags)) in ndr_show_hdr()
512 else if (NDR_IS_FIRST_FRAG(hdr->pfc_flags)) in ndr_show_hdr()
514 else if (NDR_IS_LAST_FRAG(hdr->pfc_flags)) in ndr_show_hdr()
522 hdr->rpc_vers, hdr->rpc_vers_minor, hdr->ptype, in ndr_show_hdr()
523 fragtype, hdr->pfc_flags, hdr->frag_length, hdr->auth_length); in ndr_show_hdr()
543 ndr_common_header_t *hdr = &mxa->send_hdr.common_hdr; in ndr_encode_pdu_hdr() local
551 ptype = hdr->ptype; in ndr_encode_pdu_hdr()
553 (hdr->pfc_flags & NDR_PFC_OBJECT_UUID) != 0) { in ndr_encode_pdu_hdr()
557 rc = ndr_encode_decode_common(nds, ptype, &TYPEINFO(ndr_hdr), hdr); in ndr_encode_pdu_hdr()
774 ndr_common_header_t *hdr; in ndr__auth_verifier_co() local
792 hdr = &mxa->send_hdr.common_hdr; in ndr__auth_verifier_co()
797 hdr = &mxa->recv_hdr.common_hdr; in ndr__auth_verifier_co()
798 val->auth_value = (uchar_t *)NDS_MALLOC(nds, hdr->auth_length, in ndr__auth_verifier_co()
812 encl_ref->pdu_end_offset += hdr->auth_length; in ndr__auth_verifier_co()
813 nds->pdu_scan_offset += hdr->auth_length; in ndr__auth_verifier_co()
822 hdr->auth_length); in ndr__auth_verifier_co()
830 ndr_common_header_t *hdr = &mxa->send_hdr.common_hdr; in ndr_encode_pdu_auth() local
838 if (hdr->auth_length == 0) in ndr_encode_pdu_auth()
841 want_size = nds->pdu_scan_offset + hdr->auth_length + SEC_TRAILER_SIZE; in ndr_encode_pdu_auth()
865 ndr_common_header_t *hdr = &mxa->recv_hdr.common_hdr; in ndr_decode_pdu_auth() local
876 if (hdr->auth_length == 0) in ndr_decode_pdu_auth()
888 if (hdr->auth_length > in ndr_decode_pdu_auth()
905 auth_size = hdr->auth_length + SEC_TRAILER_SIZE + in ndr_decode_pdu_auth()