Lines Matching refs:resrec
540 rr->resrec.rrclass = class; 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()
544 if (GetTTL) rr->resrec.rroriginalttl = ttl; in read_rr_from_ipc_msg()
545 rr->resrec.namehash = DomainNameHashValue(rr->resrec.name); in read_rr_from_ipc_msg()
546 SetNewRData(&rr->resrec, mDNSNULL, 0); // Sets rr->rdatahash for us in read_rr_from_ipc_msg()
631 external_start_advertising_service(&st[i].resrec); in external_start_advertising_helper()
633 external_start_advertising_service(&instance->srs.RR_PTR.resrec); in external_start_advertising_helper()
634 external_start_advertising_service(&instance->srs.RR_TXT.resrec); in external_start_advertising_helper()
637 external_start_advertising_service(&e->r.resrec); in external_start_advertising_helper()
653 external_stop_advertising_service(&st[i].resrec); in external_stop_advertising_helper()
655 external_stop_advertising_service(&instance->srs.RR_PTR.resrec); in external_stop_advertising_helper()
656 external_stop_advertising_service(&instance->srs.RR_TXT.resrec); in external_stop_advertising_helper()
659 external_stop_advertising_service(&e->r.resrec); in external_stop_advertising_helper()
677 LogInfo(" FreeExtraRR %s", RRDisplayString(m, &rr->resrec)); in FreeExtraRR()
679 if (rr->resrec.rdata != &rr->rdatastorage) in FreeExtraRR()
680 freeL("Extra RData", rr->resrec.rdata); in FreeExtraRR()
709 if (srv->srs.RR_TXT.resrec.rdata != &srv->srs.RR_TXT.rdatastorage) in unlink_and_free_service_instance()
710 freeL("TXT RData", srv->srs.RR_TXT.resrec.rdata); in unlink_and_free_service_instance()
722 ResourceRecord *r = &srs->RR_SRV.resrec; in CountPeerRegistrations()
726 …if (rr->resrec.rrtype == kDNSType_SRV && SameDomainName(rr->resrec.name, r->name) && !IdenticalSam… in CountPeerRegistrations()
738 if (rr->resrec.rrtype == kDNSType_SRV && in CountExistingRegistrations()
739 mDNSSameIPPort(rr->resrec.rdata->u.srv.port, port) && in CountExistingRegistrations()
740 SameDomainName(rr->resrec.name, srv)) in CountExistingRegistrations()
749 …if (GenerateNTDResponse(srs->RR_SRV.resrec.name, srs->RR_SRV.resrec.InterfaceID, instance->request… in SendServiceRemovalNotification()
750 …tification: %##s is not valid DNS-SD SRV name", instance->request->sd, srs->RR_SRV.resrec.name->c); in SendServiceRemovalNotification()
784 …LogOperation(fmt, prefix, srs->RR_SRV.resrec.name->c, mDNSVal16(srs->RR_SRV.resrec.rdata->u.srv.po… in regservice_callback()
802 …if (GenerateNTDResponse(srs->RR_SRV.resrec.name, srs->RR_SRV.resrec.InterfaceID, instance->request… in regservice_callback()
803 …e_callback: %##s is not valid DNS-SD SRV name", instance->request->sd, srs->RR_SRV.resrec.name->c); in regservice_callback()
848 …if (GenerateNTDResponse(srs->RR_SRV.resrec.name, srs->RR_SRV.resrec.InterfaceID, instance->request… in regservice_callback()
849 …e_callback: %##s is not valid DNS-SD SRV name", instance->request->sd, srs->RR_SRV.resrec.name->c); in regservice_callback()
859 …if (GenerateNTDResponse(srs->RR_SRV.resrec.name, srs->RR_SRV.resrec.InterfaceID, instance->request… in regservice_callback()
860 …e_callback: %##s is not valid DNS-SD SRV name", instance->request->sd, srs->RR_SRV.resrec.name->c); in regservice_callback()
881 if (rr->resrec.rdata != &rr->rdatastorage) freeL("RData/regrecord_callback", rr->resrec.rdata); in regrecord_callback()
896 LogOperation(fmt, request->sd, re->key, RRDisplayString(m, &rr->resrec), result); in regrecord_callback()
905 …reply->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(m, rr->resrec.Interface… in regrecord_callback()
927 external_start_advertising_service(&rr->resrec); in regrecord_callback()
961 …gisterRecord(%u %s) STOP", request->sd, ptr->key, RRDisplayString(&mDNSStorage, &ptr->rr->resrec)); in connection_termination()
967 external_stop_advertising_service(&ptr->rr->resrec); in connection_termination()
1004 if (rr->resrec.InterfaceID == mDNSInterface_LocalOnly && !IsLocalDomain(rr->resrec.name) && in handle_regrecord_request()
1005 …rr->resrec.rrclass == kDNSClass_IN && (rr->resrec.rrtype == kDNSType_A || rr->resrec.rrtype == kDN… in handle_regrecord_request()
1006 rr->resrec.rrtype == kDNSType_CNAME)) in handle_regrecord_request()
1022 re->origInterfaceID = rr->resrec.InterfaceID; in handle_regrecord_request()
1023 if (rr->resrec.InterfaceID == mDNSInterface_P2P) rr->resrec.InterfaceID = mDNSInterface_Any; in handle_regrecord_request()
1025 …if (!AuthorizedDomain(request, rr->resrec.name, AutoRegistrationDomains)) return (mStatus_NoError); in handle_regrecord_request()
1027 if (rr->resrec.rroriginalttl == 0) in handle_regrecord_request()
1028 rr->resrec.rroriginalttl = DefaultTTLforRRType(rr->resrec.rrtype); in handle_regrecord_request()
1030 …iceRegisterRecord(%u %s) START", request->sd, re->key, RRDisplayString(&mDNSStorage, &rr->resrec)); in handle_regrecord_request()
1034 …rRecord(%u %s) ERROR (%d)", request->sd, re->key, RRDisplayString(&mDNSStorage, &rr->resrec), err); in handle_regrecord_request()
1058 request->sd, p->srs.RR_SRV.resrec.name->c, mDNSVal16(p->srs.RR_SRV.resrec.rdata->u.srv.port)); in regservice_termination_callback()
1100 extra->r.resrec.rrtype = rrtype; in add_record_to_service()
1102 extra->r.resrec.rdlength = rdlen; in add_record_to_service()
1113 external_start_advertising_service(&extra->r.resrec); in add_record_to_service()
1144 …(request->u.servicereg.instances) ? request->u.servicereg.instances->srs.RR_SRV.resrec.name->c : N… in handle_add_request()
1172 ResourceRecord ext = rr->resrec; in update_callback()
1177 external_start_advertising_service(&rr->resrec); in update_callback()
1195 if (rr->resrec.rrtype == kDNSType_TXT && rdlen == 0) { rdlen = 1; newrd->u.txt.c[0] = 0; } in update_record()
1233 …request->sd, reptr->rr->resrec.name->c, reptr->rr ? DNSTypeName(reptr->rr->resrec.rrtype) : "<NONE… in handle_update_request()
1282 …(request->u.servicereg.instances) ? request->u.servicereg.instances->srs.RR_SRV.resrec.name->c : N… in handle_update_request()
1283 rr ? DNSTypeName(rr->resrec.rrtype) : "<NONE>"); in handle_update_request()
1299 …NSServiceRemoveRecord(%u %s)", request->sd, e->key, RRDisplayString(&mDNSStorage, &e->rr->resrec)); in remove_record()
1303 external_stop_advertising_service(&e->rr->resrec); in remove_record()
1326 *rrtype = ptr->r.resrec.rrtype; in remove_extra()
1327 if (serv->external_advertise) external_stop_advertising_service(&ptr->r.resrec); in remove_extra()
1354 …(request->u.servicereg.instances) ? request->u.servicereg.instances->srs.RR_SRV.resrec.name->c : N… in handle_removerecord_request()
1515 …instance->request->sd, instance->srs.RR_SRV.resrec.name->c, mDNSVal16(request->u.servicereg.port)); in register_service_instance()
1914 AssignDomainName(&ptr->ar.resrec.rdata->u.name, d); in RegisterLocalOnlyDomainEnumPTR()
1943 …if (SameDomainName(&(*ptr)->ar.resrec.rdata->u.name, d) && SameDomainName((*ptr)->ar.resrec.name, … in DeregisterLocalOnlyDomainEnumPTR()
2006 if (m->DeviceInfo.resrec.RecordType != kDNSRecordTypeUnregistered) in UpdateDeviceInfoRecord()
2007 if (num_autoname == 0 || !SameDomainLabelCS(m->DeviceInfo.resrec.name->c, m->nicelabel.c)) in UpdateDeviceInfoRecord()
2009 LogOperation("UpdateDeviceInfoRecord Deregister %##s", m->DeviceInfo.resrec.name); in UpdateDeviceInfoRecord()
2014 if (m->DeviceInfo.resrec.RecordType == kDNSRecordTypeUnregistered) in UpdateDeviceInfoRecord()
2020 mDNSPlatformMemCopy(m->DeviceInfo.resrec.rdata->u.data + 1, "model=", 6); in UpdateDeviceInfoRecord()
2021 mDNSPlatformMemCopy(m->DeviceInfo.resrec.rdata->u.data + 7, m->HIHardware.c + 1, len); in UpdateDeviceInfoRecord()
2022 m->DeviceInfo.resrec.rdata->u.data[0] = 6 + len; // "model=" plus the device string in UpdateDeviceInfoRecord()
2023 …m->DeviceInfo.resrec.rdlength = 7 + len; // One extra for the length byte at the start of … in UpdateDeviceInfoRecord()
2024 LogOperation("UpdateDeviceInfoRecord Register %##s", m->DeviceInfo.resrec.name); in UpdateDeviceInfoRecord()
2049 …sserver_handle_configchange: Calling deregister for Service %##s", ptr->srs.RR_PTR.resrec.name->c); in udsserver_handle_configchange()
3184 status = mDNS_ReconfirmByValue(&mDNSStorage, &rr->resrec); in handle_reconfirm_request()
3189 request->sd, RRDisplayString(&mDNSStorage, &rr->resrec), in handle_reconfirm_request()
3190 …mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, rr->resrec.InterfaceID, mDNSfalse), status… in handle_reconfirm_request()
4157 ptr->srs.RR_SRV.resrec.name->c, mDNSVal16(req->u.servicereg.port), SRS_PORT(&ptr->srs)); in LogClientInfo()
4229 if (ar->resrec.InterfaceID == mDNSInterface_LocalOnly) in LogEtcHosts()
4230 LogMsgNoIdent(" %s LO %s", RecordTypeName(ar->resrec.RecordType), ARDisplayString(m, ar)); in LogEtcHosts()
4233 mDNSu32 scopeid = (mDNSu32)(uintptr_t)ar->resrec.InterfaceID; in LogEtcHosts()
4234 …LogMsgNoIdent(" %s %u %s", RecordTypeName(ar->resrec.RecordType), scopeid, ARDisplayString(m, a… in LogEtcHosts()
4262 LogMsgNoIdent(" %s LO %s", RecordTypeName(ar->resrec.RecordType), ARDisplayString(m, ar)); in LogLocalOnlyAuthRecords()
4264 LogMsgNoIdent(" %s PP %s", RecordTypeName(ar->resrec.RecordType), ARDisplayString(m, ar)); in LogLocalOnlyAuthRecords()
4279 const char *const ifname = InterfaceNameForID(m, ar->resrec.InterfaceID); in LogAuthRecords()
4338 const mDNSs32 remain = cr->resrec.rroriginalttl - (now - cr->TimeRcvd) / mDNSPlatformOneSecond; in udsserver_info()
4340 mDNSInterfaceID InterfaceID = cr->resrec.InterfaceID; in udsserver_info()
4341 if (!InterfaceID && cr->resrec.rDNSServer) in udsserver_info()
4342 InterfaceID = cr->resrec.rDNSServer->interface; in udsserver_info()
4351 (cr->resrec.RecordType == kDNSRecordTypePacketNegative) ? "-" : in udsserver_info()
4352 (cr->resrec.RecordType & kDNSRecordTypePacketUniqueMask) ? " " : "+", in udsserver_info()
4353 DNSTypeName(cr->resrec.rrtype), in udsserver_info()
4488 else LogMsgNoIdent("Offering Sleep Proxy Service: %#s", m->SPSRecords.RR_SRV.resrec.name->c); in udsserver_info()
4530 …LogMsgNoIdent("NewLocalRecords %02X %s", m->NewLocalRecords->resrec.RecordType, ARDisplayString(m,… in udsserver_info()
4626 if (b->next == (ARListElem *)~0 || b->ar.resrec.name->c[0] > 63) in uds_validatelists()
4627 LogMemCorruption("LocalDomainEnumRecords: %p is garbage (%d)", b, b->ar.resrec.name->c[0]); in uds_validatelists()