Lines Matching refs:RData
484 // Data must be in the following format: flags, interfaceIndex, name, rrtype, rrclass, rdlen, rdata, (optional) ttl
495 const char *rdata = get_rdata (&request->msgptr, request->msgend, rdlen);
542 rr->resrec.rdata->MaxRDLength = rdlen;
543 mDNSPlatformMemCopy(rr->resrec.rdata->u.data, rdata, rdlen);
679 if (rr->resrec.rdata != &rr->rdatastorage)
680 freeL("Extra RData", rr->resrec.rdata);
709 if (srv->srs.RR_TXT.resrec.rdata != &srv->srs.RR_TXT.rdatastorage)
710 freeL("TXT RData", srv->srs.RR_TXT.resrec.rdata);
716 // Count how many other service records we have locally with the same name, but different rdata.
739 mDNSSameIPPort(rr->resrec.rdata->u.srv.port, port) &&
784 LogOperation(fmt, prefix, srs->RR_SRV.resrec.name->c, mDNSVal16(srs->RR_SRV.resrec.rdata->u.srv.port),
878 // If the record has been updated, we need to free the rdata. Everytime we call mDNS_Update, it calls update_callback
879 // with the old rdata (so that we can free it) and stores the new rdata in "rr->resrec.rdata
880 // to free the latest rdata for which the update_callback was never called with.
881 if (rr->resrec.rdata != &rr->rdatastorage) freeL("RData/regrecord_callback", rr->resrec.rdata);
1058 request->sd, p->srs.RR_SRV.resrec.name->c, mDNSVal16(p->srs.RR_SRV.resrec.rdata->u.srv.port));
1091 mDNSlocal mStatus add_record_to_service(request_state *request, service_instance *instance, mDNSu16 rrtype, mDNSu16 rdlen, const char *rdata, mDNSu32 ttl)
1099 mDNSPlatformMemZero(extra, sizeof(ExtraResourceRecord)); // OK if oversized rdata not zero'd
1103 mDNSPlatformMemCopy(&extra->r.rdatastorage.u.data, rdata, rdlen);
1125 const char *rdata = get_rdata (&request->msgptr, request->msgend, rdlen);
1148 result = add_record_to_service(request, i, rrtype, rdlen, rdata, ttl);
1156 mDNSlocal void update_callback(mDNS *const m, AuthRecord *const rr, RData *oldrd, mDNSu16 oldrdlen)
1173 if (ext.rdlength == oldrdlen && mDNSPlatformMemSame(&ext.rdata->u, &oldrd->u, oldrdlen)) goto exit;
1180 if (oldrd != &rr->rdatastorage) freeL("RData/update_callback", oldrd);
1183 mDNSlocal mStatus update_record(AuthRecord *rr, mDNSu16 rdlen, const char *rdata, mDNSu32 ttl, const mDNSBool *const external_advertise)
1187 RData *newrd = mallocL("RData/update_record", sizeof(RData) - sizeof(RDataBody) + rdsize);
1190 mDNSPlatformMemCopy(&newrd->u, rdata, rdlen);
1192 // BIND named (name daemon) doesn't allow TXT records with zero-length rdata. This is strictly speaking correct,
1200 if (result) { LogMsg("update_record: Error %d for %s", (int)result, ARDisplayString(&mDNSStorage, rr)); freeL("RData/update_record", newrd); }
1214 const char *rdata = get_rdata (&request->msgptr, request->msgend, rdlen);
1231 result = update_record(reptr->rr, rdlen, rdata, ttl, &reptr->external_advertise);
1257 mDNSPlatformMemCopy(request->u.servicereg.txtdata, rdata, rdlen);
1274 result = update_record(rr, rdlen, rdata, ttl, &i->external_advertise);
1744 if (GenerateNTDResponse(&answer->rdata->u.name, answer->InterfaceID, req, &rep, browse_reply_op, flags, mStatus_NoError) != mStatus_NoError)
1750 GenerateBonjourBrowserResponse(&answer->rdata->u.name, answer->InterfaceID, req, &rep, browse_reply_op, flags, mStatus_NoError);
1755 req->sd, answer->name->c, answer->rdata->u.name.c);
1908 AssignDomainName(&ptr->ar.resrec.rdata->u.name, d);
1937 if (SameDomainName(&(*ptr)->ar.resrec.rdata->u.name, d) && SameDomainName((*ptr)->ar.resrec.name, &lhs))
2014 mDNSPlatformMemCopy(m->DeviceInfo.resrec.rdata->u.data + 1, "model=", 6);
2015 mDNSPlatformMemCopy(m->DeviceInfo.resrec.rdata->u.data + 7, m->HIHardware.c + 1, len);
2016 m->DeviceInfo.resrec.rdata->u.data[0] = 6 + len; // "model=" plus the device string
2114 AddRecord ? "Adding" : "Removing", answer->rdata->u.name.c);
2116 if (AddRecord) AddAutoBrowseDomain(0, &answer->rdata->u.name);
2117 else RmvAutoBrowseDomain(0, &answer->rdata->u.name);
2249 ConvertDomainNameToCString(&req->u.resolve.srv->rdata->u.srv.target, target);
2271 *data++ = req->u.resolve.srv->rdata->u.srv.port.b[0];
2272 *data++ = req->u.resolve.srv->rdata->u.srv.port.b[1];
2274 put_rdata (req->u.resolve.txt->rdlength, req->u.resolve.txt->rdata->u.data, &data);
2276 LogOperation("%3d: DNSServiceResolve(%s) RESULT %s:%d", req->sd, fullname, target, mDNSVal16(req->u.resolve.srv->rdata->u.srv.port));
2858 const RDataBody2 *const rdb = (RDataBody2 *)answer->rdata->u.data;
3100 if (!AuthorizedDomain(request, &answer->rdata->u.name, request->u.enumeration.flags ? AutoRegistrationDomains : AutoBrowseDomains)) return;
3113 ConvertDomainNameToCString(&answer->rdata->u.name, domain);
3585 // with 64kB of rdata. Adding 1009 byte for a maximal domain name, plus a safety margin