Lines Matching refs:mDNSStorage
251 mDNSexport mDNS mDNSStorage; variable
430 …(*rep)->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, id, mDNS… in GenerateNTDResponse()
473 …(*rep)->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, id, mDNS… in GenerateBonjourBrowserResponse()
519 InterfaceID = mDNSPlatformInterfaceIDfromInterfaceIndex(&mDNSStorage, interfaceIndex); in read_rr_from_ipc_msg()
706 FreeExtraRR(&mDNSStorage, &tmp->r, mStatus_MemFree); in unlink_and_free_service_instance()
737 for (rr = mDNSStorage.ResourceRecords; rr; rr=rr->next) in CountExistingRegistrations()
961 …ceRegisterRecord(%u %s) STOP", request->sd, ptr->key, RRDisplayString(&mDNSStorage, &ptr->rr->resr… in connection_termination()
969 mDNS_Deregister(&mDNSStorage, ptr->rr); // Will free ptr->rr for us in connection_termination()
1030 …iceRegisterRecord(%u %s) START", request->sd, re->key, RRDisplayString(&mDNSStorage, &rr->resrec)); in handle_regrecord_request()
1031 err = mDNS_Register(&mDNSStorage, rr); in handle_regrecord_request()
1034 …isterRecord(%u %s) ERROR (%d)", request->sd, re->key, RRDisplayString(&mDNSStorage, &rr->resrec), … in handle_regrecord_request()
1068 if (mDNS_DeregisterService(&mDNSStorage, &p->srs)) unlink_and_free_service_instance(p); in regservice_termination_callback()
1077 UpdateDeviceInfoRecord(&mDNSStorage); in regservice_termination_callback()
1105 result = mDNS_AddRecordToService(&mDNSStorage, srs, extra, &extra->r.rdatastorage, ttl, in add_record_to_service()
1199 result = mDNS_Update(&mDNSStorage, rr, ttl, rdlen, newrd, update_callback); in update_record()
1200 …if (result) { LogMsg("update_record: Error %d for %s", (int)result, ARDisplayString(&mDNSStorage, … in update_record()
1299 … DNSServiceRemoveRecord(%u %s)", request->sd, e->key, RRDisplayString(&mDNSStorage, &e->rr->resrec… in remove_record()
1306 …err = mDNS_Deregister(&mDNSStorage, e->rr); // Will free e->rr for us; we're responsible for free… in remove_record()
1328 err = mDNS_RemoveRecordFromService(&mDNSStorage, &serv->srs, ptr, FreeExtraRR, ptr); in remove_extra()
1476 if (mDNSStorage.KnownBugs & mDNS_KnownBug_LimitedIPv6) in register_service_instance()
1483 DomainAuthInfo *AuthInfo = GetAuthInfoForName(&mDNSStorage, domain); in register_service_instance()
1503 result = mDNS_RegisterService(&mDNSStorage, &instance->srs, in register_service_instance()
1581 err = mDNS_DeregisterService(&mDNSStorage, &si->srs); in udsserver_default_reg_domain_changed()
1600 …mDNSInterfaceID InterfaceID = mDNSPlatformInterfaceIDfromInterfaceIndex(&mDNSStorage, interfaceInd… in handle_regservice_request()
1645 request->u.servicereg.name = mDNSStorage.nicelabel; in handle_regservice_request()
1713 if (request->u.servicereg.autoname) UpdateDeviceInfoRecord(&mDNSStorage); in handle_regservice_request()
1782 err = mDNS_StartBrowse(&mDNSStorage, &b->q, in add_domain_to_browser()
1799 external_start_browsing_for_service(&mDNSStorage, &tmp, kDNSType_PTR); in add_domain_to_browser()
1816 external_stop_browsing_for_service(&mDNSStorage, &tmp, kDNSType_PTR); in browse_termination_callback()
1821 mDNS_StopBrowse(&mDNSStorage, &ptr->q); // no need to error-check result in browse_termination_callback()
1863 mDNS_StopQueryWithRemoves(&mDNSStorage, &rem->q); in udsserver_automatic_browse_domain_changed()
2135 strncpy(&(mDNSStorage.nicelabel.c[1]), hostName, len); in handle_sethost_request()
2136 mDNSStorage.nicelabel.c[0] = len; in handle_sethost_request()
2137 strncpy(&(mDNSStorage.hostlabel.c[1]), hostName, len); in handle_sethost_request()
2138 mDNSStorage.hostlabel.c[0] = len; in handle_sethost_request()
2139 mDNS_SetFQDN(&mDNSStorage); in handle_sethost_request()
2152 …mDNSInterfaceID InterfaceID = mDNSPlatformInterfaceIDfromInterfaceIndex(&mDNSStorage, interfaceInd… in handle_browse_request()
2160 if (domain[0] == '\0') uDNS_SetupSearchDomains(&mDNSStorage, UDNS_START_WAB_QUERY); in handle_browse_request()
2279 mDNS_StopQuery(&mDNSStorage, &request->u.resolve.qtxt); in resolve_termination_callback()
2280 mDNS_StopQuery(&mDNSStorage, &request->u.resolve.qsrv); in resolve_termination_callback()
2300 InterfaceID = mDNSPlatformInterfaceIDfromInterfaceIndex(&mDNSStorage, interfaceIndex); in handle_resolve_request()
2355 …request->u.resolve.ReportTime = NonZeroTime(mDNS_TimeNow(&mDNSStorage) + 130 * mDNSPlat… in handle_resolve_request()
2365 err = mDNS_StartQuery(&mDNSStorage, &request->u.resolve.qsrv); in handle_resolve_request()
2368 err = mDNS_StartQuery(&mDNSStorage, &request->u.resolve.qtxt); in handle_resolve_request()
2369 if (err) mDNS_StopQuery(&mDNSStorage, &request->u.resolve.qsrv); in handle_resolve_request()
2456 err = mDNS_StopQuery(&mDNSStorage, question); in AppendNewSearchDomain()
2573 err = mDNS_StartQuery(&mDNSStorage, q2); in SendAdditionalQuery()
2920 mDNS_StopQuery(&mDNSStorage, &request->u.queryrecord.q); // no need to error check in queryrecord_termination_callback()
2937 …external_stop_browsing_for_service(&mDNSStorage, &request->u.queryrecord.q.qname, request->u.query… in queryrecord_termination_callback()
2944 mDNS_StopQuery(&mDNSStorage, request->u.queryrecord.q2); in queryrecord_termination_callback()
2971 …mDNSInterfaceID InterfaceID = mDNSPlatformInterfaceIDfromInterfaceIndex(&mDNSStorage, interfaceInd… in handle_queryrecord_request()
3032 err = mDNS_StartQuery(&mDNSStorage, q); in handle_queryrecord_request()
3040 external_start_browsing_for_service(&mDNSStorage, &q->qname, q->qtype); in handle_queryrecord_request()
3080 mDNS_StopGetDomains(&mDNSStorage, &request->u.enumeration.q_all); in enum_termination_callback()
3081 mDNS_StopGetDomains(&mDNSStorage, &request->u.enumeration.q_default); in enum_termination_callback()
3129 …mDNSInterfaceID InterfaceID = mDNSPlatformInterfaceIDfromInterfaceIndex(&mDNSStorage, interfaceInd… in handle_enum_request()
3136 uDNS_SetupSearchDomains(&mDNSStorage, UDNS_START_WAB_QUERY); in handle_enum_request()
3155 …err = mDNS_GetDomains(&mDNSStorage, &request->u.enumeration.q_all, t_all, NULL, InterfaceID, enum_… in handle_enum_request()
3158 …err = mDNS_GetDomains(&mDNSStorage, &request->u.enumeration.q_default, t_default, NULL, InterfaceI… in handle_enum_request()
3159 if (err) mDNS_StopGetDomains(&mDNSStorage, &request->u.enumeration.q_all); in handle_enum_request()
3178 status = mDNS_ReconfirmByValue(&mDNSStorage, &rr->resrec); in handle_reconfirm_request()
3183 request->sd, RRDisplayString(&mDNSStorage, &rr->resrec), in handle_reconfirm_request()
3184 …mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, rr->resrec.InterfaceID, mDNSfalse), status… in handle_reconfirm_request()
3243 mDNS_StopNATOperation(&mDNSStorage, &request->u.pm.NATinfo); in port_mapping_termination_callback()
3297 …mDNSInterfaceID InterfaceID = mDNSPlatformInterfaceIDfromInterfaceIndex(&mDNSStorage, interface… in handle_port_mapping_request()
3333 err = mDNS_StartNATOperation(&mDNSStorage, &request->u.pm.NATinfo); in handle_port_mapping_request()
3352 mDNS_StopQuery(&mDNSStorage, &request->u.addrinfo.q4); in addrinfo_termination_callback()
3365 mDNS_StopQuery(&mDNSStorage, request->u.addrinfo.q42); in addrinfo_termination_callback()
3379 mDNS_StopQuery(&mDNSStorage, &request->u.addrinfo.q6); in addrinfo_termination_callback()
3392 mDNS_StopQuery(&mDNSStorage, request->u.addrinfo.q62); in addrinfo_termination_callback()
3415 …request->u.addrinfo.interface_id = mDNSPlatformInterfaceIDfromInterfaceIndex(&mDNSStorage, interfa… in handle_addrinfo_request()
3473 err = mDNS_StartQuery(&mDNSStorage, &request->u.addrinfo.q4); in handle_addrinfo_request()
3501 err = mDNS_StartQuery(&mDNSStorage, &request->u.addrinfo.q6); in handle_addrinfo_request()
3509 mDNS_StopQuery(&mDNSStorage, &request->u.addrinfo.q4); in handle_addrinfo_request()
3641 mDNSPlatformReceiveBPF_fd(&mDNSStorage, x); in read_msg()
3815 …if (mDNSStorage.ShutdownTime && req->hdr.op != cancel_request && req->hdr.op != getproperty_reques… in request_callback()
4071 mDNS_GetDomains(&mDNSStorage, &mDNSStorage.AutomaticBrowseDomainQ, mDNS_DomainTypeBrowseAutomatic, in udsserver_init()
4075 RegisterLocalOnlyDomainEnumPTR(&mDNSStorage, &localdomain, mDNS_DomainTypeRegistration); in udsserver_init()
4076 RegisterLocalOnlyDomainEnumPTR(&mDNSStorage, &localdomain, mDNS_DomainTypeBrowse); in udsserver_init()
4079 udsserver_handle_configchange(&mDNSStorage); in udsserver_init()
4099 mDNS_Deregister(&mDNSStorage, &rem->ar); in udsserver_exit()
4666 mDNSs32 now = mDNS_TimeNow(&mDNSStorage); in udsserver_idle()
4699 LogClientInfo(&mDNSStorage, r); in udsserver_idle()
4709 if (mDNSStorage.SleepState != SleepState_Awake) r->time_blocked = 0; in udsserver_idle()
4721 LogClientInfo(&mDNSStorage, r); in udsserver_idle()