Lines Matching refs:rc

45 	int rc;
55 rc = NDR_DRC_FAULT_OUT_OF_MEMORY;
59 rc = NDR_DRC_FAULT_PARAM_0_INVALID;
63 rc = NDR_DRC_FAULT_RECEIVED_RUNT;
67 rc = NDR_DRC_FAULT_ENCODE_TOO_BIG;
72 rc = NDR_DRC_FAULT_ENCODE_FAILED;
74 rc = NDR_DRC_FAULT_DECODE_FAILED;
78 return (rc);
119 * rc = ndr_decode_buf(nbuf, opnum, data, datalen, &info);
131 int rc;
142 rc = nds_initialize(&nbuf->nb_nds, pdu_size_hint, NDR_MODE_BUF_DECODE,
144 if (NDR_DRC_IS_FAULT(rc))
145 return (rc);
151 rc = ndr_decode_hdr_common(&nbuf->nb_nds, &hdr);
152 if (NDR_DRC_IS_FAULT(rc))
153 return (rc);
160 rc = ndr_decode_pac_hdr(&nbuf->nb_nds, &pac_hdr);
161 if (NDR_DRC_IS_FAULT(rc))
162 return (rc);
172 rc = ndr_encode_decode_common(&nbuf->nb_nds, opnum, nbuf->nb_ti,
174 return (rc);
184 int rc;
189 rc = ndr_encode_decode_common(nds, mxa->opnum,
192 return (rc + NDR_PTYPE_REQUEST);
202 int rc;
207 rc = ndr_encode_decode_common(nds, mxa->opnum,
210 return (rc + NDR_PTYPE_RESPONSE);
220 int rc;
225 rc = ndr_encode_decode_common(nds, mxa->opnum,
228 return (rc + NDR_PTYPE_REQUEST);
238 int rc;
243 rc = ndr_encode_decode_common(nds, mxa->opnum,
246 return (rc + NDR_PTYPE_RESPONSE);
254 int rc;
256 rc = ndr_decode_hdr_common(nds, hdr);
257 if (NDR_DRC_IS_FAULT(rc))
258 return (rc);
274 int rc;
284 rc = NDS_GROW_PDU(nds, sizeof (ndr_common_header_t), 0);
285 if (!rc)
291 rc = NDS_GET_PDU(nds, 0, 8, (char *)hdr, 0, 0);
292 if (!rc)
316 rc = ndr_encode_decode_common(nds, ptype, &TYPEINFO(ndr_hdr), hdr);
318 return (NDR_DRC_PTYPE_RPCHDR(rc));
324 int rc;
332 rc = NDS_GROW_PDU(nds, sizeof (ndr_pac_hdr_t), 0);
333 if (!rc)
339 rc = NDS_GET_PDU(nds, 0, 8, (char *)hdr, 0, 0);
340 if (!rc)
354 rc = ndr_encode_decode_common(nds, NDR_PTYPE_PAC,
357 return (NDR_DRC_PTYPE_RPCHDR(rc));
456 int rc;
467 rc = ndr_encode_decode_common(nds, ptype, &TYPEINFO(ndr_hdr), hdr);
469 return (NDR_DRC_PTYPE_RPCHDR(rc));