Home | History | Annotate | Download | only in mDNSShared

Lines Matching defs:resolve

223 			} resolve;
2234 if (req->u.resolve.srv == answer) req->u.resolve.srv = mDNSNULL;
2235 if (req->u.resolve.txt == answer) req->u.resolve.txt = mDNSNULL;
2239 if (answer->rrtype == kDNSType_SRV) req->u.resolve.srv = answer;
2240 if (answer->rrtype == kDNSType_TXT) req->u.resolve.txt = answer;
2242 if (!req->u.resolve.txt || !req->u.resolve.srv) return; // only deliver result to client if we have both answers
2245 ConvertDomainNameToCString(&req->u.resolve.srv->rdata->u.srv.target, target);
2254 len += req->u.resolve.txt->rdlength;
2267 *data++ = req->u.resolve.srv->rdata->u.srv.port.b[0];
2268 *data++ = req->u.resolve.srv->rdata->u.srv.port.b[1];
2269 put_uint16(req->u.resolve.txt->rdlength, &data);
2270 put_rdata (req->u.resolve.txt->rdlength, req->u.resolve.txt->rdata->u.data, &data);
2272 LogOperation("%3d: DNSServiceResolve(%s) RESULT %s:%d", req->sd, fullname, target, mDNSVal16(req->u.resolve.srv->rdata->u.srv.port));
2278 LogOperation("%3d: DNSServiceResolve(%##s) STOP", request->sd, request->u.resolve.qtxt.qname.c);
2279 mDNS_StopQuery(&mDNSStorage, &request->u.resolve.qtxt);
2280 mDNS_StopQuery(&mDNSStorage, &request->u.resolve.qsrv);
2281 if (request->u.resolve.external_advertise) external_stop_resolving_service(&request->u.resolve.qsrv.qname);
2314 mDNSPlatformMemZero(&request->u.resolve, sizeof(request->u.resolve));
2317 request->u.resolve.qsrv.InterfaceID = InterfaceID;
2318 request->u.resolve.qsrv.Target = zeroAddr;
2319 AssignDomainName(&request->u.resolve.qsrv.qname, &fqdn);
2320 request->u.resolve.qsrv.qtype = kDNSType_SRV;
2321 request->u.resolve.qsrv.qclass = kDNSClass_IN;
2322 request->u.resolve.qsrv.LongLived = (flags & kDNSServiceFlagsLongLivedQuery ) != 0;
2323 request->u.resolve.qsrv.ExpectUnique = mDNStrue;
2324 request->u.resolve.qsrv.ForceMCast = (flags & kDNSServiceFlagsForceMulticast ) != 0;
2325 request->u.resolve.qsrv.ReturnIntermed = (flags & kDNSServiceFlagsReturnIntermediates) != 0;
2326 request->u.resolve.qsrv.SuppressUnusable = mDNSfalse;
2327 request->u.resolve.qsrv.SearchListIndex = 0;
2328 request->u.resolve.qsrv.AppendSearchDomains = 0;
2329 request->u.resolve.qsrv.RetryWithSearchDomains = mDNSfalse;
2330 request->u.resolve.qsrv.TimeoutQuestion = 0;
2331 request->u.resolve.qsrv.WakeOnResolve = (flags & kDNSServiceFlagsWakeOnResolve) != 0;
2332 request->u.resolve.qsrv.qnameOrig = mDNSNULL;
2333 request->u.resolve.qsrv.QuestionCallback = resolve_result_callback;
2334 request->u.resolve.qsrv.QuestionContext = request;
2336 request->u.resolve.qtxt.InterfaceID = InterfaceID;
2337 request->u.resolve.qtxt.Target = zeroAddr;
2338 AssignDomainName(&request->u.resolve.qtxt.qname, &fqdn);
2339 request->u.resolve.qtxt.qtype = kDNSType_TXT;
2340 request->u.resolve.qtxt.qclass = kDNSClass_IN;
2341 request->u.resolve.qtxt.LongLived = (flags & kDNSServiceFlagsLongLivedQuery ) != 0;
2342 request->u.resolve.qtxt.ExpectUnique = mDNStrue;
2343 request->u.resolve.qtxt.ForceMCast = (flags & kDNSServiceFlagsForceMulticast ) != 0;
2344 request->u.resolve.qtxt.ReturnIntermed = (flags & kDNSServiceFlagsReturnIntermediates) != 0;
2345 request->u.resolve.qtxt.SuppressUnusable = mDNSfalse;
2346 request->u.resolve.qtxt.SearchListIndex = 0;
2347 request->u.resolve.qtxt.AppendSearchDomains = 0;
2348 request->u.resolve.qtxt.RetryWithSearchDomains = mDNSfalse;
2349 request->u.resolve.qtxt.TimeoutQuestion = 0;
2350 request->u.resolve.qtxt.WakeOnResolve = 0;
2351 request->u.resolve.qtxt.qnameOrig = mDNSNULL;
2352 request->u.resolve.qtxt.QuestionCallback = resolve_result_callback;
2353 request->u.resolve.qtxt.QuestionContext = request;
2355 request->u.resolve.ReportTime = NonZeroTime(mDNS_TimeNow(&mDNSStorage) + 130 * mDNSPlatformOneSecond);
2357 request->u.resolve.external_advertise = mDNSfalse;
2364 LogOperation("%3d: DNSServiceResolve(%##s) START", request->sd, request->u.resolve.qsrv.qname.c);
2365 err = mDNS_StartQuery(&mDNSStorage, &request->u.resolve.qsrv);
2368 err = mDNS_StartQuery(&mDNSStorage, &request->u.resolve.qtxt);
2369 if (err) mDNS_StopQuery(&mDNSStorage, &request->u.resolve.qsrv);
2373 // If the user explicitly passed in P2P, we don't restrict the domain in which we resolve.
2376 request->u.resolve.external_advertise = mDNStrue;
4160 LogMsgNoIdent("%s DNSServiceResolve %##s", prefix, req->u.resolve.qsrv.qname.c);
4674 if (r->u.resolve.ReportTime && now - r->u.resolve.ReportTime >= 0)
4676 r->u.resolve.ReportTime = 0;
4678 "This places considerable burden on the network.", r->u.resolve.qsrv.qname.c);