Lines Matching refs:rdlen
494 mDNSu16 rdlen = get_uint16(&request->msgptr, request->msgend); in read_rr_from_ipc_msg() local
495 const char *rdata = get_rdata (&request->msgptr, request->msgend, rdlen); in read_rr_from_ipc_msg()
497 int storage_size = rdlen > sizeof(RDataBody) ? rdlen : sizeof(RDataBody); in read_rr_from_ipc_msg()
541 rr->resrec.rdlength = rdlen; in read_rr_from_ipc_msg()
542 rr->resrec.rdata->MaxRDLength = rdlen; in read_rr_from_ipc_msg()
543 mDNSPlatformMemCopy(rr->resrec.rdata->u.data, rdata, rdlen); in read_rr_from_ipc_msg()
1091 …quest_state *request, service_instance *instance, mDNSu16 rrtype, mDNSu16 rdlen, const char *rdata… in add_record_to_service() argument
1095 int size = rdlen > sizeof(RDataBody) ? rdlen : sizeof(RDataBody); in add_record_to_service()
1102 extra->r.resrec.rdlength = rdlen; in add_record_to_service()
1103 mDNSPlatformMemCopy(&extra->r.rdatastorage.u.data, rdata, rdlen); in add_record_to_service()
1124 mDNSu16 rdlen = get_uint16(&request->msgptr, request->msgend); in handle_add_request() local
1125 const char *rdata = get_rdata (&request->msgptr, request->msgend, rdlen); in handle_add_request()
1144 …) ? request->u.servicereg.instances->srs.RR_SRV.resrec.name->c : NULL, DNSTypeName(rrtype), rdlen); in handle_add_request()
1148 result = add_record_to_service(request, i, rrtype, rdlen, rdata, ttl); in handle_add_request()
1183 mDNSlocal mStatus update_record(AuthRecord *rr, mDNSu16 rdlen, const char *rdata, mDNSu32 ttl, cons… in update_record() argument
1186 const int rdsize = rdlen > sizeof(RDataBody) ? rdlen : sizeof(RDataBody); in update_record()
1190 mDNSPlatformMemCopy(&newrd->u, rdata, rdlen); in update_record()
1195 if (rr->resrec.rrtype == kDNSType_TXT && rdlen == 0) { rdlen = 1; newrd->u.txt.c[0] = 0; } in update_record()
1199 result = mDNS_Update(&mDNSStorage, rr, ttl, rdlen, newrd, update_callback); in update_record()
1213 mDNSu16 rdlen = get_uint16(&request->msgptr, request->msgend); in handle_update_request() local
1214 const char *rdata = get_rdata (&request->msgptr, request->msgend, rdlen); in handle_update_request()
1231 result = update_record(reptr->rr, rdlen, rdata, ttl, &reptr->external_advertise); in handle_update_request()
1253 if (rdlen > 0) in handle_update_request()
1255 request->u.servicereg.txtdata = mallocL("service_info txtdata", rdlen); in handle_update_request()
1257 mDNSPlatformMemCopy(request->u.servicereg.txtdata, rdata, rdlen); in handle_update_request()
1259 request->u.servicereg.txtlen = rdlen; in handle_update_request()
1274 result = update_record(rr, rdlen, rdata, ttl, &i->external_advertise); in handle_update_request()