Lines Matching refs:datalen
325 int datalen; in create_hdr() local
346 datalen = (int) *len; in create_hdr()
356 hdr->datalen = datalen; in create_hdr()
549 …uint32_t datalen = hdr->datalen; // We take a copy here because we're going to convert hdr->datale… in deliver_request() local
641 …if (MakeSeparateReturnSocket || sdr->op == send_bpf) datalen--; // Okay to use sdr->op when check… in deliver_request()
650 for (i=0; i<datalen + sizeof(ipc_msg_hdr); i++) in deliver_request()
658 if (write_all(sdr->sockfd, (char *)hdr, datalen + sizeof(ipc_msg_hdr)) < 0) in deliver_request()
664 sdr->sockfd, (unsigned long)(datalen + sizeof(ipc_msg_hdr))); in deliver_request()
694 …struct iovec vec = { ((char *)hdr) + sizeof(ipc_msg_hdr) + datalen, 1 }; // Send the last byte alo… in deliver_request()
952 data = malloc(cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
954 …if (read_all(sdRef->sockfd, data, cbh.ipc_hdr.datalen) < 0) // On error, read_all will write a mes… in DNSServiceProcessResult()
978 cbh.cb_flags = get_flags (&ptr, data + cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
979 cbh.cb_interface = get_uint32 (&ptr, data + cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
980 cbh.cb_err = get_error_code(&ptr, data + cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
991 if (ptr) sdRef->ProcessReply(sdRef, &cbh, ptr, data + cbh.ipc_hdr.datalen); in DNSServiceProcessResult()