Home | History | Annotate | Download | only in mDNSShared

Lines Matching refs:hdr

140 	// Note: On a shared connection these fields in the primary structure, including hdr, are re-used
145 ipc_msg_hdr hdr;
379 reply->mhdr->client_context = request->hdr.client_context;
977 LogOperation("%3d: Cancel %08X %08X", request->sd, request->hdr.client_context.u32[1], request->hdr.client_context.u32[0]);
981 (*req)->hdr.client_context.u32[0] == request->hdr.client_context.u32[0] &&
982 (*req)->hdr.client_context.u32[1] == request->hdr.client_context.u32[1])
1014 re->key = request->hdr.reg_index;
1016 re->regrec_client_context = request->hdr.client_context;
1086 req->hdr.client_context.u32[0] == request->hdr.client_context.u32[0] &&
1087 req->hdr.client_context.u32[1] == request->hdr.client_context.u32[1]) return(req);
1109 extra->ClientID = request->hdr.reg_index;
1206 const ipc_msg_hdr *const hdr = &request->hdr;
1229 if (reptr->key == hdr->reg_index)
1249 if (hdr->reg_index == TXT_RECORD_INDEX)
1265 if (hdr->reg_index == TXT_RECORD_INDEX) rr = &i->srs.RR_TXT;
1270 if (e->ClientID == hdr->reg_index) { rr = &e->r; break; }
1294 while (*ptr && (*ptr)->key != request->hdr.reg_index) ptr = &(*ptr)->next;
1295 if (!*ptr) { LogMsg("%3d: DNSServiceRemoveRecord(%u) not found", request->sd, request->hdr.reg_index); return mStatus_BadReferenceErr; }
1324 if (ptr->ClientID == request->hdr.reg_index) // found match
2496 if (request->hdr.op == query_request)
2498 else if (request->hdr.op == addrinfo_request)
2652 if (req->hdr.op == query_request && question == req->u.queryrecord.q2)
2654 else if (req->hdr.op == addrinfo_request && question == req->u.addrinfo.q42)
2656 else if (req->hdr.op == addrinfo_request && question == req->u.addrinfo.q62)
2799 req->hdr.op == query_request ? "DNSServiceQueryRecord" : "DNSServiceGetAddrInfo",
2810 rep = create_reply(req->hdr.op == query_request ? query_reply_op : addrinfo_reply_op, len, req);
3570 int nread = udsSupportReadFD(req->sd, (char *)&req->hdr + req->hdr_bytes, nleft, 0, req->platform_data);
3580 ConvertHeaderBytes(&req->hdr);
3581 if (req->hdr.version != VERSION)
3582 { LogMsg("%3d: ERROR: client version 0x%08X daemon version 0x%08X", req->sd, req->hdr.version, VERSION); req->ts = t_error; return; }
3587 if (req->hdr.datalen > 70000)
3588 { LogMsg("%3d: ERROR: read_msg: hdr.datalen %u (0x%X) > 70000", req->sd, req->hdr.datalen, req->hdr.datalen); req->ts = t_error; return; }
3589 req->msgbuf = mallocL("request_state msgbuf", req->hdr.datalen + MSG_PAD_BYTES);
3592 req->msgend = req->msgbuf + req->hdr.datalen;
3593 mDNSPlatformMemZero(req->msgbuf, req->hdr.datalen + MSG_PAD_BYTES);
3598 // Note: For cancel_request req->hdr.datalen == 0, but there's no error return socket for cancel_request
3601 if (req->hdr_bytes == sizeof(ipc_msg_hdr) && req->data_bytes < req->hdr.datalen)
3603 mDNSu32 nleft = req->hdr.datalen - req->data_bytes;
3624 if (req->data_bytes > req->hdr.datalen)
3641 if (req->hdr.op == send_bpf)
3653 if (req->data_bytes < req->hdr.datalen)
3655 LogMsg("%3d: Client sent error socket %d via SCM_RIGHTS with req->data_bytes %d < req->hdr.datalen %d",
3656 req->sd, req->errsd, req->data_bytes, req->hdr.datalen);
3665 if (req->hdr_bytes == sizeof(ipc_msg_hdr) && req->data_bytes == req->hdr.datalen)
3667 if (req->terminate && req->hdr.op != cancel_request)
3717 LogOperation("%3d: Error socket %d created %08X %08X", req->sd, req->errsd, req->hdr.client_context.u32[1], req->hdr.client_context.u32[0]);
3763 if (req->hdr.version != VERSION)
3765 LogMsg("ERROR: client version %d incompatible with daemon version %d", req->hdr.version, VERSION);
3770 switch(req->hdr.op) // Interface + other data
3790 default: LogMsg("ERROR: validate_message - unsupported req type: %d", req->hdr.op); min_size = -1; break;
3794 { LogMsg("Invalid message %d bytes; min for %d is %d", req->data_bytes, req->hdr.op, min_size); AbortUnlinkAndFree(req); return; }
3796 if (LightweightOp(req->hdr.op) && !req->terminate)
3797 { LogMsg("Reg/Add/Update/Remove %d require existing connection", req->hdr.op); AbortUnlinkAndFree(req); return; }
3800 if (req->hdr.ipc_flags & IPC_FLAGS_NOREPLY) req->no_reply = 1;
3803 if (req->terminate && !LightweightOp(req->hdr.op))
3810 newreq->hdr = req->hdr;
3819 if (mDNSStorage.ShutdownTime && req->hdr.op != cancel_request && req->hdr.op != getproperty_request)
3823 else switch(req->hdr.op)
3847 default: LogMsg("%3d: ERROR: Unsupported UDS req: %d", req->sd, req->hdr.op);
3855 if (req->hdr.op != cancel_request && req->hdr.op != getproperty_request && req->hdr.op != send_bpf)
3862 req->sd, req->errsd, req->hdr.client_context.u32[1], req->hdr.client_context.u32[0], err);