Lines Matching refs:rpc
38 hdr->flags = flags; /* dce/rpc flags */
52 bool smb_io_rpc_hdr(const char *desc, RPC_HDR *rpc, prs_struct *ps, int depth)
54 if (rpc == NULL)
60 if(!prs_uint8 ("major ", ps, depth, &rpc->major))
63 if(!prs_uint8 ("minor ", ps, depth, &rpc->minor))
65 if(!prs_uint8 ("pkt_type ", ps, depth, &rpc->pkt_type))
67 if(!prs_uint8 ("flags ", ps, depth, &rpc->flags))
72 rpc->pack_type[0] = 0x10;
74 if(!prs_uint8("pack_type0", ps, depth, &rpc->pack_type[0]))
76 if(!prs_uint8("pack_type1", ps, depth, &rpc->pack_type[1]))
78 if(!prs_uint8("pack_type2", ps, depth, &rpc->pack_type[2]))
80 if(!prs_uint8("pack_type3", ps, depth, &rpc->pack_type[3]))
88 if (UNMARSHALLING(ps) && rpc->pack_type[0] == 0) {
93 if(!prs_uint16("frag_len ", ps, depth, &rpc->frag_len))
95 if(!prs_uint16("auth_len ", ps, depth, &rpc->auth_len))
97 if(!prs_uint32("call_id ", ps, depth, &rpc->call_id))
173 static bool smb_io_rpc_hdr_bba(const char *desc, RPC_HDR_BBA *rpc, prs_struct *ps, int depth)
175 if (rpc == NULL)
181 if(!prs_uint16("max_tsize", ps, depth, &rpc->max_tsize))
183 if(!prs_uint16("max_rsize", ps, depth, &rpc->max_rsize))
185 if(!prs_uint32("assoc_gid", ps, depth, &rpc->assoc_gid))
214 void init_rpc_hdr_rb(RPC_HDR_RB *rpc,
218 init_rpc_hdr_bba(&rpc->bba, max_tsize, max_rsize, assoc_gid);
220 rpc->num_contexts = 1;
221 rpc->rpc_context = context;
266 bool smb_io_rpc_hdr_rb(const char *desc, RPC_HDR_RB *rpc, prs_struct *ps, int depth)
270 if (rpc == NULL)
276 if(!smb_io_rpc_hdr_bba("", &rpc->bba, ps, depth))
279 if(!prs_uint8("num_contexts", ps, depth, &rpc->num_contexts))
285 if (rpc->num_contexts == 0)
289 if (!(rpc->rpc_context = PRS_ALLOC_MEM(ps, RPC_CONTEXT, rpc->num_contexts))) {
294 for (i = 0; i < rpc->num_contexts; i++ ) {
295 if (!smb_io_rpc_context("", &rpc->rpc_context[i], ps, depth))
353 void init_rpc_hdr_ba(RPC_HDR_BA *rpc,
359 init_rpc_hdr_bba (&rpc->bba, max_tsize, max_rsize, assoc_gid);
360 init_rpc_addr_str(&rpc->addr, pipe_addr);
361 init_rpc_results (&rpc->res, num_results, result, reason);
364 memcpy(&rpc->transfer, transfer, sizeof(rpc->transfer));
371 bool smb_io_rpc_hdr_ba(const char *desc, RPC_HDR_BA *rpc, prs_struct *ps, int depth)
373 if (rpc == NULL)
379 if(!smb_io_rpc_hdr_bba("", &rpc->bba, ps, depth))
381 if(!smb_io_rpc_addr_str("", &rpc->addr, ps, depth))
383 if(!smb_io_rpc_results("", &rpc->res, ps, depth))
385 if(!smb_io_rpc_iface("", &rpc->transfer, ps, depth))
405 bool smb_io_rpc_hdr_req(const char *desc, RPC_HDR_REQ *rpc, prs_struct *ps, int depth)
407 if (rpc == NULL)
413 if(!prs_uint32("alloc_hint", ps, depth, &rpc->alloc_hint))
415 if(!prs_uint16("context_id", ps, depth, &rpc->context_id))
417 if(!prs_uint16("opnum ", ps, depth, &rpc->opnum))
426 bool smb_io_rpc_hdr_resp(const char *desc, RPC_HDR_RESP *rpc, prs_struct *ps, int depth)
428 if (rpc == NULL)
434 if(!prs_uint32("alloc_hint", ps, depth, &rpc->alloc_hint))
436 if(!prs_uint16("context_id", ps, depth, &rpc->context_id))
438 if(!prs_uint8 ("cancel_ct ", ps, depth, &rpc->cancel_count))
440 if(!prs_uint8 ("reserved ", ps, depth, &rpc->reserved))
449 bool smb_io_rpc_hdr_fault(const char *desc, RPC_HDR_FAULT *rpc, prs_struct *ps, int depth)
451 if (rpc == NULL)
457 if(!prs_dcerpc_status("status ", ps, depth, &rpc->status))
459 if(!prs_uint32("reserved", ps, depth, &rpc->reserved))