Lines Matching defs:srv

220 			const ResourceRecord *srv;
550 mDNSlocal int build_domainname_from_strings(domainname *srv, char *name, char *regtype, char *domain)
558 if (!ConstructServiceName(srv, &n, &t, &d)) return -1;
684 mDNSlocal void unlink_and_free_service_instance(service_instance *srv)
686 ExtraResourceRecord *e = srv->srs.Extras, *tmp;
688 external_stop_advertising_helper(srv);
691 if (srv->request)
693 service_instance **p = &srv->request->u.servicereg.instances;
696 if (*p == srv) { *p = (*p)->next; break; }
709 if (srv->srs.RR_TXT.resrec.rdata != &srv->srs.RR_TXT.rdatastorage)
710 freeL("TXT RData", srv->srs.RR_TXT.resrec.rdata);
712 if (srv->subtypes) { freeL("ServiceSubTypes", srv->subtypes); srv->subtypes = NULL; }
713 freeL("service_instance", srv);
733 mDNSexport int CountExistingRegistrations(domainname *srv, mDNSIPPort port)
739 mDNSSameIPPort(rr->resrec.rdata->u.srv.port, port) &&
740 SameDomainName(rr->resrec.name, srv))
784 LogOperation(fmt, prefix, srs->RR_SRV.resrec.name->c, mDNSVal16(srs->RR_SRV.resrec.rdata->u.srv.port),
1058 request->sd, p->srs.RR_SRV.resrec.name->c, mDNSVal16(p->srs.RR_SRV.resrec.rdata->u.srv.port));
1595 domainname d, srv;
1679 if (!ConstructServiceName(&srv, &request->u.servicereg.name, &request->u.servicereg.type, &d))
1695 int count = CountExistingRegistrations(&srv, request->u.servicereg.port);
1698 count+1, srv.c, mDNSVal16(request->u.servicereg.port));
2240 if (req->u.resolve.srv == answer) req->u.resolve.srv = mDNSNULL;
2245 if (answer->rrtype == kDNSType_SRV) req->u.resolve.srv = answer;
2248 if (!req->u.resolve.txt || !req->u.resolve.srv) return; // only deliver result to client if we have both answers
2251 ConvertDomainNameToCString(&req->u.resolve.srv->rdata->u.srv.target, target);
2273 *data++ = req->u.resolve.srv->rdata->u.srv.port.b[0];
2274 *data++ = req->u.resolve.srv->rdata->u.srv.port.b[1];
2278 LogOperation("%3d: DNSServiceResolve(%s) RESULT %s:%d", req->sd, fullname, target, mDNSVal16(req->u.resolve.srv->rdata->u.srv.port));